From 17f5a037dc6b776c989ba4a5e42cb50d5249ffbe Mon Sep 17 00:00:00 2001 From: Mia Altieri Date: Tue, 20 Feb 2024 16:20:43 +0000 Subject: [PATCH] pr feedback --- .../sharding_tests/test_sharding_backups.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/integration/sharding_tests/test_sharding_backups.py b/tests/integration/sharding_tests/test_sharding_backups.py index d977487e4..3f534c987 100644 --- a/tests/integration/sharding_tests/test_sharding_backups.py +++ b/tests/integration/sharding_tests/test_sharding_backups.py @@ -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 )