diff --git a/integration-tests/kafka/pom.xml b/integration-tests/kafka/pom.xml new file mode 100644 index 00000000000000..31727c23c26eb1 --- /dev/null +++ b/integration-tests/kafka/pom.xml @@ -0,0 +1,168 @@ + + + + + + quarkus-integration-tests-parent + io.quarkus + 999-SNAPSHOT + ../ + + 4.0.0 + + quarkus-integration-test-kafka + Quarkus - Integration Tests - Kafka + The Kafka integration tests module + + + true + + + + + io.quarkus + quarkus-integration-test-class-transformer + + + io.quarkus + quarkus-integration-test-shared-library + + + + + io.quarkus + quarkus-resteasy + + + + + io.quarkus + quarkus-kafka-client + + + + + + io.quarkus + quarkus-junit5 + test + + + io.rest-assured + rest-assured + test + + + io.debezium + debezium-core + test + + + io.debezium + debezium-core + test-jar + test + + + org.apache.kafka + kafka_2.12 + test + + + + + + + src/main/resources + true + + + + + ${project.groupId} + quarkus-maven-plugin + + + + build + + + true + + + + + + + + + + native-image-it-main + + + native + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + + integration-test + verify + + + + ${project.build.directory}/${project.build.finalName}-runner + + + + + + + ${project.groupId} + quarkus-maven-plugin + + + native-image + + native-image + + + true + true + true + + ${graalvmHome} + + + + + + + + + + diff --git a/integration-tests/main/src/main/java/io/quarkus/it/kafka/KafkaConsumerManager.java b/integration-tests/kafka/src/main/java/io/quarkus/it/kafka/KafkaConsumerManager.java similarity index 100% rename from integration-tests/main/src/main/java/io/quarkus/it/kafka/KafkaConsumerManager.java rename to integration-tests/kafka/src/main/java/io/quarkus/it/kafka/KafkaConsumerManager.java diff --git a/integration-tests/main/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java b/integration-tests/kafka/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java similarity index 100% rename from integration-tests/main/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java rename to integration-tests/kafka/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java diff --git a/integration-tests/main/src/main/java/io/quarkus/it/kafka/KafkaProducerManager.java b/integration-tests/kafka/src/main/java/io/quarkus/it/kafka/KafkaProducerManager.java similarity index 100% rename from integration-tests/main/src/main/java/io/quarkus/it/kafka/KafkaProducerManager.java rename to integration-tests/kafka/src/main/java/io/quarkus/it/kafka/KafkaProducerManager.java diff --git a/integration-tests/kafka/src/main/resources/application.properties b/integration-tests/kafka/src/main/resources/application.properties new file mode 100644 index 00000000000000..370acf2ffc6c65 --- /dev/null +++ b/integration-tests/kafka/src/main/resources/application.properties @@ -0,0 +1,19 @@ +# +# Copyright 2019 Red Hat, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +quarkus.log.category.kafka.level=WARN +quarkus.log.category.\"org.apache.kafka\".level=WARN +quarkus.log.category.\"org.apache.zookeeper\".level=WARN diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/KafkaConsumerITCase.java b/integration-tests/kafka/src/test/java/io/quarkus/it/main/KafkaConsumerITCase.java similarity index 100% rename from integration-tests/main/src/test/java/io/quarkus/it/main/KafkaConsumerITCase.java rename to integration-tests/kafka/src/test/java/io/quarkus/it/main/KafkaConsumerITCase.java diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/KafkaConsumerTest.java b/integration-tests/kafka/src/test/java/io/quarkus/it/main/KafkaConsumerTest.java similarity index 100% rename from integration-tests/main/src/test/java/io/quarkus/it/main/KafkaConsumerTest.java rename to integration-tests/kafka/src/test/java/io/quarkus/it/main/KafkaConsumerTest.java diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/KafkaProducerITCase.java b/integration-tests/kafka/src/test/java/io/quarkus/it/main/KafkaProducerITCase.java similarity index 100% rename from integration-tests/main/src/test/java/io/quarkus/it/main/KafkaProducerITCase.java rename to integration-tests/kafka/src/test/java/io/quarkus/it/main/KafkaProducerITCase.java diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/KafkaProducerTest.java b/integration-tests/kafka/src/test/java/io/quarkus/it/main/KafkaProducerTest.java similarity index 100% rename from integration-tests/main/src/test/java/io/quarkus/it/main/KafkaProducerTest.java rename to integration-tests/kafka/src/test/java/io/quarkus/it/main/KafkaProducerTest.java diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/KafkaTestResource.java b/integration-tests/kafka/src/test/java/io/quarkus/it/main/KafkaTestResource.java similarity index 100% rename from integration-tests/main/src/test/java/io/quarkus/it/main/KafkaTestResource.java rename to integration-tests/kafka/src/test/java/io/quarkus/it/main/KafkaTestResource.java diff --git a/integration-tests/main/pom.xml b/integration-tests/main/pom.xml index 6135fae66b16d0..c73c8bf11567a6 100644 --- a/integration-tests/main/pom.xml +++ b/integration-tests/main/pom.xml @@ -136,10 +136,6 @@ quarkus-integration-test-common-jpa-entities ${project.version} - - io.quarkus - quarkus-kafka-client - @@ -163,22 +159,6 @@ rest-assured test - - io.debezium - debezium-core - test - - - io.debezium - debezium-core - test-jar - test - - - org.apache.kafka - kafka_2.12 - test - org.webjars bootstrap diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml index 0f3925ada0d607..74c5bd418a936d 100644 --- a/integration-tests/pom.xml +++ b/integration-tests/pom.xml @@ -42,6 +42,7 @@ common-jpa-entities infinispan-client main + kafka jpa jpa-postgresql jpa-mariadb