@@ -1268,26 +1268,11 @@ def test_update_config(harness):
1268
1268
rel_id = harness .model .get_relation (PEER ).id
1269
1269
# Mock some properties.
1270
1270
postgresql_mock .is_tls_enabled = PropertyMock (side_effect = [False , False , False , False ])
1271
- _is_workload_running .side_effect = [False , False , True , True , False , True ]
1271
+ _is_workload_running .side_effect = [True , True , False , True ]
1272
1272
_member_started .side_effect = [True , True , False ]
1273
1273
postgresql_mock .build_postgresql_parameters .return_value = {"test" : "test" }
1274
1274
1275
- # Test when only one of the two config options for profile limit memory is set.
1276
- harness .update_config ({"profile-limit-memory" : 1000 })
1277
- harness .charm .update_config ()
1278
-
1279
- # Test when only one of the two config options for profile limit memory is set.
1280
- harness .update_config ({"profile_limit_memory" : 1000 }, unset = {"profile-limit-memory" })
1281
- harness .charm .update_config ()
1282
-
1283
- # Test when the two config options for profile limit memory are set at the same time.
1284
- _render_patroni_yml_file .reset_mock ()
1285
- harness .update_config ({"profile-limit-memory" : 1000 })
1286
- with pytest .raises (ValueError ):
1287
- harness .charm .update_config ()
1288
-
1289
1275
# Test without TLS files available.
1290
- harness .update_config (unset = {"profile-limit-memory" , "profile_limit_memory" })
1291
1276
with harness .hooks_disabled ():
1292
1277
harness .update_relation_data (rel_id , harness .charm .unit .name , {"tls" : "" })
1293
1278
_is_tls_enabled .return_value = False
0 commit comments