Skip to content

Commit

Permalink
ci: enable snapshots on E2E specific tests
Browse files Browse the repository at this point in the history
  • Loading branch information
manusa committed Apr 12, 2024
1 parent 0299873 commit 487b92f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e-chaos-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ jobs:
env:
CHAOS_TEST: ${{ matrix.chaos-test }}
run: |
./mvnw ${MAVEN_ARGS} -Pitests -P"httpclient-${{ matrix.http-client }}" verify -pl chaos-tests
./mvnw ${MAVEN_ARGS} -Pitests -P"enable-snapshots" -P"httpclient-${{ matrix.http-client }}" verify -pl chaos-tests
4 changes: 2 additions & 2 deletions .github/workflows/e2e-httpclient-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
distribution: 'temurin'
- name: Run Integration Tests
run: |
./mvnw ${MAVEN_ARGS} -P"httpclient-${{ matrix.httpclient }}" -Pitests -pl $IT_MODULE test -Dtest="io.fabric8.kubernetes.**"
./mvnw ${MAVEN_ARGS} -P"enable-snapshots" -P"httpclient-${{ matrix.httpclient }}" -Pitests -pl $IT_MODULE test -Dtest="io.fabric8.kubernetes.**"
openshift:
name: OpenShift
Expand All @@ -83,4 +83,4 @@ jobs:
distribution: 'temurin'
- name: Run Integration Tests
run: |
./mvnw ${MAVEN_ARGS} -P"httpclient-${{ matrix.httpclient }}" -Pitests -pl $IT_MODULE verify
./mvnw ${MAVEN_ARGS} -P"enable-snapshots" -P"httpclient-${{ matrix.httpclient }}" -Pitests -pl $IT_MODULE verify
2 changes: 1 addition & 1 deletion .github/workflows/e2e-osci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ jobs:
oc login --server=${{ secrets.OSCI_SERVER }} --token=${{ secrets.OSCI_TOKEN }}
- name: Run Integration Tests
run: |
./mvnw ${MAVEN_ARGS} -Pitests -pl $IT_MODULE -Dgroups=$FAILSAFE_TEST_GROUPS verify
./mvnw ${MAVEN_ARGS} -P"enable-snapshots" -Pitests -pl $IT_MODULE -Dgroups=$FAILSAFE_TEST_GROUPS verify
35 changes: 11 additions & 24 deletions kubernetes-itests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@
</dependencies>

<profiles>
<profile>
<id>enable-snapshots</id>
<repositories>
<repository>
<id>sonatype-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
</profile>
<profile>
<id>httpclient-jdk</id>
<dependencies>
Expand All @@ -90,14 +101,6 @@
<artifactId>kubernetes-httpclient-jdk</artifactId>
</dependency>
</dependencies>
<repositories>
<repository>
<id>sonatype-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
</profile>
<profile>
<id>httpclient-jetty</id>
Expand All @@ -118,14 +121,6 @@
<artifactId>kubernetes-httpclient-jetty</artifactId>
</dependency>
</dependencies>
<repositories>
<repository>
<id>sonatype-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
</profile>
<profile>
<id>httpclient-vertx</id>
Expand All @@ -146,14 +141,6 @@
<artifactId>kubernetes-httpclient-vertx</artifactId>
</dependency>
</dependencies>
<repositories>
<repository>
<id>sonatype-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
</profile>
</profiles>
</project>

0 comments on commit 487b92f

Please sign in to comment.