Skip to content

Commit

Permalink
fixing vapb exists check
Browse files Browse the repository at this point in the history
Signed-off-by: Jaydip Gabani <[email protected]>
  • Loading branch information
JaydipGabani committed Dec 28, 2024
1 parent e30845d commit 7dd57a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/bats/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ setup() {
local name=$(yq e .metadata.name "$sample"/constraint.yaml)
wait_for_process ${WAIT_TIME} ${SLEEP_TIME} "constraint_enforced $kind $name"

if [ vapb_exists == true ]; then
if [ $vapb_exists ]; then
wait_for_process ${WAIT_TIME} ${SLEEP_TIME} "kubectl get ValidatingAdmissionPolicyBinding gatekeeper-$name"
deny_substr="ValidatingAdmissionPolicy"
fi
Expand Down

0 comments on commit 7dd57a7

Please sign in to comment.