Skip to content

Commit

Permalink
fixing test
Browse files Browse the repository at this point in the history
Signed-off-by: Jaydip Gabani <[email protected]>
  • Loading branch information
JaydipGabani committed Dec 4, 2024
1 parent cafbb06 commit c7043a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/bats/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ teardown_file() {
}

@test "vap test" {
if [ -z $ENABLE_VAP_TESTS ]; then
skip "skipping vap tests"
fi
local api="$(kubectl api-resources | grep validatingadmission)"
if [[ -z "$api" ]]; then
echo "vap is not enabled for the cluster. skip vap test"
Expand Down

0 comments on commit c7043a6

Please sign in to comment.