Skip to content

Commit b5cc2e9

Browse files
Merge pull request GoogleCloudPlatform#2824 from acpana/acpana/smaller-pause
refactor:ci: selectively run pause tests
2 parents 808d230 + 20f639e commit b5cc2e9

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

scripts/github-actions/ga-pause-test.sh

+15-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,21 @@ source ${REPO_ROOT}/scripts/fetch_ext_bins.sh && \
2323
fetch_tools && \
2424
setup_envs
2525

26+
if [[ -z "${RUN_TESTS:-}" ]]; then
27+
RUN_TESTS=""
28+
RUN_TESTS+="TestPauseInSeries/fixtures/iamserviceaccount" # IAM
29+
RUN_TESTS+="|TestPauseInSeries/fixtures/logbucketmetric" # Direct
30+
RUN_TESTS+="|TestPauseInSeries/fixtures/cloudidsendpoint" # DCL
31+
RUN_TESTS+="|TestPauseInSeries/fixtures/computemanagedsslcertificate" # TF
32+
RUN_TESTS+="|TestPauseInSeries/fixtures/billingaccountiampolicy" # IAM
33+
RUN_TESTS+="|TestPauseInSeries/fixtures/billingaccountiampolicymember" # IAM
34+
RUN_TESTS+="|TestPauseInSeries/fixtures/organizationiampolicy" # IAM
35+
RUN_TESTS+="|TestPauseInSeries/fixtures/organizationiampolicymember" # IAM
36+
fi
37+
echo "Running tests matching: ${RUN_TESTS}"
38+
2639
cd ${REPO_ROOT}/
27-
echo "Running mock e2e pause tests..."
40+
echo "Running mock e2e pause tests for select fixtures..."
2841
E2E_KUBE_TARGET=envtest \
2942
RUN_E2E=1 GOLDEN_REQUEST_CHECKS=1 E2E_GCP_TARGET=mock \
30-
go test -test.count=1 -timeout 1h30m -v ./tests/e2e -run TestPauseInSeries 2>&1
43+
go test -test.count=1 -timeout 1h30m -v ./tests/e2e -run $RUN_TESTS 2>&1

0 commit comments

Comments
 (0)