This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 9e62edc298921bb24cffad4c54297ab23506388d Author: Lucia Drozdova <ldro...@redhat.com> AuthorDate: Fri Sep 22 14:55:50 2023 +0200 Implement comments from review --- integration-tests-jvm/azure-servicebus/pom.xml | 39 +++++++++++++++++++++- .../azure/servicebus/it/AzureServiceBusTest.java | 4 --- 2 files changed, 38 insertions(+), 5 deletions(-) diff --git a/integration-tests-jvm/azure-servicebus/pom.xml b/integration-tests-jvm/azure-servicebus/pom.xml index 25bb7a6fd6..2a189f9528 100644 --- a/integration-tests-jvm/azure-servicebus/pom.xml +++ b/integration-tests-jvm/azure-servicebus/pom.xml @@ -105,7 +105,33 @@ <!-- The following dependencies guarantee that this module is built after them. You can update them by running `mvn process-resources -Pformat -N` from the source tree root directory --> <dependency> <groupId>org.apache.camel.quarkus</groupId> - <artifactId>camel-quarkus-azure-servicebus-deployment</artifactId> + <artifactId>camel-quarkus-azure-eventhubs-deployment</artifactId> + <version>${project.version}</version> + <type>pom</type> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>*</groupId> + <artifactId>*</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-direct-deployment</artifactId> + <version>${project.version}</version> + <type>pom</type> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>*</groupId> + <artifactId>*</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-mock-deployment</artifactId> <version>${project.version}</version> <type>pom</type> <scope>test</scope> @@ -118,5 +144,16 @@ </dependency> </dependencies> </profile> + <profile> + <id>skip-testcontainers-tests</id> + <activation> + <property> + <name>skip-testcontainers-tests</name> + </property> + </activation> + <properties> + <skipTests>true</skipTests> + </properties> + </profile> </profiles> </project> diff --git a/integration-tests-jvm/azure-servicebus/src/test/java/org/apache/camel/quarkus/component/azure/servicebus/it/AzureServiceBusTest.java b/integration-tests-jvm/azure-servicebus/src/test/java/org/apache/camel/quarkus/component/azure/servicebus/it/AzureServiceBusTest.java index 889738f9b9..17db6c9cea 100644 --- a/integration-tests-jvm/azure-servicebus/src/test/java/org/apache/camel/quarkus/component/azure/servicebus/it/AzureServiceBusTest.java +++ b/integration-tests-jvm/azure-servicebus/src/test/java/org/apache/camel/quarkus/component/azure/servicebus/it/AzureServiceBusTest.java @@ -39,10 +39,7 @@ class AzureServiceBusTest { .then().statusCode(200).extract().body().as(List.class); Assertions.assertEquals(inputBatch, sentMessages); - } - @Test - public void basicConsumerTest() { final List consumedMessages = RestAssured.given() .contentType(ContentType.JSON) .get("/azure-servicebus/consumer") @@ -52,5 +49,4 @@ class AzureServiceBusTest { Assertions.assertFalse(consumedMessages.isEmpty()); Assertions.assertTrue(consumedMessages.stream().anyMatch(inputBatch::contains)); } - }