From c4f4f0225de3b7aeee73120bb197d916c0b2dbcd Mon Sep 17 00:00:00 2001 From: Ivan Straka Date: Thu, 12 Dec 2019 14:18:23 +0100 Subject: [PATCH] another round --- .../eap/qe/microprofile/health/MultiDeploymentHealthTest.java | 2 +- .../eap/qe/microprofile/health/SubdeploymentHealthTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/microprofile-health/src/test/java/org/jboss/eap/qe/microprofile/health/MultiDeploymentHealthTest.java b/microprofile-health/src/test/java/org/jboss/eap/qe/microprofile/health/MultiDeploymentHealthTest.java index e5d5f24c..497a3749 100644 --- a/microprofile-health/src/test/java/org/jboss/eap/qe/microprofile/health/MultiDeploymentHealthTest.java +++ b/microprofile-health/src/test/java/org/jboss/eap/qe/microprofile/health/MultiDeploymentHealthTest.java @@ -66,7 +66,7 @@ public void testHealthEndpoint() { .contentType(ContentType.JSON) .header("Content-Type", containsString("application/json")) .body("status", is("UP"), - "checks", hasSize(3), // BothHealthCheck contains both annotations: @Liveness and @Readiness + "checks", hasSize(3), "checks.status", hasItems("UP"), "checks.status", not(hasItems("DOWN"))); } diff --git a/microprofile-health/src/test/java/org/jboss/eap/qe/microprofile/health/SubdeploymentHealthTest.java b/microprofile-health/src/test/java/org/jboss/eap/qe/microprofile/health/SubdeploymentHealthTest.java index c81fb3bf..a3bc87db 100644 --- a/microprofile-health/src/test/java/org/jboss/eap/qe/microprofile/health/SubdeploymentHealthTest.java +++ b/microprofile-health/src/test/java/org/jboss/eap/qe/microprofile/health/SubdeploymentHealthTest.java @@ -85,7 +85,7 @@ public void testHealthEndpoint() { .contentType(ContentType.JSON) .header("Content-Type", containsString("application/json")) .body("status", is("UP"), - "checks", hasSize(3), // BothHealthCheck contains both annotations: @Liveness and @Readiness + "checks", hasSize(3), "checks.status", hasItems("UP"), "checks.status", not(hasItems("DOWN"))); }