From 41531406e4f15cf9c087e35ee12524d8ceb11204 Mon Sep 17 00:00:00 2001 From: Alberto Codutti Date: Mon, 20 Jan 2025 18:22:42 +0100 Subject: [PATCH] :recycle: [Test] Aligned parameter naming Signed-off-by: Alberto Codutti --- .../kapua/qa/integration/steps/DockerSteps.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qa/integration-steps/src/main/java/org/eclipse/kapua/qa/integration/steps/DockerSteps.java b/qa/integration-steps/src/main/java/org/eclipse/kapua/qa/integration/steps/DockerSteps.java index b2c76678ff1..8e6c0a35f86 100644 --- a/qa/integration-steps/src/main/java/org/eclipse/kapua/qa/integration/steps/DockerSteps.java +++ b/qa/integration-steps/src/main/java/org/eclipse/kapua/qa/integration/steps/DockerSteps.java @@ -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; @@ -1263,12 +1263,12 @@ private ContainerConfig getEventBrokerContainerConfig() { */ private ContainerConfig getJobEngineContainerConfig() { Map> 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!!!" )