Orchestrata Ultimate › Tests › Reference › scripts › test_fix_ci_permissions

Tests reference — tests/scripts/test_fix_ci_permissions.py

Module of tests/scripts, split out because the directory page would be too large.

Prose pending.

tests/scripts/test_fix_ci_permissions.py

source · 8 tests · 140 lines

Tests for scripts/fix_ci_permissions.py — the narrow CI permission patcher.

Kind Name Line Description
function test_apply_rules_creates_the_file_and_its_parent 24
function test_apply_rules_is_idempotent 34 A second run adds nothing — re-running the patcher is safe.
function test_apply_rules_preserves_unrelated_settings 47 The patcher must not drop hooks, model, or pre-existing allow rules.
function test_undo_removes_only_the_rules_it_added 72 --undo is surgical: a rule the patcher never added must survive.
function test_malformed_settings_are_refused_not_clobbered 91 A half-written settings file must survive the patcher untouched.
function test_main_reports_failure_on_malformed_settings 105
function test_main_applies_and_undoes_the_real_rule_set 117 End to end over fp.RULES — the set the user actually runs.
function test_the_rule_set_covers_the_registration_script 133 The patcher exists to unblock register.sh — assert it actually does.