From 21b82c6455751502d20d56686d9dda3902daa22f Mon Sep 17 00:00:00 2001 From: Jaydip Gabani Date: Sat, 28 Dec 2024 03:09:07 +0000 Subject: [PATCH] fixing vap test 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 e96ef8b4c..39c530384 100755 --- a/test/bats/test.bats +++ b/test/bats/test.bats @@ -103,7 +103,7 @@ setup() { wait_for_process ${WAIT_TIME} ${SLEEP_TIME} "constraint_enforced $kind $name" if [ vapb_exists == true ]; then - wait_for_process ${WAIT_TIME} ${SLEEP_TIME} "kubectl get ValidatingAdmissionPolicyBinding gatekeeper-$name" + wait_for_process ${WAIT_TIME} ${SLEEP_TIME} "kubectl get ValidatingAdmissionPolicyBinding gatekeeper-$kind" deny_substr="ValidatingAdmissionPolicy" fi