From 20f639e5139c8898b40cda6370ebb476896f0c43 Mon Sep 17 00:00:00 2001 From: Alex Pana <8968914+acpana@users.noreply.github.com> Date: Tue, 1 Oct 2024 00:22:27 +0000 Subject: [PATCH] refactor:ci: selectively run pause tests Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com> --- scripts/github-actions/ga-pause-test.sh | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/scripts/github-actions/ga-pause-test.sh b/scripts/github-actions/ga-pause-test.sh index 81a85aa8da..236cdd76f5 100755 --- a/scripts/github-actions/ga-pause-test.sh +++ b/scripts/github-actions/ga-pause-test.sh @@ -23,8 +23,21 @@ source ${REPO_ROOT}/scripts/fetch_ext_bins.sh && \ fetch_tools && \ setup_envs +if [[ -z "${RUN_TESTS:-}" ]]; then + RUN_TESTS="" + RUN_TESTS+="TestPauseInSeries/fixtures/iamserviceaccount" # IAM + RUN_TESTS+="|TestPauseInSeries/fixtures/logbucketmetric" # Direct + RUN_TESTS+="|TestPauseInSeries/fixtures/cloudidsendpoint" # DCL + RUN_TESTS+="|TestPauseInSeries/fixtures/computemanagedsslcertificate" # TF + RUN_TESTS+="|TestPauseInSeries/fixtures/billingaccountiampolicy" # IAM + RUN_TESTS+="|TestPauseInSeries/fixtures/billingaccountiampolicymember" # IAM + RUN_TESTS+="|TestPauseInSeries/fixtures/organizationiampolicy" # IAM + RUN_TESTS+="|TestPauseInSeries/fixtures/organizationiampolicymember" # IAM +fi +echo "Running tests matching: ${RUN_TESTS}" + cd ${REPO_ROOT}/ -echo "Running mock e2e pause tests..." +echo "Running mock e2e pause tests for select fixtures..." E2E_KUBE_TARGET=envtest \ RUN_E2E=1 GOLDEN_REQUEST_CHECKS=1 E2E_GCP_TARGET=mock \ - go test -test.count=1 -timeout 1h30m -v ./tests/e2e -run TestPauseInSeries 2>&1 \ No newline at end of file + go test -test.count=1 -timeout 1h30m -v ./tests/e2e -run $RUN_TESTS 2>&1 \ No newline at end of file