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.git


The following commit(s) were added to refs/heads/main by this push:
     new bbd6f750aa00 CAMEL-25745: camel-jbang-core - CatalogSamplesTest 
accepts a quoted http uri in the first http sample
bbd6f750aa00 is described below

commit bbd6f750aa00ee214e8be442a1f30c9b9dd01fe0
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Oct 19 08:21:54 2026 +0200

    CAMEL-25745: camel-jbang-core - CatalogSamplesTest accepts a quoted http 
uri in the first http sample
    
    The first YAML sample of the http component is now the stock lookup with 
toD, whose uri is quoted as it holds
    ${body[sku]}, so the test checked for an unquoted "uri: http" that is no 
longer there.
    
    Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 .../apache/camel/dsl/jbang/core/commands/ai/CatalogSamplesTest.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/dsl/camel-jbang/camel-jbang-core/src/test/java/org/apache/camel/dsl/jbang/core/commands/ai/CatalogSamplesTest.java
 
b/dsl/camel-jbang/camel-jbang-core/src/test/java/org/apache/camel/dsl/jbang/core/commands/ai/CatalogSamplesTest.java
index 1820d2a98c17..875ab98eac0b 100644
--- 
a/dsl/camel-jbang/camel-jbang-core/src/test/java/org/apache/camel/dsl/jbang/core/commands/ai/CatalogSamplesTest.java
+++ 
b/dsl/camel-jbang/camel-jbang-core/src/test/java/org/apache/camel/dsl/jbang/core/commands/ai/CatalogSamplesTest.java
@@ -149,7 +149,8 @@ public class CatalogSamplesTest {
             JsonObject o = CatalogSamples.sample(catalog, term, 2);
             assertThat(o.getString("name")).as(term).isEqualTo("http");
             assertThat(o.getString("note")).as(term).contains("to:", "toD:");
-            assertThat(((JsonObject) ((JsonArray) 
o.get("samples")).get(0)).getString("yaml")).contains("uri: http");
+            assertThat(((JsonObject) ((JsonArray) 
o.get("samples")).get(0)).getString("yaml"))
+                    .containsPattern("uri: \"?http");
         }
         // calling an API by its contract: the rest-openapi producer
         JsonObject o = CatalogSamples.sample(catalog, "openapi client", 5);

Reply via email to