Skip to content

Commit

Permalink
changecondition
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit010pa committed May 29, 2024
1 parent b7e95d3 commit a180d1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/bats/vault.bats
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,8 @@ EOF
dockeroutputvalue=$(kubectl get secrets/dockerconfigjsonsecret -o=jsonpath="{.data.\.dockerconfigjson}" | base64 -d)
[[ "$dockeroutputvalue" == "$dockerexpectedvalue" ]]

result=$(kubectl exec secrets-store-inline-dockerconfigjson-sync-rotate -- printenv | grep SECRET_DOCKERCONFIGJSON | awk -F"=" '{ print $2 }')
[[ "$result" == "$dockerexpectedvalue" ]]
result=$(kubectl exec secrets-store-inline-dockerconfigjson-sync-rotate -- printenv | grep SECRET_DOCKERCONFIGJSON | awk -F"=" '{ print $2 }' | grep "username" )
[[ "$result" != "" ]]

result=$(kubectl get secret dockerconfigjsonsecret -o jsonpath="{.metadata.labels.environment}")
[[ "${result//$'\r'}" == "${LABEL_VALUE}" ]]
Expand Down

0 comments on commit a180d1c

Please sign in to comment.