From 5f432457f7940e0051f9ca58362b97d5dc1f960c Mon Sep 17 00:00:00 2001 From: GuangrongFu Date: Wed, 24 Oct 2018 08:44:31 +0800 Subject: Fixed MSB Reg Issues Change-Id: Ib61fad31ccded461537a1eb840d627663c50a8e0 Issue-ID: HOLMES-175 Signed-off-by: GuangrongFu --- engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java | 2 +- engine-d/src/test/java/org/onap/holmes/engine/EngineDActiveAppTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java b/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java index 67ea418..c045050 100644 --- a/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java +++ b/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java @@ -77,7 +77,7 @@ public class EngineDActiveApp extends IOCApplication { Set nodes = new HashSet<>(); Node node = new Node(); node.setIp(serviceAddrInfo[0]); - node.setPort(serviceAddrInfo[1]); + node.setPort("9102"); node.setCheckType("HTTP"); node.setCheckUrl(String.format("https://%s:%s/api/holmes-engine-mgmt/v1/healthcheck", serviceAddrInfo[0], "9102")); node.setCheckTimeOut("60s"); diff --git a/engine-d/src/test/java/org/onap/holmes/engine/EngineDActiveAppTest.java b/engine-d/src/test/java/org/onap/holmes/engine/EngineDActiveAppTest.java index 4f8aa2b..1a5795a 100644 --- a/engine-d/src/test/java/org/onap/holmes/engine/EngineDActiveAppTest.java +++ b/engine-d/src/test/java/org/onap/holmes/engine/EngineDActiveAppTest.java @@ -61,6 +61,6 @@ public class EngineDActiveAppTest { assertThat(msinfo.getVisualRange(), equalTo("0|1")); assertThat(msinfo.isEnable_ssl(), is(true)); assertThat(msinfo.getNodes().toArray(new Node[0])[0].getIp(), equalTo(serviceAddrInfo[0])); - assertThat(msinfo.getNodes().toArray(new Node[0])[0].getPort(), equalTo(serviceAddrInfo[1])); + assertThat(msinfo.getNodes().toArray(new Node[0])[0].getPort(), equalTo("9102")); } } -- cgit 1.2.3-korg