Skip to content

Commit

Permalink
pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
MiaAltieri committed Feb 20, 2024
1 parent 86ce77d commit 17f5a03
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/integration/sharding_tests/test_sharding_backups.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,16 @@ async def test_rotate_backup_password(ops_test: OpsTest) -> None:
config_leader_id = await get_leader_id(ops_test, app_name=CONFIG_SERVER_APP_NAME)
new_password = "new-password"

shard_backup_password = get_password(ops_test, username="backup", app_name=SHARD_ONE_APP_NAME)
assert (
shard_backup_password != new_password
), "shard-one is incorrectly already set to the new password."

shard_backup_password = get_password(ops_test, username="backup", app_name=SHARD_TWO_APP_NAME)
assert (
shard_backup_password != new_password
), "shard-two is incorrectly already set to the new password."

await set_password(
ops_test, unit_id=config_leader_id, username="backup", password=new_password
)
Expand Down

0 comments on commit 17f5a03

Please sign in to comment.