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

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 64b99a1ee25e89f075f20c7784b105c36b612758
Author: Andrea Cosentino <[email protected]>
AuthorDate: Mon Nov 28 11:23:06 2022 +0100

    Upgrade AWS SDK v2 to version 2.18.25
    
    Signed-off-by: Andrea Cosentino <[email protected]>
---
 .../integration/S3CreateDownloadLinkOperationIT.java   | 18 +++---------------
 1 file changed, 3 insertions(+), 15 deletions(-)

diff --git 
a/components/camel-aws/camel-aws2-s3/src/test/java/org/apache/camel/component/aws2/s3/integration/S3CreateDownloadLinkOperationIT.java
 
b/components/camel-aws/camel-aws2-s3/src/test/java/org/apache/camel/component/aws2/s3/integration/S3CreateDownloadLinkOperationIT.java
index f1c49719fdf..8d272125aec 100644
--- 
a/components/camel-aws/camel-aws2-s3/src/test/java/org/apache/camel/component/aws2/s3/integration/S3CreateDownloadLinkOperationIT.java
+++ 
b/components/camel-aws/camel-aws2-s3/src/test/java/org/apache/camel/component/aws2/s3/integration/S3CreateDownloadLinkOperationIT.java
@@ -68,14 +68,6 @@ public class S3CreateDownloadLinkOperationIT extends 
Aws2S3Base {
             }
         });
 
-        Exchange ex2 = 
template.request("direct:createDownloadLinkWithoutCredentials", new Processor() 
{
-            public void process(Exchange exchange) {
-                exchange.getIn().setHeader(AWS2S3Constants.KEY, 
"CamelUnitTest2");
-                exchange.getIn().setHeader(AWS2S3Constants.BUCKET_NAME, 
"mycamel2");
-                exchange.getIn().setHeader(AWS2S3Constants.S3_OPERATION, 
AWS2S3Operations.createDownloadLink);
-            }
-        });
-
         Exchange ex3 = 
template.request("direct:createDownloadLinkWithUriOverride", new Processor() {
             public void process(Exchange exchange) {
                 exchange.getIn().setHeader(AWS2S3Constants.KEY, 
"CamelUnitTest2");
@@ -88,11 +80,9 @@ public class S3CreateDownloadLinkOperationIT extends 
Aws2S3Base {
         assertNotNull(downloadLink);
         
assertTrue(downloadLink.startsWith("https://mycamel2.s3.eu-west-1.amazonaws.com";));
 
-        assertNull(ex2.getMessage().getBody());
-
         String downloadLinkWithUriOverride = 
ex3.getMessage().getBody(String.class);
         assertNotNull(downloadLinkWithUriOverride);
-        
assertTrue(downloadLinkWithUriOverride.startsWith("http://localhost:8080";));
+        
assertTrue(downloadLinkWithUriOverride.startsWith("http://mycamel2.localhost:8080";));
 
         MockEndpoint.assertIsSatisfied(context);
     }
@@ -104,11 +94,9 @@ public class S3CreateDownloadLinkOperationIT extends 
Aws2S3Base {
             public void configure() {
                 String awsEndpoint = 
"aws2-s3://mycamel2?autoCreateBucket=true";
 
-                from("direct:listBucket").to(awsEndpoint);
-
-                from("direct:addObject").to(awsEndpoint);
+                from("direct:listBucket").to(awsEndpoint + 
"&accessKey=xxx&secretKey=yyy&region=eu-west-1");
 
-                
from("direct:createDownloadLinkWithoutCredentials").to(awsEndpoint).to("mock:result");
+                from("direct:addObject").to(awsEndpoint + 
"&accessKey=xxx&secretKey=yyy&region=eu-west-1");
 
                 from("direct:createDownloadLink").to(awsEndpoint + 
"&accessKey=xxx&secretKey=yyy&region=eu-west-1")
                         .to("mock:result");

Reply via email to