Build jammy charms for osm
[osm/devops.git] / installers / charm / osm-pol / tests / integration / test_charm.py
index 87132d1..9210000 100644 (file)
@@ -51,10 +51,10 @@ async def test_pol_is_deployed(ops_test: OpsTest):
 
     await asyncio.gather(
         ops_test.model.deploy(
-            charm, resources=resources, application_name=POL_APP, series="focal"
+            charm, resources=resources, application_name=POL_APP, series="jammy"
         ),
         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"),
         ops_test.model.deploy(MARIADB_CHARM, application_name=MARIADB_APP, channel="stable"),
         ops_test.model.deploy(ZOOKEEPER_CHARM, application_name=ZOOKEEPER_APP, channel="stable"),
     )
@@ -70,9 +70,11 @@ async def test_pol_is_deployed(ops_test: OpsTest):
     logger.info("Adding relations for other components")
     await ops_test.model.add_relation(KAFKA_APP, ZOOKEEPER_APP)
 
-    logger.info("Adding relations")
+    logger.info("Adding relations for POL")
     await ops_test.model.add_relation(POL_APP, KAFKA_APP)
-    await ops_test.model.add_relation(POL_APP, MONGO_DB_APP)
+    await ops_test.model.add_relation(
+        "{}:mongodb".format(POL_APP), "{}:database".format(MONGO_DB_APP)
+    )
     await ops_test.model.add_relation(POL_APP, MARIADB_APP)
 
     async with ops_test.fast_forward():