This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-spring-boot-4.10.x in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
commit 3852fdbc478c3bbf48dcfabe4dff355c0c4a67bf Author: Claus Ibsen <[email protected]> AuthorDate: Thu Jul 31 08:39:34 2025 +0200 CAMEL-22282: camel-http: check if message body is empty deciding between GET vs POST also for stream cached --- .../http/springboot/SpringBootPlatformHttpBridgedEndpointTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components-starter/camel-platform-http-starter/src/test/java/org/apache/camel/component/platform/http/springboot/SpringBootPlatformHttpBridgedEndpointTest.java b/components-starter/camel-platform-http-starter/src/test/java/org/apache/camel/component/platform/http/springboot/SpringBootPlatformHttpBridgedEndpointTest.java index 003f44a548d..e29e742e6d7 100644 --- a/components-starter/camel-platform-http-starter/src/test/java/org/apache/camel/component/platform/http/springboot/SpringBootPlatformHttpBridgedEndpointTest.java +++ b/components-starter/camel-platform-http-starter/src/test/java/org/apache/camel/component/platform/http/springboot/SpringBootPlatformHttpBridgedEndpointTest.java @@ -26,7 +26,6 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; -import org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2ClientAutoConfiguration; import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.web.server.LocalServerPort; @@ -39,7 +38,7 @@ import static com.github.tomakehurst.wiremock.client.WireMock.*; import static io.restassured.RestAssured.given; import static org.hamcrest.Matchers.containsString; -@EnableAutoConfiguration(exclude = {OAuth2ClientAutoConfiguration.class, SecurityAutoConfiguration.class}) +@EnableAutoConfiguration(exclude = {SecurityAutoConfiguration.class}) @CamelSpringBootTest @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = { CamelAutoConfiguration.class, SpringBootPlatformHttpBridgedEndpointTest.class, SpringBootPlatformHttpBridgedEndpointTest.TestConfiguration.class, @@ -75,7 +74,8 @@ public class SpringBootPlatformHttpBridgedEndpointTest { from("direct:mock") .setHeader("wiremockUrl", () -> wiremockUrl) .log("${headers}") - .toD("${headers.wiremockUrl}/backend?skipControlHeaders=true&bridgeEndpoint=true"); + .removeHeader("CamelHttpPath") + .toD("${headers.wiremockUrl}/backend?bridgeEndpoint=true"); } }; }
