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.git
The following commit(s) were added to refs/heads/main by this push:
new 4cf6f2a1e3a Fix camel-dhis test does not work with paging=true due to
bug in dhis
4cf6f2a1e3a is described below
commit 4cf6f2a1e3a2e7f663e951559fc682ff7508eea9
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Oct 14 10:28:55 2024 +0200
Fix camel-dhis test does not work with paging=true due to bug in dhis
---
.../src/test/java/org/apache/camel/component/dhis2/Dhis2GetIT.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/components/camel-dhis2/camel-dhis2-component/src/test/java/org/apache/camel/component/dhis2/Dhis2GetIT.java
b/components/camel-dhis2/camel-dhis2-component/src/test/java/org/apache/camel/component/dhis2/Dhis2GetIT.java
index b548ddb45f2..4fa362b333c 100644
---
a/components/camel-dhis2/camel-dhis2-component/src/test/java/org/apache/camel/component/dhis2/Dhis2GetIT.java
+++
b/components/camel-dhis2/camel-dhis2-component/src/test/java/org/apache/camel/component/dhis2/Dhis2GetIT.java
@@ -48,7 +48,7 @@ public class Dhis2GetIT extends AbstractDhis2TestSupport {
final Map<String, Object> headers = new HashMap<>();
headers.put("CamelDhis2.path", "organisationUnits");
headers.put("CamelDhis2.arrayName", "organisationUnits");
- headers.put("CamelDhis2.paging", true);
+ headers.put("CamelDhis2.paging", false); //
https://github.com/dhis2/dhis2-java-sdk/issues/209
headers.put("CamelDhis2.fields", null);
headers.put("CamelDhis2.filter", null);
headers.put("CamelDhis2.queryParams", new HashMap<>());
@@ -79,7 +79,7 @@ public class Dhis2GetIT extends AbstractDhis2TestSupport {
public void configure() {
// test route for collection
from("direct://COLLECTION")
- .to("dhis2://" + PATH_PREFIX + "/collection")
+ .to("dhis2://" + PATH_PREFIX +
"/collection?paging=false")
.split().body().aggregationStrategy(new
GroupedBodyAggregationStrategy())
.convertBodyTo(OrganisationUnit.class);