test: Disable maintenance mode correctly in test_maintenance_mode.py

Although setting the value of `maintenance_mode` to the string `"false"`
disables maintenance mode, the testing framework misinterprets the value
and thinks that it's actually enabled. As a result, it might try to
connect to Scylla via the maintenance socket, which we don't want.

(cherry picked from commit 394207fd69)
This commit is contained in:
Dawid Mędrek
2025-11-06 16:57:47 +01:00
committed by GitHub Action
parent 7808d85ecb
commit b217a5e43a

View File

@@ -90,7 +90,7 @@ async def test_maintenance_mode(manager: ManagerClient):
await manager.server_stop_gracefully(server_a.server_id)
# Restart in normal mode to see if the changes made in maintenance mode are persisted
await manager.server_update_config(server_a.server_id, "maintenance_mode", "false")
await manager.server_update_config(server_a.server_id, "maintenance_mode", False)
await manager.server_start(server_a.server_id, wait_others=1)
await wait_for_cql_and_get_hosts(cql, [server_a], time.time() + 60)
await manager.servers_see_each_other([server_a, server_b])