@@ -46,6 +46,9 @@ async def test_deploy(ops_test: OpsTest, charm: str, check_subordinate_env_vars)
46
46
channel = "latest/edge" ,
47
47
num_units = 0 ,
48
48
base = CHARM_BASE ,
49
+ # TODO switch back to series when pylib juju can figure out the base:
50
+ # https://github.com/juju/python-libjuju/issues/1240
51
+ series = "jammy" ,
49
52
),
50
53
ops_test .model .deploy (
51
54
LS_CLIENT ,
@@ -61,26 +64,25 @@ async def test_deploy(ops_test: OpsTest, charm: str, check_subordinate_env_vars)
61
64
)
62
65
63
66
await ops_test .model .wait_for_idle (apps = [DATABASE_APP_NAME ], status = "active" , timeout = 2000 )
64
- await ops_test .model .relate (f"{ DATABASE_APP_NAME } :juju-info" , f"{ LS_CLIENT } :container" )
65
67
await ops_test .model .relate (
66
68
f"{ DATABASE_APP_NAME } :juju-info" , f"{ UBUNTU_PRO_APP_NAME } :juju-info"
67
69
)
68
70
await ops_test .model .wait_for_idle (
69
- apps = [LS_CLIENT , UBUNTU_PRO_APP_NAME , DATABASE_APP_NAME ], status = "active"
71
+ apps = [UBUNTU_PRO_APP_NAME , DATABASE_APP_NAME ], status = "active"
70
72
)
71
73
72
74
73
75
async def test_scale_up (ops_test : OpsTest , check_subordinate_env_vars ):
74
76
await scale_application (ops_test , DATABASE_APP_NAME , 4 )
75
77
76
78
await ops_test .model .wait_for_idle (
77
- apps = [LS_CLIENT , UBUNTU_PRO_APP_NAME , DATABASE_APP_NAME ], status = "active" , timeout = 1500
79
+ apps = [UBUNTU_PRO_APP_NAME , DATABASE_APP_NAME ], status = "active" , timeout = 1500
78
80
)
79
81
80
82
81
83
async def test_scale_down (ops_test : OpsTest , check_subordinate_env_vars ):
82
84
await scale_application (ops_test , DATABASE_APP_NAME , 3 )
83
85
84
86
await ops_test .model .wait_for_idle (
85
- apps = [LS_CLIENT , UBUNTU_PRO_APP_NAME , DATABASE_APP_NAME ], status = "active" , timeout = 1500
87
+ apps = [UBUNTU_PRO_APP_NAME , DATABASE_APP_NAME ], status = "active" , timeout = 1500
86
88
)
0 commit comments