Skip to content

Commit

Permalink
Ensure custom s2i script is run in test
Browse files Browse the repository at this point in the history
This test is designed to run a custom s2i/assemble script provided by
the application source. That script prints the string "appsrc-provided
s2i assemble script executed" during execution. Expand the test to check
for this string to ensure the script has been executed.

Signed-off-by: Jonathan Dowland <[email protected]>
  • Loading branch information
jmtd committed Nov 21, 2024
1 parent d1fab0e commit 6a5b5f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/s2i/core/tests/features/s2i-core.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ Feature: Openshift S2I tests
| variable | value |
| S2I_TARGET_DEPLOYMENTS_DIR | /var/tmp |
Then s2i build log should not contain rsync: [generator] failed to set permissions on "/var/tmp/.": Operation not permitted
And s2i build log should contain appsrc-provided s2i assemble script executed
And run stat /var/tmp/spring-boot-sample-simple-1.5.0.BUILD-SNAPSHOT.jar in container and check its output for Access:

0 comments on commit 6a5b5f0

Please sign in to comment.