poc3
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user