From 6a5b5f0f0a001bd24b697768df9d0006f9df38ab Mon Sep 17 00:00:00 2001 From: Jonathan Dowland Date: Thu, 21 Nov 2024 15:43:41 +0000 Subject: [PATCH] Ensure custom s2i script is run in test 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 --- modules/s2i/core/tests/features/s2i-core.feature | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/s2i/core/tests/features/s2i-core.feature b/modules/s2i/core/tests/features/s2i-core.feature index c5c81b01..a5332046 100644 --- a/modules/s2i/core/tests/features/s2i-core.feature +++ b/modules/s2i/core/tests/features/s2i-core.feature @@ -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: