aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-node/tests/test_cli_dispatch.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-node/tests/test_cli_dispatch.py')
-rw-r--r--packages/meshbay-node/tests/test_cli_dispatch.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/meshbay-node/tests/test_cli_dispatch.py b/packages/meshbay-node/tests/test_cli_dispatch.py
index cf91564..6f43772 100644
--- a/packages/meshbay-node/tests/test_cli_dispatch.py
+++ b/packages/meshbay-node/tests/test_cli_dispatch.py
@@ -49,6 +49,11 @@ VERBS = [
["file", "list"],
["file", "rm", "abc", "--yes"],
["video", "rematch", "--yes"],
+ ["chat", "status"],
+ ["chat", "rotate"],
+ ["chat", "encrypt-history", "--yes"],
+ ["chat", "prune", "30"],
+ ["chat", "prune"], # missing days: usage, then exit
["denylist", "show"],
["denylist", "clear", "--yes"],
["stun", "list"],
@@ -78,6 +83,12 @@ def stub_daemon(monkeypatch, tmp_path):
"user_id": "u", "authorized_members": 0, "errors": [],
"name": "g", "group_id": "g", "shared_dir": str(tmp_path),
"config": str(tmp_path / "node.toml"),
+ # Chat encryption: the switch's answer, the epoch a rotation
+ # opened, and what a history re-encryption reports.
+ "enabled": False, "epoch": 1, "converted": 0,
+ "backup": str(tmp_path / "chat.db.bak"),
+ "encrypted": False, "plaintext_messages": 0,
+ "encrypted_messages": 0, "max_age_days": 30,
}
monkeypatch.setattr(daemon_mod, "_daemon_api", fake_api)