Skip to content

Add live test coverage for syncing SAML groups to orgs#30

Merged
marcleblanc2 merged 4 commits into
mainfrom
live-saml-group-coverage
Jun 12, 2026
Merged

Add live test coverage for syncing SAML groups to orgs#30
marcleblanc2 merged 4 commits into
mainfrom
live-saml-group-coverage

Conversation

@marcleblanc2

Copy link
Copy Markdown
Collaborator

No description provided.

marcleblanc2 and others added 4 commits June 11, 2026 23:25
…nges

Two new live harness checks in tests/run.py:

- live: sync-saml-orgs seeded — seeds one synthetic-group org to diverge
  both ways (unjustified member added, required member removed), then one
  sync-saml-orgs --apply must converge every synthetic-group org back to
  SAML truth, verified by an independent member read-back.
- live: perms follow saml group change — a fabricated SAML account gains
  a mapped group between two applies of the saml-group-live mapping; the
  user must gain the mapped grants. Account and repos restored after.

tests/setup.py: extract run_sql / upsert_saml_account to module level so
the harness reuses the same SQL path; name validation moves to the SQL
boundary.

Amp-Thread-ID: https://ampcode.com/threads/T-019eba1a-c4bc-7535-9e32-93e66db16bfa
Co-authored-by: Amp <amp@ampcode.com>
- Log the active --live/--performance filter at the start of the run
- Every filtered-out check logs a 'SKIP [filter] <name>' line, so the log
  always states which checks ran and which were skipped
- The opt-in full-cycle stress run logs why it did not run
- Summary reports the skipped count
- A filter that matches no checks now FAILS the run instead of reporting
  a silently-green summary

Amp-Thread-ID: https://ampcode.com/threads/T-019eba1a-c4bc-7535-9e32-93e66db16bfa
Co-authored-by: Amp <amp@ampcode.com>
@marcleblanc2 marcleblanc2 merged commit 99ad2e4 into main Jun 12, 2026
6 checks passed
@marcleblanc2 marcleblanc2 deleted the live-saml-group-coverage branch June 12, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant