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

commit 0ae55cfc1cf74a417f66a51a49316907281968b2
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Nov 5 11:09:20 2026 +0100

    ai-benchmark: connect-http-client step 1 accepts http:localhost:8080/stock, 
without the //
    
    r27l-3 wrote uri: http:localhost:8080/stock/CAMEL-MUG?httpMethod=GET. Camel
    takes that form, the call worked and the log was right, but the file check
    wanted http://localhost:8080/stock. The check now takes both forms, with a 
word
    boundary after stock. Of the 287 step 1 routes of all series, only r27l-3 
scores
    differently. The start state, a direct: call, another port or path, and 
https
    still fail the check.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Claude-Session: https://claude.ai/code/session_016Y4dDi5iQNgtHrDdz2NpwF
---
 ai-benchmark/gen_stepwise.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ai-benchmark/gen_stepwise.py b/ai-benchmark/gen_stepwise.py
index f013624..0d8edcb 100644
--- a/ai-benchmark/gen_stepwise.py
+++ b/ai-benchmark/gen_stepwise.py
@@ -675,7 +675,8 @@ EXAMPLES.append({
     "initial": {HC: hc_s1, "application.properties": PORT_PROPS},
     "steps": [
         {"request": "Split the order over its lines (${body[lines]}) and for 
each line call the stock service over HTTP with a GET on 
http://localhost:8080/stock/CAMEL-MUG (a fixed SKU for now; set the body to 
null first, a GET sends no body) and log the response as \"Stock answer: 
${body}\".",
-         "check": {"file_regex": "http://localhost:8080/stock";, "log_regex": 
"Stock answer: \\{\"sku\":\"CAMEL-MUG\",\"qty\":42\\}"},
+         # Camel takes http:localhost:8080/... too, without the // (r27l-3: 
the log was right, and only this check failed)
+         "check": {"file_regex": "http:(//)?localhost:8080/stock\\b", 
"log_regex": "Stock answer: \\{\"sku\":\"CAMEL-MUG\",\"qty\":42\\}"},
          "reference": {HC: hc_s2}},
         {"request": "Call the stock service for the line's own SKU: keep the 
order id, the line's sku and its qty in variables orderId, sku and needed 
before the call (headers would travel on the HTTP request), build the URI per 
line with toD as http://localhost:8080/stock/${variable.sku}, unmarshal the 
JSON answer and log \"${variable.orderId}: ${variable.sku} x 
${variable.needed}, ${body[qty]} in stock\".",
          "check": {"file_regex": "toD", "log_regex": ["ORD-1001: CAMEL-TSHIRT 
x 2, 120 in stock", "ORD-1003: CAMEL-CAP x 1, 0 in stock"]},

Reply via email to