diff --git a/project-repo/de/servicehealth/lib-cetp/1.0-SNAPSHOT/_remote.repositories b/project-repo/de/servicehealth/lib-cetp/1.0-SNAPSHOT/_remote.repositories index ed503d0f..a3a86373 100644 --- a/project-repo/de/servicehealth/lib-cetp/1.0-SNAPSHOT/_remote.repositories +++ b/project-repo/de/servicehealth/lib-cetp/1.0-SNAPSHOT/_remote.repositories @@ -1,5 +1,5 @@ #NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice. -#Mon Oct 14 16:33:30 AMT 2024 +#Mon Oct 14 17:17:36 AMT 2024 lib-cetp-1.0-SNAPSHOT.jar>= lib-cetp-1.0-SNAPSHOT-sources.jar>= lib-cetp-1.0-SNAPSHOT.pom>= diff --git a/project-repo/de/servicehealth/lib-cetp/1.0-SNAPSHOT/lib-cetp-1.0-SNAPSHOT-sources.jar b/project-repo/de/servicehealth/lib-cetp/1.0-SNAPSHOT/lib-cetp-1.0-SNAPSHOT-sources.jar index 2562f16b..62dbf9ef 100644 Binary files a/project-repo/de/servicehealth/lib-cetp/1.0-SNAPSHOT/lib-cetp-1.0-SNAPSHOT-sources.jar and b/project-repo/de/servicehealth/lib-cetp/1.0-SNAPSHOT/lib-cetp-1.0-SNAPSHOT-sources.jar differ diff --git a/project-repo/de/servicehealth/lib-cetp/1.0-SNAPSHOT/lib-cetp-1.0-SNAPSHOT.jar b/project-repo/de/servicehealth/lib-cetp/1.0-SNAPSHOT/lib-cetp-1.0-SNAPSHOT.jar index 5b4e1fa9..14b02f3f 100644 Binary files a/project-repo/de/servicehealth/lib-cetp/1.0-SNAPSHOT/lib-cetp-1.0-SNAPSHOT.jar and b/project-repo/de/servicehealth/lib-cetp/1.0-SNAPSHOT/lib-cetp-1.0-SNAPSHOT.jar differ diff --git a/project-repo/de/servicehealth/lib-cetp/1.0-SNAPSHOT/maven-metadata-local.xml b/project-repo/de/servicehealth/lib-cetp/1.0-SNAPSHOT/maven-metadata-local.xml index 27ecc5f5..0fab5ece 100644 --- a/project-repo/de/servicehealth/lib-cetp/1.0-SNAPSHOT/maven-metadata-local.xml +++ b/project-repo/de/servicehealth/lib-cetp/1.0-SNAPSHOT/maven-metadata-local.xml @@ -3,7 +3,7 @@ de.servicehealth lib-cetp - 20241014123324 + 20241014131730 true @@ -11,18 +11,18 @@ pom 1.0-SNAPSHOT - 20241014123324 + 20241014131730 jar 1.0-SNAPSHOT - 20241014123324 + 20241014131730 sources jar 1.0-SNAPSHOT - 20241014123324 + 20241014131730 diff --git a/project-repo/de/servicehealth/lib-cetp/maven-metadata-local.xml b/project-repo/de/servicehealth/lib-cetp/maven-metadata-local.xml index 6ca654b9..6beb5058 100644 --- a/project-repo/de/servicehealth/lib-cetp/maven-metadata-local.xml +++ b/project-repo/de/servicehealth/lib-cetp/maven-metadata-local.xml @@ -6,6 +6,6 @@ 1.0-SNAPSHOT - 20241014123324 + 20241014131730 diff --git a/src/main/java/health/ere/ps/config/RuntimeConfig.java b/src/main/java/health/ere/ps/config/RuntimeConfig.java index 0dd56af6..31d55735 100644 --- a/src/main/java/health/ere/ps/config/RuntimeConfig.java +++ b/src/main/java/health/ere/ps/config/RuntimeConfig.java @@ -107,9 +107,7 @@ public void updateConfigurationsWithHttpServletRequest(HttpServletRequest httpSe this.sendPreview = !httpServletRequest.getHeader("X-sendPreview").equalsIgnoreCase("false"); } - IUserConfigurations userConfigurations = getConfigurations(); - userConfigurations.updateWithRequest(httpServletRequest); - this.updateProperties(userConfigurations); + this.updateProperties(getConfigurations().updateWithRequest(httpServletRequest)); } public void updateConfigurationsWithJsonObject(JsonObject object) { diff --git a/src/test/java/health/ere/ps/service/health/HealthCheckTest.java b/src/test/java/health/ere/ps/service/health/HealthCheckTest.java index 5bd95522..2fc18f8d 100644 --- a/src/test/java/health/ere/ps/service/health/HealthCheckTest.java +++ b/src/test/java/health/ere/ps/service/health/HealthCheckTest.java @@ -87,8 +87,8 @@ void healthCheckWorks() { .filter(check -> check.name().equals(CETP_SERVER_CHECK)) .findFirst(); assertTrue(cetpServerCheckOpt.isPresent()); - assertThat(cetpServerCheckOpt.get().status(), equalTo("DOWN")); - assertThat(cetpServerCheckOpt.get().data().size(), equalTo(0)); + assertThat(cetpServerCheckOpt.get().status(), equalTo("UP")); + assertThat(cetpServerCheckOpt.get().data().size(), equalTo(3)); Optional statusCheckOpt = healthInfo.checks() .stream()