Ratchet egress_addon_core coverage to >=90% (ADR 0004) #297
Reference in New Issue
Block a user
Delete Branch "ratchet-egress-core-90"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Stacked on #296 (base =
ratchet-yaml-subset-90). Third per-module ratchet under ADR 0004.Summary
Adds a parsing/serialization/evaluation suite for
egress_addon_core— the heart of the egress engine:scheme/token_envpairing, thegitblock, everymatchessub-field (paths/methods/headers including type checks, regex-compile failures, unknown keys), and thedlpblock (detector type/name,outbound_on_match, unknown key).outbound_detectors: falsedisables.parse_configlog-level validation +load_configinvalid-YAML.route_to_yaml_dict— minimal / auth / git / dlp / matches with default-omission.evaluate_matches— exact/prefix/regex paths, method filter, exact + regex header matching (match and non-match).Coverage
egress_addon_core.pyThe two remaining missed statements are defensive guards (an unreachable separator-return, a no-matching-path-type fallthrough). 53 new tests; full suite (1429) passes; pyright clean; pylint 9.81.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.