Skip to content

Commit a49f951

Browse files
committed
[OPENJDK-2068] Test for MAVEN_REPO_URL
Cherry-pick from OPENJDK-1961 Signed-off-by: Jonathan Dowland <[email protected]>
1 parent 375df40 commit a49f951

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
@@ -293,3 +293,15 @@ Feature: Openshift OpenJDK S2I tests
293293
Given s2i build https://github.com/jboss-openshift/openshift-examples from spring-boot-sample-simple/target
294294
Then s2i build log should not contain skipping directory .
295295
And run find /deployments in container and check its output for spring-boot-sample-simple-1.5.0.BUILD-SNAPSHOT.jar
296+
297+
# OPENJDK-2068: MAVEN_REPO_URL and MAVEN_REPO_ID
298+
Scenario: Check MAVEN_REPO_URL generates Maven settings and profile configuration
299+
Given s2i build https://github.com/jboss-openshift/openshift-examples from spring-boot-sample-simple/target
300+
| variable | value |
301+
| MAVEN_REPO_URL | http://repo.example.com:8080/maven2/ |
302+
| MAVEN_REPO_ID | myrepo |
303+
And XML namespaces
304+
| prefix | url |
305+
| ns | http://maven.apache.org/SETTINGS/1.0.0 |
306+
Then XML file /tmp/artifacts/configuration/settings.xml should have 1 elements on XPath //ns:server[ns:id='myrepo']
307+
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)