Skip to content

Commit 3fbb47e

Browse files
committed
fix(test): add explicit relation endpoints for GLAuth-PostgreSQL integration
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
1 parent fb76b3c commit 3fbb47e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integration/test_ldap.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ async def test_glauth_integration(ops_test: OpsTest):
6969
# Add both relations to GLAuth (PostgreSQL and self-signed-certificates)
7070
logger.info("Adding relations to GLAuth")
7171
await asyncio.gather(
72-
ops_test.model.add_relation(GLAUTH_APP_NAME, glauth_psql_app_name),
72+
ops_test.model.add_relation(
73+
f"{GLAUTH_APP_NAME}:pg-database", f"{glauth_psql_app_name}:database"
74+
),
7375
ops_test.model.add_relation(GLAUTH_APP_NAME, glauth_cert_app_name),
7476
)
7577
await asyncio.gather(

0 commit comments

Comments
 (0)