@@ -54,7 +54,9 @@ async def test_database_relation_with_charm_libraries(ops_test: OpsTest, charm):
54
54
application_name = APPLICATION_APP_NAME ,
55
55
num_units = 2 ,
56
56
base = CHARM_BASE ,
57
- channel = "edge" ,
57
+ channel = "latest/edge" ,
58
+ # TODO remove when setting predefined roles
59
+ config = {"extra_user_roles" : "CREATEDB,CREATEROLE" },
58
60
),
59
61
ops_test .model .deploy (
60
62
charm ,
@@ -192,7 +194,7 @@ async def test_two_applications_doesnt_share_the_same_relation_data(ops_test: Op
192
194
APPLICATION_APP_NAME ,
193
195
application_name = another_application_app_name ,
194
196
base = CHARM_BASE ,
195
- channel = "edge" ,
197
+ channel = "latest/ edge" ,
196
198
)
197
199
await ops_test .model .wait_for_idle (apps = all_app_names , status = "active" )
198
200
@@ -452,7 +454,9 @@ async def test_admin_role(ops_test: OpsTest):
452
454
all_app_names = [DATA_INTEGRATOR_APP_NAME ]
453
455
all_app_names .extend (APP_NAMES )
454
456
async with ops_test .fast_forward ():
455
- await ops_test .model .deploy (DATA_INTEGRATOR_APP_NAME , base = CHARM_BASE )
457
+ await ops_test .model .deploy (
458
+ DATA_INTEGRATOR_APP_NAME , channel = "latest/edge" , series = "noble"
459
+ )
456
460
await ops_test .model .wait_for_idle (apps = [DATA_INTEGRATOR_APP_NAME ], status = "blocked" )
457
461
await ops_test .model .applications [DATA_INTEGRATOR_APP_NAME ].set_config ({
458
462
"database-name" : DATA_INTEGRATOR_APP_NAME .replace ("-" , "_" ),
@@ -544,7 +548,8 @@ async def test_invalid_extra_user_roles(ops_test: OpsTest):
544
548
await ops_test .model .deploy (
545
549
DATA_INTEGRATOR_APP_NAME ,
546
550
application_name = another_data_integrator_app_name ,
547
- base = CHARM_BASE ,
551
+ channel = "latest/edge" ,
552
+ series = "noble" ,
548
553
)
549
554
await ops_test .model .wait_for_idle (
550
555
apps = [another_data_integrator_app_name ], status = "blocked"
0 commit comments