From 5bea59699aa410c3cd8be5a446fb1637d81faf18 Mon Sep 17 00:00:00 2001 From: Salah Aldeen Al Saleh Date: Mon, 11 Nov 2024 09:39:47 -0800 Subject: [PATCH] fix test --- .github/workflows/build-test.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml index e503abcc1a..010924dad5 100644 --- a/.github/workflows/build-test.yaml +++ b/.github/workflows/build-test.yaml @@ -4191,17 +4191,14 @@ jobs: function validate_configmap_in_archive { local expected_value="$1" if ! grep -q "$expected_value" get-set-config/base/configmap.yaml; then - echo "expected base/configmap.yaml to contain $expected_value" + echo "expected base/configmap.yaml to contain $expected_value:" + cat get-set-config/base/configmap.yaml exit 1 fi } # make latest different from current - ./bin/kots set config "$APP_SLUG" \ - --key=username --value=latest-username \ - --key=password --value=latest-password \ - --key=email --value=latest-email \ - --namespace "$APP_SLUG" + ./bin/kots set config "$APP_SLUG" --key=username --value=latest-username --namespace default # validate the archive for sequence 0 ./bin/kots download --namespace "$APP_SLUG" --slug "$APP_SLUG" --sequence=0 --decrypt-password-values --overwrite @@ -4232,7 +4229,7 @@ jobs: validate_configmap_in_archive "username: 'latest-username'" validate_configmap_in_archive "password: ''" - validate_configmap_in_archive "email: 'latest-email'" + validate_configmap_in_archive "email: ''" validate_configmap_in_archive "sequence: '6'"