diff options
author | Determe, Sebastien (sd378r) <sd378r@intl.att.com> | 2018-04-26 11:06:36 +0200 |
---|---|---|
committer | Determe, Sebastien (sd378r) <sd378r@intl.att.com> | 2018-04-26 11:06:36 +0200 |
commit | 90fcd198e69fca04ed57f05ef88f83662d9349bf (patch) | |
tree | 35f2a5bcfb1ce077823b3d9d08d14fe013576e83 /src/test/java | |
parent | 4c04ea76999004cb1fe8cb4d318a621b474c13de (diff) |
Fix HealthCheck
Change the healthcheck method to answer by http code according to the
status
Issue-ID: CLAMP-157
Change-Id: I82b11cb385e346e23e2fa3ae82f8e099d0ca10ac
Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
Diffstat (limited to 'src/test/java')
-rw-r--r-- | src/test/java/org/onap/clamp/clds/it/CldsServiceItCase.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/java/org/onap/clamp/clds/it/CldsServiceItCase.java b/src/test/java/org/onap/clamp/clds/it/CldsServiceItCase.java index 23df19c6..1450af90 100644 --- a/src/test/java/org/onap/clamp/clds/it/CldsServiceItCase.java +++ b/src/test/java/org/onap/clamp/clds/it/CldsServiceItCase.java @@ -37,6 +37,7 @@ import java.security.GeneralSecurityException; import java.security.Principal; import java.util.Properties; +import javax.ws.rs.core.Response; import javax.ws.rs.core.SecurityContext; import org.apache.commons.codec.DecoderException; @@ -127,7 +128,8 @@ public class CldsServiceItCase { @Test public void testGetHealthCheck() { - CldsHealthCheck cldsHealthCheck = cldsService.gethealthcheck(); + Response response = cldsService.gethealthcheck(); + CldsHealthCheck cldsHealthCheck = (CldsHealthCheck) response.getEntity(); assertNotNull(cldsHealthCheck); assertEquals("UP", cldsHealthCheck.getHealthCheckStatus()); assertEquals("CLDS-APP", cldsHealthCheck.getHealthCheckComponent()); |