Skip to content

Commit

Permalink
update secret usage in workflows + tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MiaAltieri committed Feb 16, 2024
1 parent fc2c80c commit 1ed630d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/backup_tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ async def count_failed_backups(db_unit: ops.model.Unit) -> int:
async def set_credentials(ops_test: OpsTest, github_secrets, cloud: str) -> None:
"""Sets the s3 crednetials for the provided cloud, valid options are AWS or GCP."""
# set access key and secret keys
access_key = github_secrets[f"{cloud}_ACCESS_KEY_ID"]
secret_key = github_secrets[f"{cloud}_SECRET_ACCESS_KEY"]
access_key = github_secrets[f"{cloud}_ACCESS_KEY"]
secret_key = github_secrets[f"{cloud}_SECRET_KEY"]
assert access_key and secret_key, f"{cloud} access key and secret key not provided."

s3_integrator_unit = ops_test.model.applications[S3_APP_NAME].units[0]
Expand Down

0 comments on commit 1ed630d

Please sign in to comment.