This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git


The following commit(s) were added to refs/heads/main by this push:
     new 372c7a9be84 camel-jolokia-starter : Fix 
JolokiaComponentAutoConfigurationOnK8STest when temp dir end with file 
separator (#1234)
372c7a9be84 is described below

commit 372c7a9be8444c5cbafba3ab0cbfaa106272dfa9
Author: Marco Carletti <[email protected]>
AuthorDate: Wed Sep 25 06:09:25 2024 +0200

    camel-jolokia-starter : Fix JolokiaComponentAutoConfigurationOnK8STest when 
temp dir end with file separator (#1234)
---
 .../jolokia/springboot/JolokiaComponentAutoConfigurationOnK8STest.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/components-starter/camel-jolokia-starter/src/test/java/org/apache/camel/component/jolokia/springboot/JolokiaComponentAutoConfigurationOnK8STest.java
 
b/components-starter/camel-jolokia-starter/src/test/java/org/apache/camel/component/jolokia/springboot/JolokiaComponentAutoConfigurationOnK8STest.java
index 1b0c6798f68..27428fb51af 100644
--- 
a/components-starter/camel-jolokia-starter/src/test/java/org/apache/camel/component/jolokia/springboot/JolokiaComponentAutoConfigurationOnK8STest.java
+++ 
b/components-starter/camel-jolokia-starter/src/test/java/org/apache/camel/component/jolokia/springboot/JolokiaComponentAutoConfigurationOnK8STest.java
@@ -55,7 +55,8 @@ public class JolokiaComponentAutoConfigurationOnK8STest 
extends JolokiaComponent
        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");

Reply via email to