-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a96289d
commit b7e95d3
Showing
1 changed file
with
2 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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\": \"[email protected]\",\"auth\": \"dGlnZXI6cGFzczEyMzQ=\"}}}" | ||
|
||
dockeroutputvalue=$(kubectl exec secrets-store-inline-dockerconfigjson-sync-rotate -- cat /mnt/secrets-store/dockerconfigjson) | ||
[[ "$dockeroutputvalue" == "$dockerexpectedvalue" ]] | ||
|
||
|