Skip to content

Real-time network monitor + outbound firewall — see & block every connection. Privacy-first, local-first, Rust fleet agent, SIEM exports, 8 languages. / Moniteur réseau temps réel + pare-feu sortant, agent de flotte Rust, exports SIEM. 100 % local.

Fix merkle-baseline test failing on Linux/Windows CI

MoneyLisa405e3995f4ad
diff --git a/backend/tests/test_security_features.py b/backend/tests/test_security_features.py
index 251ab61..3aa0ecd 100644
--- a/backend/tests/test_security_features.py
+++ b/backend/tests/test_security_features.py
@@ -756,6 +756,14 @@ def test_integrity_module_merkle_baseline(tmp_path, monkeypatch):
"""EN: First module set → baseline; a changed module file later →
MODULE_CHANGED. / FR: Premier ensemble → baseline ; un fichier de
module modifié → MODULE_CHANGED."""
+ # EN: tmp_path lives under /tmp on Linux and …\Temp on Windows —
+ # both match _BAD_MODULE_MARKERS and would emit MODULE_SUSPECT.
+ # This test is about the Merkle root, so disable path markers.
+ # FR: tmp_path vit sous /tmp (Linux) et …\Temp (Windows) — les deux
+ # matchent _BAD_MODULE_MARKERS → MODULE_SUSPECT parasite. Ce test
+ # vise la racine Merkle : marqueurs désactivés ici.
+ import detection.integrity as _integrity
+ monkeypatch.setattr(_integrity, "_BAD_MODULE_MARKERS", ())
m1, m2 = tmp_path / "a.so", tmp_path / "b.so"
m1.write_bytes(b"lib-a-v1")
m2.write_bytes(b"lib-b-v1")