Skip to content

Commit

Permalink
tests: pass a sensible default folder id in hack/record-gcp
Browse files Browse the repository at this point in the history
This allows us to record test output even when we must create a project.
  • Loading branch information
justinsb committed May 15, 2024
1 parent 93919ed commit 2f58ae8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hack/record-gcp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ rm -rf $(pwd)/artifactz/realgcp

RUN_TESTS=TestAllInSeries/$1

DEFAULT_PROJECT=$(gcloud config get project)
TEST_FOLDER_ID=$(gcloud projects describe ${DEFAULT_PROJECT} --format='value(parent.id)')
export TEST_FOLDER_ID

# Run e2e tests against real gcp, capturing output
ARTIFACTS=$(pwd)/artifactz/realgcp \
E2E_KUBE_TARGET=envtest \
Expand Down

0 comments on commit 2f58ae8

Please sign in to comment.