From e8ff660fccb0f52feddc233a6c8f53688a12c5d4 Mon Sep 17 00:00:00 2001 From: Bas Huisman Date: Tue, 19 Nov 2024 12:27:06 +0100 Subject: [PATCH] change actuator url --- src/main/resources/application-test.yml | 1 - src/test/java/nl/ictu/TestingWebApplicationTests.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml index a6a7aa3..87e5385 100644 --- a/src/main/resources/application-test.yml +++ b/src/main/resources/application-test.yml @@ -13,6 +13,5 @@ management: endpoints: enabled-by-default: true web: - base-path: /monitor exposure: include: '*' diff --git a/src/test/java/nl/ictu/TestingWebApplicationTests.java b/src/test/java/nl/ictu/TestingWebApplicationTests.java index 3d7aba5..55dc956 100644 --- a/src/test/java/nl/ictu/TestingWebApplicationTests.java +++ b/src/test/java/nl/ictu/TestingWebApplicationTests.java @@ -31,7 +31,7 @@ public void contextLoads() { public void testActuatorHealthEndpoint() throws Exception { assertThat( restTemplate - .getForObject("http://localhost:" + actuatorPort + "/monitor/health", String.class) + .getForObject("http://localhost:" + actuatorPort + "/actuator/health", String.class) ).contains("{\"status\":\"UP\"}"); }