From 1976c51fb926eb6c1c901dda2a94d2c367049f4e Mon Sep 17 00:00:00 2001 From: Ladislav Thon Date: Thu, 10 Jun 2021 14:13:37 +0200 Subject: [PATCH] Disable Dev Services for Kafka in tests that use QuarkusTestResourceLifecycleManager --- .../src/main/resources/application.properties | 1 + .../kafka-avro/src/main/resources/application.properties | 5 ++++- .../kafka-sasl/src/main/resources/application.properties | 3 +++ .../kafka-snappy/src/main/resources/application.properties | 3 +++ .../kafka-ssl/src/main/resources/application.properties | 4 +++- .../kafka-streams/src/main/resources/application.properties | 3 +++ .../kafka/src/main/resources/application.properties | 3 +++ 7 files changed, 20 insertions(+), 2 deletions(-) diff --git a/integration-tests/kafka-avro-apicurio2/src/main/resources/application.properties b/integration-tests/kafka-avro-apicurio2/src/main/resources/application.properties index e63c0657ab0f4d..eda85eda32cf3d 100644 --- a/integration-tests/kafka-avro-apicurio2/src/main/resources/application.properties +++ b/integration-tests/kafka-avro-apicurio2/src/main/resources/application.properties @@ -7,4 +7,5 @@ quarkus.kafka.health.enabled=true # using QuarkusTestResourceLifecycleManager in this test # Dev Services are tested by the means of kafka-avro-schema-quickstart +quarkus.kafka.devservices.enabled=false quarkus.apicurio-registry.devservices.enabled=false diff --git a/integration-tests/kafka-avro/src/main/resources/application.properties b/integration-tests/kafka-avro/src/main/resources/application.properties index e22c540faa69dc..c0f22a629a9992 100644 --- a/integration-tests/kafka-avro/src/main/resources/application.properties +++ b/integration-tests/kafka-avro/src/main/resources/application.properties @@ -3,4 +3,7 @@ quarkus.log.category.\"org.apache.kafka\".level=WARN quarkus.log.category.\"org.apache.zookeeper\".level=WARN # enable health check -quarkus.kafka.health.enabled=true \ No newline at end of file +quarkus.kafka.health.enabled=true + +# using QuarkusTestResourceLifecycleManager in this test +quarkus.kafka.devservices.enabled=false diff --git a/integration-tests/kafka-sasl/src/main/resources/application.properties b/integration-tests/kafka-sasl/src/main/resources/application.properties index d4907bbe9f11b9..c0f22a629a9992 100644 --- a/integration-tests/kafka-sasl/src/main/resources/application.properties +++ b/integration-tests/kafka-sasl/src/main/resources/application.properties @@ -4,3 +4,6 @@ quarkus.log.category.\"org.apache.zookeeper\".level=WARN # enable health check quarkus.kafka.health.enabled=true + +# using QuarkusTestResourceLifecycleManager in this test +quarkus.kafka.devservices.enabled=false diff --git a/integration-tests/kafka-snappy/src/main/resources/application.properties b/integration-tests/kafka-snappy/src/main/resources/application.properties index a1d72fa75140a9..57eb449e82e1b9 100644 --- a/integration-tests/kafka-snappy/src/main/resources/application.properties +++ b/integration-tests/kafka-snappy/src/main/resources/application.properties @@ -6,3 +6,6 @@ quarkus.kafka.health.enabled=true # Enable snappy: quarkus.kafka.snappy.enabled=true + +# using QuarkusTestResourceLifecycleManager in this test +quarkus.kafka.devservices.enabled=false diff --git a/integration-tests/kafka-ssl/src/main/resources/application.properties b/integration-tests/kafka-ssl/src/main/resources/application.properties index 84ce3c79e651de..1548be15b8b161 100644 --- a/integration-tests/kafka-ssl/src/main/resources/application.properties +++ b/integration-tests/kafka-ssl/src/main/resources/application.properties @@ -5,5 +5,7 @@ quarkus.log.category.\"org.apache.zookeeper\".level=WARN # enable health check quarkus.kafka.health.enabled=true +quarkus.native.enable-all-security-services=true -quarkus.native.enable-all-security-services=true \ No newline at end of file +# using QuarkusTestResourceLifecycleManager in this test +quarkus.kafka.devservices.enabled=false diff --git a/integration-tests/kafka-streams/src/main/resources/application.properties b/integration-tests/kafka-streams/src/main/resources/application.properties index 0effdb41fcd566..b92d104610f071 100644 --- a/integration-tests/kafka-streams/src/main/resources/application.properties +++ b/integration-tests/kafka-streams/src/main/resources/application.properties @@ -26,3 +26,6 @@ kafka.auto.offset.reset=earliest # Set explicitly as for tests the quarkus.application.name does not default to the name of the project %test.quarkus.application.name=streams-test-pipeline kafka-streams.some-property=dummy + +# using QuarkusTestResourceLifecycleManager in this test +quarkus.kafka.devservices.enabled=false diff --git a/integration-tests/kafka/src/main/resources/application.properties b/integration-tests/kafka/src/main/resources/application.properties index d4907bbe9f11b9..c0f22a629a9992 100644 --- a/integration-tests/kafka/src/main/resources/application.properties +++ b/integration-tests/kafka/src/main/resources/application.properties @@ -4,3 +4,6 @@ quarkus.log.category.\"org.apache.zookeeper\".level=WARN # enable health check quarkus.kafka.health.enabled=true + +# using QuarkusTestResourceLifecycleManager in this test +quarkus.kafka.devservices.enabled=false