Skip to content

Commit

Permalink
Missing arg
Browse files Browse the repository at this point in the history
  • Loading branch information
dragomirp committed Nov 3, 2023
1 parent b2e19df commit 3cf8a80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/test_password_rotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3cf8a80

Please sign in to comment.