From 3cf8a80016f0d81e8b2f559423ae655730d9685f Mon Sep 17 00:00:00 2001 From: Dragomir Penev Date: Fri, 3 Nov 2023 17:42:38 +0200 Subject: [PATCH] Missing arg --- tests/integration/test_password_rotation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_password_rotation.py b/tests/integration/test_password_rotation.py index fa77e04d24..5a163ecd2c 100644 --- a/tests/integration/test_password_rotation.py +++ b/tests/integration/test_password_rotation.py @@ -118,9 +118,9 @@ async def test_no_password_change_on_invalid_password(ops_test: OpsTest) -> None """Test that in general, there is no change when password validation fails.""" leader_unit = await get_leader_unit(ops_test, APP_NAME) leader = leader_unit.name - password1 = await get_password(ops_test, username="replication") + password1 = await get_password(ops_test, unit_name=leader, username="replication") # The password has to be minimum 3 characters await set_password(ops_test, unit_name=leader, username="replication", password="ca" * 1000000) - password2 = await get_password(ops_test, username="replication") + password2 = await get_password(ops_test, unit_name=leader, username="replication") # The password didn't change assert password1 == password2