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"),
)
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():