This commit is contained in:
Mateusz Gruszczyński
2026-08-15 23:43:58 +02:00
parent 71b6c0d86f
commit e8e5515e24
27 changed files with 861 additions and 64 deletions
+12
View File
@@ -20,3 +20,15 @@ def test_redis_uses_aof_everysec_and_rdb_snapshot():
assert cmd[cmd.index("--dir") + 1] == td
assert cmd[cmd.index("--maxmemory") + 1] == "0"
assert cmd[cmd.index("--maxmemory-policy") + 1] == "noeviction"
def test_redis_status_exposes_runtime_details_for_system_ui():
with tempfile.TemporaryDirectory() as td:
supervisor = RedisSupervisor(True, td, port=6381, snapshot_seconds=1200, aof=True)
supervisor.executable = "/usr/bin/redis-server"
status = supervisor.status()
assert status["managed"] is True
assert status["port"] == 6381
assert status["data_dir"] == td
assert status["snapshot_seconds"] == 1200
assert status["persistence"] == "AOF everysec + RDB"