mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-29 14:30:52 +00:00
Auth-isolated matrix variants (exactly one of LDAP / OIDC-OAuth2 enabled, and no non-auth `enabled: true` alongside) must explicitly pin every non-auth service-key in the role's variant union to literal `enabled: false, shared: false`. Without this, the variant's auth-only test scope balloons into a full integration deploy via the services.yml-default propagation, wasting CI minutes and obscuring the regression signal. Adds `tests/integration/roles/meta/variants/test_auth_isolation.py` (rule key `variants-auth-isolation`) plus the matching catalog entry. The trigger is narrow on purpose: a variant that enables auth alongside other services is a deliberate integration test, not an auth-isolated one, and the rule does not fire there. Mass-fixes the 24 legacy auth-isolated variants the rule turned up: each gets the missing `enabled: false, shared: false` declarations appended to its `services:` block. Where the false-override clashes with a static-literal base in meta/services.yml, the override line also picks up a `# nocheck: variants-static-override` marker. The svc-bkp-container-2-local variant 2 additionally carries `# nocheck: variants-services-match` on the new keys because they are resolver-only matrix hooks with no consumer contract in the base meta. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Test guidance 🧪
This directory contains contributor guidance for automated tests. Its scope is how lint, unit, integration, regression, and Playwright coverage should be structured, selected, and validated.