You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ji...@apache.org on 2025/04/29 06:45:14 UTC
(camel-quarkus) 07/09: Fixed google-bigquery
This is an automated email from the ASF dual-hosted git repository.
jiriondrusek pushed a commit to branch camel-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit c0b7c56dafaf84ee710e771ac199bfa0cb20a08b
Author: Jiri Ondrusek <on...@gmail.com>
AuthorDate: Wed Apr 23 11:25:45 2025 +0200
Fixed google-bigquery
---
.../azure/storage/blob/it/AzureStorageBlobRoutes.java | 10 +++++++---
.../component/google/bigquery/it/GoogleBigqueryTest.java | 5 ++---
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/integration-test-groups/azure/azure-storage-blob/src/main/java/org/apache/camel/quarkus/component/azure/storage/blob/it/AzureStorageBlobRoutes.java b/integration-test-groups/azure/azure-storage-blob/src/main/java/org/apache/camel/quarkus/component/azure/storage/blob/it/AzureStorageBlobRoutes.java
index 58cb4c181b..4b872f0326 100644
--- a/integration-test-groups/azure/azure-storage-blob/src/main/java/org/apache/camel/quarkus/component/azure/storage/blob/it/AzureStorageBlobRoutes.java
+++ b/integration-test-groups/azure/azure-storage-blob/src/main/java/org/apache/camel/quarkus/component/azure/storage/blob/it/AzureStorageBlobRoutes.java
@@ -20,6 +20,7 @@ import jakarta.enterprise.context.ApplicationScoped;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.azure.storage.blob.BlobConstants;
import org.apache.camel.component.azure.storage.blob.BlobOperationsDefinition;
+import org.apache.camel.quarkus.test.mock.backend.MockBackendUtils;
import org.eclipse.microprofile.config.inject.ConfigProperty;
@ApplicationScoped
@@ -49,9 +50,12 @@ public class AzureStorageBlobRoutes extends RouteBuilder {
from("direct:read")
.to(componentUri(BlobOperationsDefinition.getBlob));
- from("direct:readWithManagedClient")
- .to(componentUri("azure-storage-blob-managed-client", BlobOperationsDefinition.getBlob)
- + "&autowiredEnabled=false");
+ //used only for real backend
+ if (!MockBackendUtils.startMockBackend(false)) {
+ from("direct:readWithManagedClient")
+ .to(componentUri("azure-storage-blob-managed-client", BlobOperationsDefinition.getBlob)
+ + "&autowiredEnabled=false");
+ }
if (AzureStorageHelper.isClientSecretAuthEnabled()) {
from("direct:readWithClientSecret")
diff --git a/integration-tests/google-bigquery/src/test/java/org/apache/camel/quarkus/component/google/bigquery/it/GoogleBigqueryTest.java b/integration-tests/google-bigquery/src/test/java/org/apache/camel/quarkus/component/google/bigquery/it/GoogleBigqueryTest.java
index c99fe782cb..635a4b6c27 100644
--- a/integration-tests/google-bigquery/src/test/java/org/apache/camel/quarkus/component/google/bigquery/it/GoogleBigqueryTest.java
+++ b/integration-tests/google-bigquery/src/test/java/org/apache/camel/quarkus/component/google/bigquery/it/GoogleBigqueryTest.java
@@ -319,9 +319,8 @@ class GoogleBigqueryTest {
.statusCode(200)
.body("", hasItems(
allOf(hasEntry("id", "1"), hasEntry("col1", "2"), hasEntry("col2", "3")),
- allOf(hasEntry("id", "2"), hasEntry("col1", "3"), hasEntry("col2", "4"))
- ));
-// .body(conis("2"));
+ allOf(hasEntry("id", "2"), hasEntry("col1", "3"), hasEntry("col2", "4"))));
+ // .body(conis("2"));
//update
RestAssured.given()