Skip to content

Commit a922813

Browse files
authored
Merge pull request #539 from jmtd/OPENJDK-3597-enforce-profile-active
[OPENJDK-3597] test for MAVEN_SETTINGS_XML
2 parents 5f47967 + 38d9c00 commit a922813

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

modules/maven/s2i/tests/features/java_s2i.feature

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,17 @@ Feature: Openshift OpenJDK S2I tests
175175
| variable | value |
176176
| MAVEN_ARGS | validate |
177177

178+
Scenario: Ensure no custom settings.xml fails for specific application (OPENJDK-3597)
179+
Given failing s2i build https://github.com/rh-openjdk/openjdk-container-test-applications.git from OPENJDK-3597-custom-settings-xml using master
180+
Then s2i build log should contain [ERROR] Profile "testCustomProfile" is not activated
181+
182+
Scenario: Ensure custom settings.xml copied in via MAVEN_SETTINGS_XML (OPENJDK-3597)
183+
Given s2i build https://github.com/rh-openjdk/openjdk-container-test-applications.git from OPENJDK-3597-custom-settings-xml with env
184+
| variable | value |
185+
| MAVEN_ARGS | validate |
186+
| MAVEN_SETTINGS_XML | /tmp/src/settings.xml |
187+
Then s2i build log should contain Rule 0: org.apache.maven.enforcer.rules.RequireActiveProfile passed
188+
178189
Scenario: Ensure that run-env.sh placed in the JAVA_APP_DIR is sourced in the run script before launching java
179190
Given s2i build https://github.com/rh-openjdk/openjdk-container-test-applications.git from quarkus-quickstarts/getting-started-3.0.1.Final-nos2i
180191
| variable | value |

0 commit comments

Comments
 (0)