-
Notifications
You must be signed in to change notification settings - Fork 100
Open
Open
Copy link
Labels
component: forked test containerForked Test ContainerForked Test Containertype: new featureNew FeatureNew Feature
Milestone
Description
The fixed port range for the RMI Registry caused issues in the past:
- Make the port number from which test container starts searching for free ports configurable [PAXEXAM-181] #304
- RMI port range is not configurable for forked container [PAXEXAM-926] #1007
The ForkedFrameworkFactory should accept and use optional values for both properties (pax.swissbox.framework.rmi.port and pax.swissbox.framework.rmi.name):
@Configuration
public Option[] configuration() {
final String port = Integer.toString(findFreePort());
final String name = "pax-exam-remote-framework";
return options(
systemProperty(RemoteFramework.RMI_PORT_KEY).value(port),
systemProperty(RemoteFramework.RMI_NAME_KEY).value(name),
[...]
);
}
ForkedFrameworkFactory accepts a single port for flexibility and simplicity. Implementation of port range is up to the consumers.
Metadata
Metadata
Assignees
Labels
component: forked test containerForked Test ContainerForked Test Containertype: new featureNew FeatureNew Feature
Type
Projects
Status
Done