Allow skipping v2 compat tests for SDS as it's only the SDS server integration that doesn't support v2

This commit is contained in:
Paul Banks 2021-08-27 23:23:34 +01:00
parent cd6491ea71
commit 3b2a4fc458
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,7 @@
#!/bin/bash
export REQUIRED_SERVICES="$DEFAULT_REQUIRED_SERVICES ingress-gateway-primary test-sds-server"
if is_set $TEST_V2_XDS; then
export SKIP_CASE="test SDS server doesn't support V2"
fi

View File

@ -287,6 +287,7 @@ function run_tests {
CASE_DIR="${CASE_DIR?CASE_DIR must be set to the path of the test case}"
CASE_NAME=$( basename $CASE_DIR | cut -c6- )
export CASE_NAME
export SKIP_CASE=""
init_vars
@ -300,6 +301,12 @@ function run_tests {
global_setup
# Allow vars.sh to set a reason to skip this test case based on the ENV
if [ "$SKIP_CASE" != "" ] ; then
echoyellow "SKIPPING CASE: $SKIP_CASE"
return 0
fi
# Wipe state
wipe_volumes