Commit c38f9bcd authored by Christian Dupuis's avatar Christian Dupuis

Add missing tests

parent dfd6f91a
...@@ -75,7 +75,7 @@ public class SampleActuatorUiApplicationPortTests { ...@@ -75,7 +75,7 @@ public class SampleActuatorUiApplicationPortTests {
ResponseEntity<String> entity = new TestRestTemplate().getForEntity( ResponseEntity<String> entity = new TestRestTemplate().getForEntity(
"http://localhost:" + this.managementPort + "/health", String.class); "http://localhost:" + this.managementPort + "/health", String.class);
assertEquals(HttpStatus.OK, entity.getStatusCode()); assertEquals(HttpStatus.OK, entity.getStatusCode());
assertEquals("ok", entity.getBody()); assertEquals("{\"status\":\"ok\"}", entity.getBody());
} }
} }
...@@ -67,6 +67,6 @@ public class EndpointsPropertiesSampleActuatorApplicationTests { ...@@ -67,6 +67,6 @@ public class EndpointsPropertiesSampleActuatorApplicationTests {
"http://localhost:" + this.port + "/admin/health", String.class); "http://localhost:" + this.port + "/admin/health", String.class);
assertEquals(HttpStatus.OK, entity.getStatusCode()); assertEquals(HttpStatus.OK, entity.getStatusCode());
String body = entity.getBody(); String body = entity.getBody();
assertEquals("ok", body); assertEquals("{\"status\":\"ok\"}", body);
} }
} }
...@@ -71,7 +71,7 @@ public class ManagementAddressActuatorApplicationTests { ...@@ -71,7 +71,7 @@ public class ManagementAddressActuatorApplicationTests {
"http://localhost:" + this.managementPort + "/admin/health", "http://localhost:" + this.managementPort + "/admin/health",
String.class); String.class);
assertEquals(HttpStatus.OK, entity.getStatusCode()); assertEquals(HttpStatus.OK, entity.getStatusCode());
assertEquals("ok", entity.getBody()); assertEquals("{\"status\":\"ok\"}", entity.getBody());
} }
} }
...@@ -80,7 +80,7 @@ public class ManagementPortSampleActuatorApplicationTests { ...@@ -80,7 +80,7 @@ public class ManagementPortSampleActuatorApplicationTests {
ResponseEntity<String> entity = new TestRestTemplate().getForEntity( ResponseEntity<String> entity = new TestRestTemplate().getForEntity(
"http://localhost:" + this.managementPort + "/health", String.class); "http://localhost:" + this.managementPort + "/health", String.class);
assertEquals(HttpStatus.OK, entity.getStatusCode()); assertEquals(HttpStatus.OK, entity.getStatusCode());
assertEquals("ok", entity.getBody()); assertEquals("{\"status\":\"ok\"}", entity.getBody());
} }
@Test @Test
......
...@@ -130,7 +130,7 @@ public class SampleActuatorApplicationTests { ...@@ -130,7 +130,7 @@ public class SampleActuatorApplicationTests {
ResponseEntity<String> entity = new TestRestTemplate().getForEntity( ResponseEntity<String> entity = new TestRestTemplate().getForEntity(
"http://localhost:" + this.port + "/health", String.class); "http://localhost:" + this.port + "/health", String.class);
assertEquals(HttpStatus.OK, entity.getStatusCode()); assertEquals(HttpStatus.OK, entity.getStatusCode());
assertEquals("ok", entity.getBody()); assertEquals("{\"status\":\"ok\"}", entity.getBody());
} }
@Test @Test
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment