This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/main by this push:
new 67f74892e3 Fixes #8180 wiremock recording succeeds even if url ends
with '/'
67f74892e3 is described below
commit 67f74892e322647035814cbe9ed11460035ab1d3
Author: JiriOndrusek <[email protected]>
AuthorDate: Wed Jan 21 08:18:40 2026 +0100
Fixes #8180 wiremock recording succeeds even if url ends with '/'
---
.../quarkus/test/wiremock/WireMockTestResourceLifecycleManager.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/integration-tests-support/wiremock/src/main/java/org/apache/camel/quarkus/test/wiremock/WireMockTestResourceLifecycleManager.java
b/integration-tests-support/wiremock/src/main/java/org/apache/camel/quarkus/test/wiremock/WireMockTestResourceLifecycleManager.java
index e77d1069e6..6402c92953 100644
---
a/integration-tests-support/wiremock/src/main/java/org/apache/camel/quarkus/test/wiremock/WireMockTestResourceLifecycleManager.java
+++
b/integration-tests-support/wiremock/src/main/java/org/apache/camel/quarkus/test/wiremock/WireMockTestResourceLifecycleManager.java
@@ -59,6 +59,10 @@ public abstract class WireMockTestResourceLifecycleManager
implements QuarkusTes
if (isRecordingEnabled()) {
String recordTargetBaseUrl = getRecordTargetBaseUrl();
+ //url can not end with slash, that would cause recording to
fail
+ recordTargetBaseUrl = (recordTargetBaseUrl != null &&
recordTargetBaseUrl.endsWith("/"))
+ ? recordTargetBaseUrl.substring(0,
recordTargetBaseUrl.length() - 1) : recordTargetBaseUrl;
+
if (recordTargetBaseUrl != null) {
LOG.infof("Enabling WireMock recording for %s",
recordTargetBaseUrl);
server.startRecording(recordSpec()