diff --git a/tests/integration/test_mongodb.py b/tests/integration/test_mongodb.py index 16ed63d8..e46f73b5 100644 --- a/tests/integration/test_mongodb.py +++ b/tests/integration/test_mongodb.py @@ -54,21 +54,22 @@ async def test_deploy( @only_with_juju_secrets async def test_deploy_and_relate_mongodb(ops_test: OpsTest, cloud_name: str): """Test the relation with MongoDB and database accessibility.""" - await asyncio.gather( - ops_test.model.deploy( - MONGODB[cloud_name], - channel="6/edge", - application_name=MONGODB[cloud_name], - num_units=1, - series="jammy", - trust=True, - ) + await ops_test.model.deploy( + MONGODB[cloud_name], + channel="8/edge", + application_name=MONGODB[cloud_name], + num_units=1, + series="noble", + trust=True, ) await ops_test.model.wait_for_idle(apps=[MONGODB[cloud_name]], wait_for_active=True) assert ops_test.model.applications[MONGODB[cloud_name]].status == "active" + integrator_relation = await ops_test.model.add_relation(DATA_INTEGRATOR, MONGODB[cloud_name]) - await ops_test.model.wait_for_idle(apps=[DATA_INTEGRATOR, MONGODB[cloud_name]]) - assert ops_test.model.applications[DATA_INTEGRATOR].status == "active" + + await ops_test.model.wait_for_idle( + apps=[DATA_INTEGRATOR, MONGODB[cloud_name]], status="active" + ) # check if secrets are used on Juju3 assert await check_secrets_usage_matching_juju_version(