Skip to content

Commit

Permalink
Disable gcloud local cloud logging (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
mallport authored Jun 26, 2024
1 parent 21b4478 commit 0fe8f03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/v1/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ def setup() -> Generator[None, None, None]:
# Setup step
# Could not find a way to generate id tokes without a SA to impersonate.
# Subprocess `glcoud auth` as a temporary workaround

# Need to disable local file logging to avoid getting gcloud perm error
subprocess.run(["gcloud", "config", "set", "core/disable_file_logging", "True"])
id_token = subprocess.getoutput("gcloud auth print-identity-token")
os.environ["PSEUDO_SERVICE_AUTH_TOKEN"] = id_token
yield
Expand Down

0 comments on commit 0fe8f03

Please sign in to comment.