Skip to content

Commit 10cd5e0

Browse files
committed
[OPENJDK-3975] tests for custom configuration and data
Signed-off-by: Jonathan Dowland <[email protected]>
1 parent 50cd494 commit 10cd5e0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

modules/s2i/core/tests/features/s2i-core.feature

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,21 @@ Feature: Openshift S2I tests
1818
Then s2i build log should not contain rsync: [generator] failed to set permissions on "/var/tmp/.": Operation not permitted
1919
And s2i build log should contain appsrc-provided s2i assemble script executed
2020
And run stat /var/tmp/spring-boot-sample-simple-1.5.0.BUILD-SNAPSHOT.jar in container and check its output for Access:
21+
22+
# as above, for OPENJDK-3975: handling configuration
23+
Scenario: Ensure copying custom configuration doesn't fail trying to chmod destination directory (OPENJDK-3975)
24+
Given s2i build https://github.com/rh-openjdk/openjdk-container-test-applications.git from OPENJDK-2408-bin-custom-s2i-assemble with env
25+
| variable | value |
26+
| S2I_TARGET_CONFIGURATION_DIR | /var/tmp |
27+
Then s2i build log should not contain rsync: [generator] failed to set permissions on "/var/tmp/.": Operation not permitted
28+
And s2i build log should contain appsrc-provided s2i assemble script executed
29+
And run stat /var/tmp/example.ini in container and check its output for Access:
30+
31+
# as above, for OPENJDK-3975: handling data
32+
Scenario: Ensure copying custom data doesn't fail trying to chmod destination directory (OPENJDK-3975)
33+
Given s2i build https://github.com/rh-openjdk/openjdk-container-test-applications.git from OPENJDK-2408-bin-custom-s2i-assemble with env
34+
| variable | value |
35+
| S2I_TARGET_DATA_DIR | /var/tmp |
36+
Then s2i build log should not contain rsync: [generator] failed to set permissions on "/var/tmp/.": Operation not permitted
37+
And s2i build log should contain appsrc-provided s2i assemble script executed
38+
And run stat /var/tmp/sample.txt in container and check its output for Access:

0 commit comments

Comments
 (0)