PRD: Egress traffic logging #207

Merged
didericis merged 7 commits from feat/egress-log-option into main 2026-06-07 20:32:47 -04:00
Showing only changes of commit 55cb3429d4 - Show all commits
+10
View File
@@ -315,6 +315,16 @@ class TestLoadConfig(unittest.TestCase):
self.assertIsInstance(cfg, Config)
self.assertEqual("x.example", cfg.routes[0].host)
def test_parse_config_accepts_dict(self):
cfg = parse_config({"routes": [{"host": "x.example"}], "log": 1})
self.assertIsInstance(cfg, Config)
self.assertEqual(LOG_BLOCKS, cfg.log)
self.assertEqual("x.example", cfg.routes[0].host)
def test_parse_config_rejects_non_dict(self):
with self.assertRaises(ValueError):
parse_config("not a dict")
# --- evaluate_matches ---------------------------------------------------