This is an automated email from the ASF dual-hosted git repository. JiriOndrusek pushed a commit to branch camel-main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 87566a0c1fff3eaf291b2d4fee1143a4f53c8580 Author: jiriOndrusek-agent <[email protected]> AuthorDate: Thu Oct 22 08:46:11 2026 +0000 Stub the paged newIssues search in the jira tests Since CAMEL-25806 the newIssues consumer reads every page of its search. The recorded search has total 2 with maxResults=1, so the consumer also asks for startAt=1 and startAt=2, which WireMock did not match and the poll failed. Add stubs for these two pages. Co-Authored-By: Claude Opus 5.5 <[email protected]> --- .../rest_api_latest_search_new_issues_page_2.json | 42 ++++++++++++++++++++++ .../rest_api_latest_search_new_issues_page_3.json | 41 +++++++++++++++++++++ 2 files changed, 83 insertions(+) diff --git a/integration-tests/jira/src/test/resources/mappings/rest_api_latest_search_new_issues_page_2.json b/integration-tests/jira/src/test/resources/mappings/rest_api_latest_search_new_issues_page_2.json new file mode 100644 index 0000000000..578bc3fab6 --- /dev/null +++ b/integration-tests/jira/src/test/resources/mappings/rest_api_latest_search_new_issues_page_2.json @@ -0,0 +1,42 @@ +{ + "name" : "rest_api_latest_search_new_issues_page_2", + "request" : { + "urlPath" : "/rest/api/latest/search", + "method" : "GET", + "queryParameters" : { + "jql" : { + "hasExactly" : [ { + "equalTo" : "created > \"2025-10-23 12:26\" AND project=TEST ORDER BY created DESC" + } ] + }, + "expand" : { + "hasExactly" : [ { + "equalTo" : "schema,names" + } ] + }, + "fields" : { + "hasExactly" : [ { + "equalTo" : "*navigable" + } ] + }, + "maxResults" : { + "hasExactly" : [ { + "equalTo" : "1" + } ] + }, + "startAt" : { + "hasExactly" : [ { + "equalTo" : "1" + } ] + } + } + }, + "response" : { + "status" : 200, + "transformers" : [ "response-template" ], + "body" : "{\"expand\":\"names,schema\",\"startAt\":1,\"maxResults\":1,\"total\":2,\"issues\":[{\"expand\":\"operations,versionedRepresentations,editmeta,changelog,renderedFields\",\"id\":\"10094\",\"self\":\"{{request.baseUrl}}/rest/api/latest/issue/10094\",\"key\":\"TEST-95\",\"fields\":{\"issuetype\":{\"self\":\"{{request.baseUrl}}/rest/api/2/issuetype/10002\",\"id\":\"10002\",\"description\":\"A task that needs to be done.\",\"iconUrl\":\"{{request.baseUrl}}/secure/viewavatar?size [...] + "headers" : { + "Content-Type" : "application/json;charset=UTF-8" + } + } +} diff --git a/integration-tests/jira/src/test/resources/mappings/rest_api_latest_search_new_issues_page_3.json b/integration-tests/jira/src/test/resources/mappings/rest_api_latest_search_new_issues_page_3.json new file mode 100644 index 0000000000..e1865dad87 --- /dev/null +++ b/integration-tests/jira/src/test/resources/mappings/rest_api_latest_search_new_issues_page_3.json @@ -0,0 +1,41 @@ +{ + "name" : "rest_api_latest_search_new_issues_page_3", + "request" : { + "urlPath" : "/rest/api/latest/search", + "method" : "GET", + "queryParameters" : { + "jql" : { + "hasExactly" : [ { + "equalTo" : "created > \"2025-10-23 12:26\" AND project=TEST ORDER BY created DESC" + } ] + }, + "expand" : { + "hasExactly" : [ { + "equalTo" : "schema,names" + } ] + }, + "fields" : { + "hasExactly" : [ { + "equalTo" : "*navigable" + } ] + }, + "maxResults" : { + "hasExactly" : [ { + "equalTo" : "1" + } ] + }, + "startAt" : { + "hasExactly" : [ { + "equalTo" : "2" + } ] + } + } + }, + "response" : { + "status" : 200, + "body" : "{\"expand\":\"names,schema\",\"startAt\":2,\"maxResults\":1,\"total\":2,\"issues\":[]}", + "headers" : { + "Content-Type" : "application/json;charset=UTF-8" + } + } +}
