Skip to content

Commit 5f52b17

Browse files
Adapt relation-user listing test
1 parent ea6c321 commit 5f52b17

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/unit/test_postgresql.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,11 @@ def test_grant_relation_access_group_memberships(harness):
208208
harness.charm.postgresql.grant_relation_access_group_memberships()
209209

210210
execute.assert_has_calls([
211-
call("SELECT usename FROM pg_catalog.pg_user WHERE usename LIKE 'relation_id_%';"),
211+
call(
212+
"SELECT usename "
213+
"FROM pg_catalog.pg_user "
214+
"WHERE usename LIKE 'relation_id_%' OR usename LIKE 'relation-%';"
215+
),
212216
])
213217

214218

0 commit comments

Comments
 (0)