Skip to content

Commit 3718748

Browse files
committed
[OPENJDK-1961] Test for MAVEN_REPO_URL
Signed-off-by: Jonathan Dowland <[email protected]>
1 parent f198e83 commit 3718748

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/features/java/java_s2i.feature

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,15 @@ Feature: Openshift OpenJDK S2I tests
137137
Given s2i build https://github.com/jboss-openshift/openshift-examples from spring-boot-sample-simple/target
138138
Then s2i build log should not contain skipping directory .
139139
And run find /deployments in container and check its output for spring-boot-sample-simple-1.5.0.BUILD-SNAPSHOT.jar
140+
141+
# OPENJDK-1961: MAVEN_REPO_URL and MAVEN_REPO_ID
142+
Scenario: Check MAVEN_REPO_URL generates Maven settings and profile configuration
143+
Given s2i build https://github.com/jboss-openshift/openshift-examples from spring-boot-sample-simple/target
144+
| variable | value |
145+
| MAVEN_REPO_URL | http://repo.example.com:8080/maven2/ |
146+
| MAVEN_REPO_ID | myrepo |
147+
And XML namespaces
148+
| prefix | url |
149+
| ns | http://maven.apache.org/SETTINGS/1.0.0 |
150+
Then XML file /tmp/artifacts/configuration/settings.xml should have 1 elements on XPath //ns:server[ns:id='myrepo']
151+
Then XML file /tmp/artifacts/configuration/settings.xml should have 1 elements on XPath //ns:profile[ns:id='myrepo-profile']/ns:repositories/ns:repository[ns:url='http://repo.example.com:8080/maven2/']

0 commit comments

Comments
 (0)