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 2020/12/10 13:40:06 UTC
[camel-kafka-connector] branch camel-master updated: Set the
service version to the supported one from Azurite to prevent test failures
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch camel-master
in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector.git
The following commit(s) were added to refs/heads/camel-master by this push:
new c5bc996 Set the service version to the supported one from Azurite to prevent test failures
c5bc996 is described below
commit c5bc996f756a707c02a9394280191068a926d461
Author: Otavio Rodolfo Piske <op...@redhat.com>
AuthorDate: Thu Dec 10 13:56:19 2020 +0100
Set the service version to the supported one from Azurite to prevent test failures
---
.../azure/storage/services/AzureStorageBlobClientUtils.java | 2 ++
.../kafkaconnector/azure/storage/services/AzureStorageClientUtils.java | 2 ++
2 files changed, 4 insertions(+)
diff --git a/tests/itests-azure-storage-blob/src/test/java/org/apache/camel/kafkaconnector/azure/storage/services/AzureStorageBlobClientUtils.java b/tests/itests-azure-storage-blob/src/test/java/org/apache/camel/kafkaconnector/azure/storage/services/AzureStorageBlobClientUtils.java
index 6333a2d..82f45a1 100644
--- a/tests/itests-azure-storage-blob/src/test/java/org/apache/camel/kafkaconnector/azure/storage/services/AzureStorageBlobClientUtils.java
+++ b/tests/itests-azure-storage-blob/src/test/java/org/apache/camel/kafkaconnector/azure/storage/services/AzureStorageBlobClientUtils.java
@@ -21,6 +21,7 @@ import com.azure.core.http.policy.HttpLogDetailLevel;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.storage.blob.BlobServiceClient;
import com.azure.storage.blob.BlobServiceClientBuilder;
+import com.azure.storage.blob.BlobServiceVersion;
import com.azure.storage.common.StorageSharedKeyCredential;
import org.apache.camel.kafkaconnector.azure.common.AzureConfigs;
@@ -56,6 +57,7 @@ public final class AzureStorageBlobClientUtils {
.endpoint(endpoint)
.credential(credential)
.httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS).setPrettyPrintBody(true))
+ .serviceVersion(BlobServiceVersion.V2019_12_12)
.buildClient();
}
}
diff --git a/tests/itests-azure-storage-queue/src/test/java/org/apache/camel/kafkaconnector/azure/storage/services/AzureStorageClientUtils.java b/tests/itests-azure-storage-queue/src/test/java/org/apache/camel/kafkaconnector/azure/storage/services/AzureStorageClientUtils.java
index 451776f..f5cb089 100644
--- a/tests/itests-azure-storage-queue/src/test/java/org/apache/camel/kafkaconnector/azure/storage/services/AzureStorageClientUtils.java
+++ b/tests/itests-azure-storage-queue/src/test/java/org/apache/camel/kafkaconnector/azure/storage/services/AzureStorageClientUtils.java
@@ -22,6 +22,7 @@ import com.azure.core.http.policy.HttpLogOptions;
import com.azure.storage.common.StorageSharedKeyCredential;
import com.azure.storage.queue.QueueServiceClient;
import com.azure.storage.queue.QueueServiceClientBuilder;
+import com.azure.storage.queue.QueueServiceVersion;
import org.apache.camel.kafkaconnector.azure.common.AzureConfigs;
public final class AzureStorageClientUtils {
@@ -56,6 +57,7 @@ public final class AzureStorageClientUtils {
.endpoint(endpoint)
.credential(credential)
.httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS).setPrettyPrintBody(true))
+ .serviceVersion(QueueServiceVersion.V2019_12_12)
.buildClient();
}
}