diff --git a/integration-tests/main/src/main/java/io/quarkiverse/googlecloudservices/it/pubsub/TopicManager.java b/integration-tests/main/src/main/java/io/quarkiverse/googlecloudservices/it/pubsub/TopicManager.java index f6dab09f..e674eb91 100644 --- a/integration-tests/main/src/main/java/io/quarkiverse/googlecloudservices/it/pubsub/TopicManager.java +++ b/integration-tests/main/src/main/java/io/quarkiverse/googlecloudservices/it/pubsub/TopicManager.java @@ -32,7 +32,7 @@ public class TopicManager { boolean useEmulator; @ConfigProperty(name = "quarkus.google.cloud.pubsub.emulator-host") - String emulatorHost; + Optional emulatorHost; private TopicName topicName; private Optional channelProvider; @@ -42,7 +42,7 @@ void init() { this.topicName = TopicName.of(projectId, "test-topic"); if (useEmulator) { - ManagedChannel channel = ManagedChannelBuilder.forTarget(emulatorHost).usePlaintext().build(); + ManagedChannel channel = ManagedChannelBuilder.forTarget(emulatorHost.get()).usePlaintext().build(); channelProvider = Optional.of(FixedTransportChannelProvider.create(GrpcTransportChannel.create(channel))); } else { channelProvider = Optional.empty(); diff --git a/integration-tests/main/src/main/resources/application.properties b/integration-tests/main/src/main/resources/application.properties index c541c9aa..778d1988 100644 --- a/integration-tests/main/src/main/resources/application.properties +++ b/integration-tests/main/src/main/resources/application.properties @@ -20,12 +20,13 @@ my.database.password=${sm//integration-test} ## Logging config -%test.quarkus.google.cloud.logging.default-log=test -%test.quarkus.google.cloud.logging.default-label.app=test -%test.quarkus.google.cloud.logging.resource.type=generic_node -%test.quarkus.google.cloud.logging.resource.label.location=eu-north1 -%test.quarkus.google.cloud.logging.resource.label.namespace=test-nodes -%test.quarkus.google.cloud.logging.resource.label.node_id=192.168.0.2 -%test.quarkus.google.cloud.logging.structured.stack-trace.included=true -%test.quarkus.google.cloud.logging.gcp-tracing.enabled=false -%test.quarkus.google.cloud.logging.format=json +%dev.quarkus.google.cloud.logging.enabled=false +quarkus.google.cloud.logging.default-log=test +quarkus.google.cloud.logging.default-label.app=test +quarkus.google.cloud.logging.resource.type=generic_node +quarkus.google.cloud.logging.resource.label.location=eu-north1 +quarkus.google.cloud.logging.resource.label.namespace=test-nodes +quarkus.google.cloud.logging.resource.label.node_id=192.168.0.2 +quarkus.google.cloud.logging.structured.stack-trace.included=true +quarkus.google.cloud.logging.gcp-tracing.enabled=false +quarkus.google.cloud.logging.format=json