From 04f93d0e031a2561f57b69de56f6cd31511d4f42 Mon Sep 17 00:00:00 2001 From: Jonathan Dowland Date: Thu, 2 May 2024 12:09:12 +0100 Subject: [PATCH] [OPENJDK-3009] Behave test for masking passwords in logs Signed-off-by: Jonathan Dowland --- modules/run/tests/features/run.feature | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 modules/run/tests/features/run.feature diff --git a/modules/run/tests/features/run.feature b/modules/run/tests/features/run.feature new file mode 100644 index 00000000..6416f7a3 --- /dev/null +++ b/modules/run/tests/features/run.feature @@ -0,0 +1,8 @@ +@ubi8 +Feature: OpenJDK run script tests + Scenario: OPENJDK-3009: Ensure command-line options containing 'password' are masked in logs + Given container is started with env + | variable | value | + | JAVA_OPTS_APPEND | -Djavax.net.ssl.trustStorePassword=sensitiveString | + Then container log should not contain sensitiveString +