Skip to content

Commit

Permalink
Disable Istio ITs when not run in a Kubernetes context
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Dec 13, 2022
1 parent 664b50a commit 1385704
Showing 1 changed file with 16 additions and 35 deletions.
51 changes: 16 additions & 35 deletions integration-tests/istio/maven-invoker-way/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
<name>Quarkus - Integration Tests - Istio - Invoker</name>
<description>Istio integration tests that need to use the maven invoker because they test various dependency related scenarios</description>

<properties>
<invoker.skip>${skipTests}</invoker.skip>
</properties>

<dependencies>
<!-- made test scope only to force Maven to build these dependencies before running the tests-->
<dependency>
Expand Down Expand Up @@ -209,7 +213,6 @@
<cloneClean>true</cloneClean>
<postBuildHookScript>verify</postBuildHookScript>
<addTestClassPath>true</addTestClassPath>
<skipInvocation>${skipTests}</skipInvocation>
<streamLogs>true</streamLogs>
<invokerPropertiesFile>invoker.properties</invokerPropertiesFile>
</configuration>
Expand All @@ -230,55 +233,27 @@

<profiles>
<profile>
<id>basic-test-suite</id>
<id>disable-tests</id>
<activation>
<property>
<name>basicTests</name>
<name>!e2e-tests</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<configuration>
<skipInvocation>true</skipInvocation>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<maven.test.skip>true</maven.test.skip>
<invoker.skip>true</invoker.skip>
</properties>
</profile>
<profile>
<id>offline-tests</id>
<activation>
<property>
<name>!e2e-tests</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-invoker-plugin</artifactId>
<configuration>
<filterProperties>
<kubernetes-client-master-url>-Dquarkus.kubernetes-client.master-url=http://localhost:12345</kubernetes-client-master-url>
<build-result>failure</build-result>
</filterProperties>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>kubernetes-e2e-tests</id>
<activation>
<property>
<name>kubernetes-e2e-tests</name>
</property>
</activation>
<properties>
<maven.test.skip>true</maven.test.skip>
</properties>
<build>
<plugins>
<plugin>
Expand All @@ -305,6 +280,9 @@
<name>openshift-e2e-tests</name>
</property>
</activation>
<properties>
<maven.test.skip>true</maven.test.skip>
</properties>
<build>
<plugins>
<plugin>
Expand All @@ -331,6 +309,9 @@
<name>knative-e2e-tests</name>
</property>
</activation>
<properties>
<maven.test.skip>true</maven.test.skip>
</properties>
<build>
<plugins>
<plugin>
Expand Down

0 comments on commit 1385704

Please sign in to comment.