Skip to content

Commit

Permalink
EPA-282
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-kontcur committed Oct 14, 2024
1 parent d1312a8 commit a6dd055
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -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>=
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@
<groupId>de.servicehealth</groupId>
<artifactId>lib-cetp</artifactId>
<versioning>
<lastUpdated>20241014123324</lastUpdated>
<lastUpdated>20241014131730</lastUpdated>
<snapshot>
<localCopy>true</localCopy>
</snapshot>
<snapshotVersions>
<snapshotVersion>
<extension>pom</extension>
<value>1.0-SNAPSHOT</value>
<updated>20241014123324</updated>
<updated>20241014131730</updated>
</snapshotVersion>
<snapshotVersion>
<extension>jar</extension>
<value>1.0-SNAPSHOT</value>
<updated>20241014123324</updated>
<updated>20241014131730</updated>
</snapshotVersion>
<snapshotVersion>
<classifier>sources</classifier>
<extension>jar</extension>
<value>1.0-SNAPSHOT</value>
<updated>20241014123324</updated>
<updated>20241014131730</updated>
</snapshotVersion>
</snapshotVersions>
</versioning>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
<versions>
<version>1.0-SNAPSHOT</version>
</versions>
<lastUpdated>20241014123324</lastUpdated>
<lastUpdated>20241014131730</lastUpdated>
</versioning>
</metadata>
4 changes: 1 addition & 3 deletions src/main/java/health/ere/ps/config/RuntimeConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<CheckInfo> statusCheckOpt = healthInfo.checks()
.stream()
Expand Down

0 comments on commit a6dd055

Please sign in to comment.