You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/04/15 12:56:32 UTC

[camel] 06/07: CAMEL-16512 - Camel-Azure components: mark the clients as autowired - Storage-Blob

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

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

commit 1474b83e25bb7e3a3639341cfb7ef22f7d6cd452
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Apr 15 14:52:07 2021 +0200

    CAMEL-16512 - Camel-Azure components: mark the clients as autowired - Storage-Blob
---
 .../component/azure/storage/blob/integration/BlobConsumerIT.java  | 8 ++++----
 .../component/azure/storage/blob/integration/BlobProducerIT.java  | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobConsumerIT.java b/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobConsumerIT.java
index f0f3200..17b74f8 100644
--- a/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobConsumerIT.java
+++ b/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobConsumerIT.java
@@ -215,7 +215,7 @@ class BlobConsumerIT extends Base {
             @Override
             public void configure() {
                 from("direct:createBlob")
-                        .to("azure-storage-blob://cameldev?blobServiceClient=#serviceClient&operation=uploadBlockBlob");
+                        .to("azure-storage-blob://cameldev?operation=uploadBlockBlob");
 
                 from("azure-storage-blob://cameldev/" + containerName + "?blobName=" + blobName
                      + "&blobServiceClient=#serviceClient&fileDir="
@@ -225,15 +225,15 @@ class BlobConsumerIT extends Base {
                      + "&blobServiceClient=#serviceClient")
                              .to("mock:resultOutputStream");
 
-                from("azure-storage-blob://cameldev/" + batchContainerName + "?blobServiceClient=#serviceClient")
+                from("azure-storage-blob://cameldev/" + batchContainerName)
                         .to("mock:resultBatch");
 
-                from("azure-storage-blob://cameldev/" + batchContainerName + "?blobServiceClient=#serviceClient&fileDir="
+                from("azure-storage-blob://cameldev/" + batchContainerName + "?fileDir="
                      + testDir.toString()).to("mock:resultBatchFile");
 
                 // if regex is set then prefix should have no effect
                 from("azure-storage-blob://cameldev/" + batchContainerName
-                     + "?blobServiceClient=#serviceClient&prefix=aaaa&regex=" + regex)
+                     + "?prefix=aaaa&regex=" + regex)
                              .idempotentConsumer(body(), new MemoryIdempotentRepository())
                              .to("mock:resultRegex");
             }
diff --git a/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobProducerIT.java b/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobProducerIT.java
index 9f373c6..f3adbec 100644
--- a/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobProducerIT.java
+++ b/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobProducerIT.java
@@ -212,7 +212,7 @@ class BlobProducerIT extends Base {
     }
 
     private String componentUri(final String operation) {
-        return String.format("azure-storage-blob://cameldev/%s?blobServiceClient=#serviceClient&operation=%s", containerName,
+        return String.format("azure-storage-blob://cameldev/%s?operation=%s", containerName,
                 operation);
     }
 }