Skip to content

Commit

Permalink
ensure SCCACHE_S3_NO_CREDENTIALS is false in test_gcs_service_account
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Aug 23, 2024
1 parent 2ac567a commit 282ea92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1391,6 +1391,7 @@ fn test_s3_no_credentials_valid_false() {

#[test]
fn test_gcs_service_account() {
env::set_var("SCCACHE_S3_NO_CREDENTIALS", "false");
env::set_var("SCCACHE_GCS_BUCKET", "my-bucket");
env::set_var("SCCACHE_GCS_SERVICE_ACCOUNT", "[email protected]");
env::set_var("SCCACHE_GCS_RW_MODE", "READ_WRITE");
Expand All @@ -1410,6 +1411,7 @@ fn test_gcs_service_account() {
None => unreachable!(),
};

env::remove_var("SCCACHE_S3_NO_CREDENTIALS");
env::remove_var("SCCACHE_GCS_BUCKET");
env::remove_var("SCCACHE_GCS_SERVICE_ACCOUNT");
env::remove_var("SCCACHE_GCS_RW_MODE");
Expand Down

0 comments on commit 282ea92

Please sign in to comment.