diff --git a/test/bats/vault.bats b/test/bats/vault.bats index c86bf24ae..d960fafce 100644 --- a/test/bats/vault.bats +++ b/test/bats/vault.bats @@ -337,10 +337,10 @@ EOF password=$(kubectl exec secrets-store-inline-basicauth-sync-rotate -- cat /mnt/secrets-store/db-basicauth-password ) [[ "$password" == "db-secret-password" ]] - username=$(oc get secrets/basicauthsecret -o=jsonpath="{.data.username}" | base64 -d) + username=$(kubectl get secrets/basicauthsecret -o=jsonpath="{.data.username}" | base64 -d) [[ "$username" == "db-secret-username" ]] - password=$(oc get secrets/basicauthsecret -o=jsonpath="{.data.password}" | base64 -d) + password=$(kubectl get secrets/basicauthsecret -o=jsonpath="{.data.password}" | base64 -d) [[ "$password" == "db-secret-password" ]] result=$(kubectl exec secrets-store-inline-basicauth-sync-rotate -- printenv | grep SECRET_BASICAUTH | awk -F"=" '{ print $2 }' | tr -d '\r\n') @@ -418,8 +418,6 @@ EOF } @test "Sync with dockerconfigjson K8s secrets - read vault secret from pod and dockerconfigjson secret" { - dockerexpectedvalue="{\"auths\": {\"https://index.docker.io/v1/\": {\"username\": \"tiger\",\"password\": \"pass1234\",\"email\": \"dummy-user@redhat.com\",\"auth\": \"dGlnZXI6cGFzczEyMzQ=\"}}}" - dockeroutputvalue=$(kubectl exec secrets-store-inline-dockerconfigjson-sync-rotate -- cat /mnt/secrets-store/dockerconfigjson) [[ "$dockeroutputvalue" == "$dockerexpectedvalue" ]]