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 b898af48b0 Fix WireMock stub recording for OpenaiChatTest.streamingChat
b898af48b0 is described below

commit b898af48b07e59324fe6fb0eafd02a880c3b7366
Author: James Netherton <[email protected]>
AuthorDate: Wed Mar 25 11:48:50 2026 +0000

    Fix WireMock stub recording for OpenaiChatTest.streamingChat
---
 .../org/apache/camel/quarkus/component/openai/it/OpenaiChatTest.java    | 2 +-
 .../mappings/chat_completions-323a6828-8117-4d20-9627-72939652f6e4.json | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/integration-tests/openai/src/test/java/org/apache/camel/quarkus/component/openai/it/OpenaiChatTest.java
 
b/integration-tests/openai/src/test/java/org/apache/camel/quarkus/component/openai/it/OpenaiChatTest.java
index c655b456f4..06eda3262d 100644
--- 
a/integration-tests/openai/src/test/java/org/apache/camel/quarkus/component/openai/it/OpenaiChatTest.java
+++ 
b/integration-tests/openai/src/test/java/org/apache/camel/quarkus/component/openai/it/OpenaiChatTest.java
@@ -195,7 +195,7 @@ class OpenaiChatTest {
                             receivedNumbers.add(result.trim());
                         }
                     }
-                    return receivedNumbers.size() >= 9;
+                    return receivedNumbers.size() == 9;
                 });
 
         Set<String> expectedNumbers = IntStream.rangeClosed(1, 9)
diff --git 
a/integration-tests/openai/src/test/resources/mappings/chat_completions-323a6828-8117-4d20-9627-72939652f6e4.json
 
b/integration-tests/openai/src/test/resources/mappings/chat_completions-323a6828-8117-4d20-9627-72939652f6e4.json
index 8c9b607a03..7bb2577274 100644
--- 
a/integration-tests/openai/src/test/resources/mappings/chat_completions-323a6828-8117-4d20-9627-72939652f6e4.json
+++ 
b/integration-tests/openai/src/test/resources/mappings/chat_completions-323a6828-8117-4d20-9627-72939652f6e4.json
@@ -12,7 +12,7 @@
   },
   "response" : {
     "status" : 200,
-    "body" : "data: 
{\"id\":\"chatcmpl-D6FgltKdw8sxHBHCgSTfrRAB94xZ7\",\"object\":\"chat.completion.chunk\",\"created\":1770382647,\"model\":\"gpt-5-2025-08-07\",\"service_tier\":\"default\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"\",\"refusal\":null},\"finish_reason\":null}],\"obfuscation\":\"0SVAnI4\"}\n\ndata:
 
{\"id\":\"chatcmpl-D6FgltKdw8sxHBHCgSTfrRAB94xZ7\",\"object\":\"chat.completion.chunk\",\"created\":1770382647,\"mo
 [...]
+    "body" : "data: 
{\"id\":\"chatcmpl-D6FgltKdw8sxHBHCgSTfrRAB94xZ7\",\"object\":\"chat.completion.chunk\",\"created\":1770382647,\"model\":\"gpt-5-2025-08-07\",\"service_tier\":\"default\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"\",\"refusal\":null},\"finish_reason\":null}],\"obfuscation\":\"0SVAnI4\"}\n\ndata:
 
{\"id\":\"chatcmpl-D6FgltKdw8sxHBHCgSTfrRAB94xZ7\",\"object\":\"chat.completion.chunk\",\"created\":1770382647,\"mo
 [...]
     "headers" : {
       "x-request-id" : "req_03dcc349cbf340798adecb63fb51ea8a",
       "x-ratelimit-limit-tokens" : "500000",

Reply via email to