|
13 | 13 | from pytest_operator.plugin import OpsTest
|
14 | 14 |
|
15 | 15 | from .. import markers
|
16 |
| -from ..helpers import CHARM_SERIES, assert_sync_standbys, get_leader_unit, scale_application |
| 16 | +from ..helpers import CHARM_BASE, assert_sync_standbys, get_leader_unit, scale_application |
17 | 17 | from ..juju_ import juju_major_version
|
18 | 18 | from .helpers import (
|
19 | 19 | build_connection_string,
|
@@ -49,21 +49,21 @@ async def test_deploy_charms(ops_test: OpsTest, charm):
|
49 | 49 | APPLICATION_APP_NAME,
|
50 | 50 | application_name=APPLICATION_APP_NAME,
|
51 | 51 | num_units=2,
|
52 |
| - series=CHARM_SERIES, |
| 52 | + base=CHARM_BASE, |
53 | 53 | channel="edge",
|
54 | 54 | ),
|
55 | 55 | ops_test.model.deploy(
|
56 | 56 | charm,
|
57 | 57 | application_name=DATABASE_APP_NAME,
|
58 | 58 | num_units=1,
|
59 |
| - series=CHARM_SERIES, |
| 59 | + base=CHARM_BASE, |
60 | 60 | config={"profile": "testing"},
|
61 | 61 | ),
|
62 | 62 | ops_test.model.deploy(
|
63 | 63 | charm,
|
64 | 64 | application_name=ANOTHER_DATABASE_APP_NAME,
|
65 | 65 | num_units=2,
|
66 |
| - series=CHARM_SERIES, |
| 66 | + base=CHARM_BASE, |
67 | 67 | config={"profile": "testing"},
|
68 | 68 | ),
|
69 | 69 | )
|
@@ -218,6 +218,7 @@ async def test_two_applications_doesnt_share_the_same_relation_data(ops_test: Op
|
218 | 218 | APPLICATION_APP_NAME,
|
219 | 219 | application_name=another_application_app_name,
|
220 | 220 | channel="edge",
|
| 221 | + base=CHARM_BASE, |
221 | 222 | )
|
222 | 223 | await ops_test.model.wait_for_idle(apps=all_app_names, status="active")
|
223 | 224 |
|
@@ -446,7 +447,7 @@ async def test_admin_role(ops_test: OpsTest):
|
446 | 447 | all_app_names = [DATA_INTEGRATOR_APP_NAME]
|
447 | 448 | all_app_names.extend(APP_NAMES)
|
448 | 449 | async with ops_test.fast_forward():
|
449 |
| - await ops_test.model.deploy(DATA_INTEGRATOR_APP_NAME) |
| 450 | + await ops_test.model.deploy(DATA_INTEGRATOR_APP_NAME, base=CHARM_BASE) |
450 | 451 | await ops_test.model.wait_for_idle(apps=[DATA_INTEGRATOR_APP_NAME], status="blocked")
|
451 | 452 | await ops_test.model.applications[DATA_INTEGRATOR_APP_NAME].set_config({
|
452 | 453 | "database-name": DATA_INTEGRATOR_APP_NAME.replace("-", "_"),
|
@@ -535,7 +536,9 @@ async def test_invalid_extra_user_roles(ops_test: OpsTest):
|
535 | 536 | another_data_integrator_app_name = f"another-{DATA_INTEGRATOR_APP_NAME}"
|
536 | 537 | data_integrator_apps_names = [DATA_INTEGRATOR_APP_NAME, another_data_integrator_app_name]
|
537 | 538 | await ops_test.model.deploy(
|
538 |
| - DATA_INTEGRATOR_APP_NAME, application_name=another_data_integrator_app_name |
| 539 | + DATA_INTEGRATOR_APP_NAME, |
| 540 | + application_name=another_data_integrator_app_name, |
| 541 | + base=CHARM_BASE, |
539 | 542 | )
|
540 | 543 | await ops_test.model.wait_for_idle(
|
541 | 544 | apps=[another_data_integrator_app_name], status="blocked"
|
@@ -592,14 +595,15 @@ async def test_nextcloud_db_blocked(ops_test: OpsTest, charm: str) -> None:
|
592 | 595 | charm,
|
593 | 596 | application_name=DATABASE_APP_NAME,
|
594 | 597 | num_units=1,
|
595 |
| - series=CHARM_SERIES, |
| 598 | + base=CHARM_BASE, |
596 | 599 | config={"profile": "testing"},
|
597 | 600 | ),
|
598 | 601 | ops_test.model.deploy(
|
599 | 602 | "nextcloud",
|
600 | 603 | channel="edge",
|
601 | 604 | application_name="nextcloud",
|
602 | 605 | num_units=1,
|
| 606 | + base=CHARM_BASE, |
603 | 607 | ),
|
604 | 608 | )
|
605 | 609 | await asyncio.gather(
|
|
0 commit comments