This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new 3c58037 CAMEL-16400: split unit and integration tests for camel-fhir (#5338) 3c58037 is described below commit 3c5803743ab13d0a368f487ebcf93430a37a013f Author: Otavio Rodolfo Piske <orpi...@users.noreply.github.com> AuthorDate: Mon Apr 12 18:25:42 2021 +0200 CAMEL-16400: split unit and integration tests for camel-fhir (#5338) --- components/camel-fhir/camel-fhir-component/pom.xml | 64 ++-------------------- ...nTest.java => Hl7v2PatientToFhirPatientIT.java} | 2 +- 2 files changed, 5 insertions(+), 61 deletions(-) diff --git a/components/camel-fhir/camel-fhir-component/pom.xml b/components/camel-fhir/camel-fhir-component/pom.xml index 1fa0264..2479e1f 100644 --- a/components/camel-fhir/camel-fhir-component/pom.xml +++ b/components/camel-fhir/camel-fhir-component/pom.xml @@ -320,6 +320,10 @@ </execution> </executions> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-failsafe-plugin</artifactId> + </plugin> </plugins> <pluginManagement> <plugins> @@ -337,64 +341,4 @@ </plugins> </pluginManagement> </build> - - <profiles> - <!-- activate test if the docker socket file is accessible --> - <profile> - <id>fhir-tests-docker-file</id> - <activation> - <file> - <exists>/var/run/docker.sock</exists> - </file> - </activation> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-failsafe-plugin</artifactId> - <configuration> - <skipTests>${skipTests}</skipTests> - </configuration> - <executions> - <execution> - <goals> - <goal>integration-test</goal> - <goal>verify</goal> - </goals> - </execution> - </executions> - </plugin> - </plugins> - </build> - </profile> - - <!-- activate test if the DOCKER_HOST env var is set --> - <profile> - <id>fhir-tests-docker-env</id> - <activation> - <property> - <name>env.DOCKER_HOST</name> - </property> - </activation> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-failsafe-plugin</artifactId> - <configuration> - <skipTests>${skipTests}</skipTests> - </configuration> - <executions> - <execution> - <goals> - <goal>integration-test</goal> - <goal>verify</goal> - </goals> - </execution> - </executions> - </plugin> - </plugins> - </build> - </profile> - </profiles> </project> diff --git a/components/camel-fhir/camel-fhir-component/src/test/java/org/apache/camel/component/fhir/Hl7v2PatientToFhirPatientIntegrationTest.java b/components/camel-fhir/camel-fhir-component/src/test/java/org/apache/camel/component/fhir/Hl7v2PatientToFhirPatientIT.java similarity index 98% rename from components/camel-fhir/camel-fhir-component/src/test/java/org/apache/camel/component/fhir/Hl7v2PatientToFhirPatientIntegrationTest.java rename to components/camel-fhir/camel-fhir-component/src/test/java/org/apache/camel/component/fhir/Hl7v2PatientToFhirPatientIT.java index 61b825f..9b82a65 100644 --- a/components/camel-fhir/camel-fhir-component/src/test/java/org/apache/camel/component/fhir/Hl7v2PatientToFhirPatientIntegrationTest.java +++ b/components/camel-fhir/camel-fhir-component/src/test/java/org/apache/camel/component/fhir/Hl7v2PatientToFhirPatientIT.java @@ -32,7 +32,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue; /** * This test demonstrates how to convert a HL7V2 patient to a FHIR dtsu3 Patient and then insert it into a FHIR server. */ -public class Hl7v2PatientToFhirPatientIntegrationTest extends AbstractFhirTestSupport { +public class Hl7v2PatientToFhirPatientIT extends AbstractFhirTestSupport { /* Segment Purpose FHIR Resource