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


The following commit(s) were added to refs/heads/main by this push:
     new 6b16b587c chore: websocket-sink test - the second message goes through 
a second sink on another URL (CAMEL-27507) (#3392)
6b16b587c is described below

commit 6b16b587c24d417438e0c818f2b2f38a4728c352
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Nov 24 20:27:24 2026 +0100

    chore: websocket-sink test - the second message goes through a second sink 
on another URL (CAMEL-27507) (#3392)
    
    With CAMEL-27507 fixed in Camel 4.24.0, a second websocket-sink with its own
    URL no longer deadlocks after the first one has sent. The test sends the
    bytes message on ?token=second and checks that the server got that token.
    
    
    Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
    
    Co-authored-by: Claude Opus 5.5 <[email protected]>
---
 .../src/test/resources/websocket/websocket-sink-route.yaml            | 4 ++--
 .../src/test/resources/websocket/websocket-sink.citrus.it.yaml        | 4 +++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git 
a/tests/camel-kamelets-itest/src/test/resources/websocket/websocket-sink-route.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/websocket/websocket-sink-route.yaml
index 38f31f32a..dcbb87522 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/websocket/websocket-sink-route.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/websocket/websocket-sink-route.yaml
@@ -65,8 +65,8 @@
             constant: "Hello bytes"
         - convertBodyTo:
             type: "byte[]"
-        # the same URL, so the connection of the first message is used again
+        # another URL, so a second sink with its own connection, after the 
first one has sent (CAMEL-27507)
         - to:
             uri: "kamelet:websocket-sink"
             parameters:
-              url: "ws://localhost:{{ws.server.port}}/in?token=RAW(a+b&c%)"
+              url: "ws://localhost:{{ws.server.port}}/in?token=second"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/websocket/websocket-sink.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/websocket/websocket-sink.citrus.it.yaml
index c3e1d1bc5..0e2e83854 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/websocket/websocket-sink.citrus.it.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/websocket/websocket-sink.citrus.it.yaml
@@ -73,7 +73,7 @@ actions:
           reasonPhrase: "OK"
           version: "HTTP/1.1"
 
-  # a bytes body reaches the server as a binary message
+  # a bytes body reaches the server as a binary message, sent by a second sink 
on another URL
   - http:
       server: "websocketResultServer"
       receiveRequest:
@@ -83,6 +83,8 @@ actions:
           headers:
             - name: "X-Body-Type"
               value: "[B"
+            - name: "X-Token"
+              value: "second"
           body:
             data: "Hello bytes"
   - http:

Reply via email to