Skip to content

Commit

Permalink
Fix test_mailman3_core_db
Browse files Browse the repository at this point in the history
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
  • Loading branch information
marceloneppel committed Jul 2, 2024
1 parent 886d630 commit b1650f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/integration/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ async def deploy_and_relate_application_with_postgresql(
config: dict = None,
channel: str = "stable",
relation: str = "db",
series: str = None,
) -> int:
"""Helper function to deploy and relate application with PostgreSQL.
Expand All @@ -305,6 +306,7 @@ async def deploy_and_relate_application_with_postgresql(
channel: The channel to use for the charm.
relation: Name of the PostgreSQL relation to relate
the application to.
series: Series of the charm to deploy.
Returns:
the id of the created relation.
Expand All @@ -316,6 +318,7 @@ async def deploy_and_relate_application_with_postgresql(
application_name=application_name,
num_units=number_of_units,
config=config,
series=series,
)
await ops_test.model.wait_for_idle(
apps=[application_name],
Expand Down
1 change: 1 addition & 0 deletions tests/integration/test_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ async def test_mailman3_core_db(ops_test: OpsTest, charm: str) -> None:
MAILMAN3_CORE_APP_NAME,
APPLICATION_UNITS,
config,
series=CHARM_SERIES,
)
await check_databases_creation(ops_test, ["mailman3"])

Expand Down

0 comments on commit b1650f8

Please sign in to comment.