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

pull/10903/head
Paul Banks 3 years ago
parent e01c3585a5
commit 2b755d7b3f

@ -1,3 +1,7 @@
#!/bin/bash #!/bin/bash
export REQUIRED_SERVICES="$DEFAULT_REQUIRED_SERVICES ingress-gateway-primary test-sds-server" 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

@ -287,6 +287,7 @@ function run_tests {
CASE_DIR="${CASE_DIR?CASE_DIR must be set to the path of the test case}" CASE_DIR="${CASE_DIR?CASE_DIR must be set to the path of the test case}"
CASE_NAME=$( basename $CASE_DIR | cut -c6- ) CASE_NAME=$( basename $CASE_DIR | cut -c6- )
export CASE_NAME export CASE_NAME
export SKIP_CASE=""
init_vars init_vars
@ -300,6 +301,12 @@ function run_tests {
global_setup 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 state
wipe_volumes wipe_volumes

Loading…
Cancel
Save