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