Skip to content

test: fix jira-source-pipe Citrus test to match actual Jira API behavior#2844

Merged
cunningt merged 2 commits into
apache:mainfrom
cunningt:yamlfixes
May 19, 2026
Merged

test: fix jira-source-pipe Citrus test to match actual Jira API behavior#2844
cunningt merged 2 commits into
apache:mainfrom
cunningt:yamlfixes

Conversation

@cunningt
Copy link
Copy Markdown
Contributor

@cunningt cunningt commented May 19, 2026

Summary

Fixes the failing JiraIT test by updating the mock Jira API responses to match the actual behavior of the jira-source kamelet.

Changes

  • Updated ORDER BY clause: Changed from key desc to created DESC to match the actual query parameter sent by the kamelet
  • Added missing query parameters: The test now includes expand, fields, and startAt parameters that are sent by the actual kamelet implementation
  • Added /rest/api/latest/myself endpoint mock: The jira-source kamelet calls this endpoint during initialization, which was missing from the test

Test Validation

The test mock now accurately reflects:

  1. The initial search request with ORDER BY created DESC and maxResults=1
  2. The myself endpoint call for user authentication verification
  3. The main search request with the full set of query parameters

This ensures the Citrus test properly validates the kamelet's interaction with the Jira API.


🤖 Generated with Claude Code on behalf of Tom Cunningham

@cunningt cunningt requested a review from oscerd May 19, 2026 01:57
The test was failing because it didn't match the actual query parameters
and API calls made by the jira-source kamelet:

- Changed ORDER BY clause from 'key desc' to 'created DESC' to match
  the actual query parameter sent by the kamelet
- Added missing query parameters: expand, fields, and startAt
- Added mock for /rest/api/latest/myself endpoint which is called
  during kamelet initialization

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@cunningt cunningt changed the title Use DelegatingDataTypeProcessor for data-type-action test: fix jira-source-pipe Citrus test to match actual Jira API behavior May 19, 2026
@cunningt cunningt requested a review from christophd May 19, 2026 12:24
@cunningt cunningt merged commit f383a69 into apache:main May 19, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants