From 6e1a9e7f9af7fd49d5348eaebece891f04624dcf Mon Sep 17 00:00:00 2001 From: Johannes Bornhold Date: Thu, 12 Sep 2024 11:12:48 +0200 Subject: [PATCH] fix(ci): Correct the way how credentials for the RUN_TESTS job are extracted --- .gitlab-ci.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b21a4376..68b04e28 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -461,15 +461,11 @@ env-stop: .ums-default-password: &ums-default-password - | - UMS_PASSWORDS=$( \ - kubectl -n ${NAMESPACE} get cm ums-stack-data-swp-data -o jsonpath='{.data.dev-test-users\.yaml}' \ - | yq '.properties.password' > passwords.txt \ - ) DEFAULT_USER_PASSWORD=$( \ - awk 'NR==1{print $1}' passwords.txt \ + kubectl -n ${NAMESPACE} get secret ums-nubus-credentials -o jsonpath='{.data.user_password}' | base64 -d \ ) DEFAULT_ADMIN_PASSWORD=$( - awk 'NR==3{print $1}' passwords.txt \ + kubectl -n ${NAMESPACE} get secret ums-nubus-credentials -o jsonpath='{.data.administrator_password}' | base64 -d \ ) run-tests: