From 7dd57a7ef7564c48191c5c12c2adc815c6eef58f Mon Sep 17 00:00:00 2001 From: Jaydip Gabani Date: Sat, 28 Dec 2024 07:04:40 +0000 Subject: [PATCH] fixing vapb exists check Signed-off-by: Jaydip Gabani --- test/bats/test.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/bats/test.bats b/test/bats/test.bats index 9fbc797ef..0118210ff 100755 --- a/test/bats/test.bats +++ b/test/bats/test.bats @@ -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