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 665d9ce84 ci: fire the Jira sink itest timers only once so no request
leaks into the next test (#3138)
665d9ce84 is described below
commit 665d9ce84f092c76a7e17bd50a7ee1b715cf797e
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Nov 16 16:20:34 2026 +0100
ci: fire the Jira sink itest timers only once so no request leaks into the
next test (#3138)
The Jira sink routes ran a repeating 10s timer. Citrus stops the Camel app
with `camel stop <pid>`, which returns before the JVM has exited; when the
second timer fire landed in that window, its getIssue request
(expand=schema,names,transitions) reached the shared jiraServer after the
after-test purge, and jira-source-route-test received it as its first
request:
Values not equal for header element 'citrus_http_query_params(expand)',
expected 'schema,names' but was 'schema,names,transitions'
Setting repeatCount: 1 means each route sends exactly one exchange, so
nothing can reach the mock server after the purge.
Co-authored-by: Claude Opus 5.5 <[email protected]>
---
.../src/test/resources/jira/jira-add-comment-sink-route.yaml | 1 +
.../src/test/resources/jira/jira-add-issue-sink-route.yaml | 1 +
2 files changed, 2 insertions(+)
diff --git
a/tests/camel-kamelets-itest/src/test/resources/jira/jira-add-comment-sink-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/jira/jira-add-comment-sink-route.yaml
index 2783691dc..291fbc44c 100644
---
a/tests/camel-kamelets-itest/src/test/resources/jira/jira-add-comment-sink-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/jira/jira-add-comment-sink-route.yaml
@@ -20,6 +20,7 @@
uri: "kamelet:timer-source"
parameters:
period: '{{timer.source.period}}'
+ repeatCount: 1
message: '{{jira.issue.comment}}'
steps:
- to:
diff --git
a/tests/camel-kamelets-itest/src/test/resources/jira/jira-add-issue-sink-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/jira/jira-add-issue-sink-route.yaml
index 07c6b2dbd..361813bb0 100644
---
a/tests/camel-kamelets-itest/src/test/resources/jira/jira-add-issue-sink-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/jira/jira-add-issue-sink-route.yaml
@@ -20,6 +20,7 @@
uri: "kamelet:timer-source"
parameters:
period: '{{timer.source.period}}'
+ repeatCount: 1
message: '{{jira.issue.description}}'
steps:
- to: