diff options
author | Hengye <yehui.wang@est.tech> | 2019-12-05 15:13:45 +0800 |
---|---|---|
committer | Hengye <yehui.wang@est.tech> | 2019-12-05 15:13:51 +0800 |
commit | 22fce245d748d59a980c9744ab8a133b9a4fa758 (patch) | |
tree | 9426bdc5f9d2743b74279005a28fa1321f186524 /main/src/test/java | |
parent | d9f395e503ed6cd01e7af3b0ee8cc0f360865c88 (diff) |
change HealthCheckReport URL from self to hostName
Issue-ID: POLICY-1689 Consolidate Policy Health Check into PAP
Change-Id: Ie7f8edf1d1a083c6c696824f249544959f72694d
Signed-off-by: Hengye <yehui.wang@est.tech>
Diffstat (limited to 'main/src/test/java')
-rw-r--r-- | main/src/test/java/org/onap/policy/api/main/rest/TestApiRestServer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/test/java/org/onap/policy/api/main/rest/TestApiRestServer.java b/main/src/test/java/org/onap/policy/api/main/rest/TestApiRestServer.java index 359533ff..4dd88c07 100644 --- a/main/src/test/java/org/onap/policy/api/main/rest/TestApiRestServer.java +++ b/main/src/test/java/org/onap/policy/api/main/rest/TestApiRestServer.java @@ -85,7 +85,7 @@ public class TestApiRestServer { private static final Logger LOGGER = LoggerFactory.getLogger(TestApiRestServer.class); private static final String NOT_ALIVE = "not alive"; private static final String ALIVE = "alive"; - private static final String SELF = "self"; + private static final String SELF = NetworkUtil.getHostname(); private static final String NAME = "Policy API"; private static final String APP_JSON = "application/json"; private static final String APP_YAML = "application/yaml"; |