Skip to content

Commit

Permalink
camel-jolokia-starter : Fix JolokiaComponentAutoConfigurationOnK8STes…
Browse files Browse the repository at this point in the history
…t when temp dir end with file separator
  • Loading branch information
mcarlett committed Sep 24, 2024
1 parent d5c62bf commit 590182d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ static void customProperties(DynamicPropertyRegistry registry) {
void sslConfigurationTest() {
Assertions.assertThat(agent.getServerConfig().getCaCert()).as("check caCert ssl configuration")
.isNotBlank()
.startsWith(String.format("%s%scsb", System.getProperty("java.io.tmpdir"), File.separator))
.startsWith(String.format("%s%scsb", System.getProperty("java.io.tmpdir"),
System.getProperty("java.io.tmpdir").endsWith(File.separator) ? "" : File.separator))
.endsWith(".ca");
Assertions.assertThat(agent.getServerConfig().getProtocol()).as("check ssl protocol configuration")
.isEqualTo("https");
Expand Down

0 comments on commit 590182d

Please sign in to comment.