Skip to content

Commit

Permalink
♻️ [Test] Aligned parameter naming
Browse files Browse the repository at this point in the history
Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
  • Loading branch information
Coduz committed Jan 20, 2025
1 parent d760439 commit 531e714
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ public class DockerSteps {
private static final long WAIT_FOR_REST_API = 30000;
private static final int HTTP_COMMUNICATION_TIMEOUT = 3000;

private static final int JOB_ENGINE_PORT_INTERNAL = 8080;
private static final int JOB_ENGINE_PORT_EXTERNAL = 8080;
private static final String JOB_ENGINE_ADDRESS_EXTERNAL = "http://localhost:" + JOB_ENGINE_PORT_EXTERNAL;
private static final int JOB_ENGINE_PORT_CONTAINER = 8080;
private static final int JOB_ENGINE_PORT_HOST = 8080;
private static final String JOB_ENGINE_ADDRESS_EXTERNAL = "http://localhost:" + JOB_ENGINE_PORT_HOST;
private static final long JOB_ENGINE_READY_CHECK_INTERVAL = 1000;
private static final long JOB_ENGINE_READY_MAX_WAIT = 60000;

Expand Down Expand Up @@ -1263,12 +1263,12 @@ private ContainerConfig getEventBrokerContainerConfig() {
*/
private ContainerConfig getJobEngineContainerConfig() {
Map<String, List<PortBinding>> portBindings = new HashMap<>();
addHostPort(ALL_IP, portBindings, JOB_ENGINE_PORT_INTERNAL, JOB_ENGINE_PORT_EXTERNAL);
addHostPort(ALL_IP, portBindings, JOB_ENGINE_PORT_CONTAINER, JOB_ENGINE_PORT_HOST);
HostConfig hostConfig = HostConfig.builder().portBindings(portBindings).build();

return ContainerConfig.builder()
.hostConfig(hostConfig)
.exposedPorts(String.valueOf(JOB_ENGINE_PORT_INTERNAL))
.exposedPorts(String.valueOf(JOB_ENGINE_PORT_CONTAINER))
.env(
"CRYPTO_SECRET_KEY=kapuaTestsKey!!!"
)
Expand Down

0 comments on commit 531e714

Please sign in to comment.