Skip to content

Commit

Permalink
Merge pull request #2824 from acpana/acpana/smaller-pause
Browse files Browse the repository at this point in the history
refactor:ci: selectively run pause tests
  • Loading branch information
google-oss-prow[bot] authored Oct 2, 2024
2 parents 808d230 + 20f639e commit b5cc2e9
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions scripts/github-actions/ga-pause-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
go test -test.count=1 -timeout 1h30m -v ./tests/e2e -run $RUN_TESTS 2>&1

0 comments on commit b5cc2e9

Please sign in to comment.