@@ -113,20 +113,23 @@ async def test_freeze_db_process(ops_test: OpsTest, continuous_writes, mysql_cha
113
113
logger .info (f"Freezing process id { pid } " )
114
114
await ops_test .juju ("ssh" , primary_unit .name , "sudo" , "kill" , "-19" , pid )
115
115
116
+ logger .info ("Get cluster admin password" )
116
117
config = {
117
118
"username" : CLUSTER_ADMIN_USERNAME ,
118
119
"password" : await get_system_user_password (primary_unit , CLUSTER_ADMIN_USERNAME ),
119
120
"host" : primary_unit_ip ,
120
121
}
121
122
122
123
# verify that connection is not possible
124
+ logger .info (f"Verifying that connection to host { primary_unit_ip } is not possible" )
123
125
assert not is_connection_possible (config ), "❌ Mysqld is not paused"
124
126
125
127
# unfreeze (CONT signal) mysqld for the unit
126
128
logger .info (f"Unfreezing process id { pid } " )
127
129
await ops_test .juju ("ssh" , primary_unit .name , "sudo" , "kill" , "-18" , pid )
128
130
129
131
# verify that connection is possible
132
+ logger .info (f"Verifying that connection to host { primary_unit_ip } is possible" )
130
133
assert is_connection_possible (config ), "❌ Mysqld is paused"
131
134
132
135
# ensure continuous writes still incrementing for all units
@@ -306,7 +309,6 @@ async def test_replicate_data_on_restart(
306
309
307
310
@pytest .mark .group (1 )
308
311
@pytest .mark .abort_on_fail
309
- @pytest .mark .unstable
310
312
async def test_cluster_pause (ops_test : OpsTest , continuous_writes , mysql_charm_series : str ):
311
313
"""Pause test.
312
314
0 commit comments