This is an automated email from the ASF dual-hosted git repository.

apupier 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 50bd51aa6662 chore(deps): Bump com.aliyun:sls20201230 in the aliyun 
group - breaking change
50bd51aa6662 is described below

commit 50bd51aa6662044fe4bdbff04a390a5e87115737
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
AuthorDate: Thu Sep 3 06:01:57 2026 +0000

    chore(deps): Bump com.aliyun:sls20201230 in the aliyun group - breaking
    change
    
    Following change in Alibaba model, the GetLogs is not directly providing
    a List of Map in the body anymore. it is now encapsulating it inside a
    `getLogsResponseBody`. The previous List of map is still accessible
    through the `getData` on this object.
    
    Bumps the aliyun group with 1 update:
    [com.aliyun:sls20201230](https://github.com/aliyun/alibabacloud-java-sdk).
    
    Updates `com.aliyun:sls20201230` from 5.16.0 to 5.17.0
    - 
[Changelog](https://github.com/aliyun/alibabacloud-java-sdk/blob/master/docmind-api-20220711/ChangeLog.txt)
    - [Commits](https://github.com/aliyun/alibabacloud-java-sdk/commits)
    
    ---
    updated-dependencies:
    - dependency-name: com.aliyun:sls20201230
      dependency-version: 5.17.0
      dependency-type: direct:production
      update-type: version-update:semver-minor
      dependency-group: aliyun
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
---
 .../org/apache/camel/component/alibaba/sls/GetLogsTest.java   | 11 +++++++++--
 parent/pom.xml                                                |  2 +-
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git 
a/components/camel-alibaba/camel-alibaba-sls/src/test/java/org/apache/camel/component/alibaba/sls/GetLogsTest.java
 
b/components/camel-alibaba/camel-alibaba-sls/src/test/java/org/apache/camel/component/alibaba/sls/GetLogsTest.java
index 69a972f76eea..15244a554545 100644
--- 
a/components/camel-alibaba/camel-alibaba-sls/src/test/java/org/apache/camel/component/alibaba/sls/GetLogsTest.java
+++ 
b/components/camel-alibaba/camel-alibaba-sls/src/test/java/org/apache/camel/component/alibaba/sls/GetLogsTest.java
@@ -23,6 +23,7 @@ import java.util.Map;
 import com.aliyun.sls20201230.Client;
 import com.aliyun.sls20201230.models.GetLogsRequest;
 import com.aliyun.sls20201230.models.GetLogsResponse;
+import com.aliyun.sls20201230.models.GetLogsResponseBody;
 import org.apache.camel.BindToRegistry;
 import org.apache.camel.Exchange;
 import org.apache.camel.builder.RouteBuilder;
@@ -73,7 +74,9 @@ class GetLogsTest extends CamelTestSupport {
         GetLogsResponse response = new GetLogsResponse();
         response.setStatusCode(200);
         response.setHeaders(Collections.singletonMap("x-log-requestid", 
"req-456"));
-        response.setBody(List.of(Map.of("message", "log line")));
+        GetLogsResponseBody logsResponseBody = new GetLogsResponseBody();
+        logsResponseBody.setData(List.of(Map.of("message", "log line")));
+        response.setBody(logsResponseBody);
 
         when(slsClient.getLogs(
                 eq(testConfiguration.getProperty("project")),
@@ -91,7 +94,11 @@ class GetLogsTest extends CamelTestSupport {
         Map<String, Object> body = exchange.getMessage().getBody(Map.class);
         assertThat(body)
                 .containsEntry("statusCode", 200)
-                .containsEntry("body", List.of(Map.of("message", "log line")));
+                .containsKey("body");
+        assertThat(body.get("body"))
+                .isInstanceOf(GetLogsResponseBody.class);
+        assertThat(((GetLogsResponseBody) body.get("body")).getData())
+                .contains(Map.of("message", "log line"));
         
assertThat(exchange.getMessage().getHeader(AlibabaSlsHeaders.STATUS_CODE)).isEqualTo(200);
         
assertThat(exchange.getMessage().getHeader(AlibabaSlsHeaders.REQUEST_ID)).isEqualTo("req-456");
 
diff --git a/parent/pom.xml b/parent/pom.xml
index 7a877209364b..06252e4338e7 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -69,7 +69,7 @@
         <aliyun-fc-open-version>2.1.0</aliyun-fc-open-version>
         <aliyun-dysmsapi-version>4.6.0</aliyun-dysmsapi-version>
         <aliyun-kms-version>2.3.0</aliyun-kms-version>
-        <aliyun-sls-version>5.16.0</aliyun-sls-version>
+        <aliyun-sls-version>5.17.0</aliyun-sls-version>
         <aliyun-eventbridge-version>7.3.0</aliyun-eventbridge-version>
         
<aliyun-eventbridge-client-version>1.3.14</aliyun-eventbridge-client-version>
         <aliyun-tablestore-version>5.17.13</aliyun-tablestore-version>

Reply via email to