Build jammy charms for osm
[osm/devops.git] / installers / charm / osm-ro / tests / integration / test_charm.py
index 38dc40f..38e9ad9 100644 (file)
@@ -48,10 +48,10 @@ async def test_ro_is_deployed(ops_test: OpsTest):
     resources = {"ro-image": METADATA["resources"]["ro-image"]["upstream-source"]}
 
     await asyncio.gather(
-        ops_test.model.deploy(charm, resources=resources, application_name=RO_APP),
+        ops_test.model.deploy(charm, resources=resources, application_name=RO_APP, series="jammy"),
         ops_test.model.deploy(ZOOKEEPER_CHARM, application_name=ZOOKEEPER_APP, channel="stable"),
         ops_test.model.deploy(KAFKA_CHARM, application_name=KAFKA_APP, channel="stable"),
-        ops_test.model.deploy(MONGO_DB_CHARM, application_name=MONGO_DB_APP, channel="edge"),
+        ops_test.model.deploy(MONGO_DB_CHARM, application_name=MONGO_DB_APP, channel="5/edge"),
     )
 
     async with ops_test.fast_forward():
@@ -65,7 +65,9 @@ async def test_ro_is_deployed(ops_test: OpsTest):
 
     logger.info("Adding relations")
     await ops_test.model.add_relation(KAFKA_APP, ZOOKEEPER_APP)
-    await ops_test.model.add_relation(RO_APP, MONGO_DB_APP)
+    await ops_test.model.add_relation(
+        "{}:mongodb".format(RO_APP), "{}:database".format(MONGO_DB_APP)
+    )
     await ops_test.model.add_relation(RO_APP, KAFKA_APP)
 
     async with ops_test.fast_forward():