Phase 4: acceptance tests for live vendor APIs (auto-skip without credentials)#31
Merged
WhalerMike merged 1 commit intomainfrom Apr 16, 2026
Merged
Phase 4: acceptance tests for live vendor APIs (auto-skip without credentials)#31WhalerMike merged 1 commit intomainfrom
WhalerMike merged 1 commit intomainfrom
Conversation
…PI testing
Tests auto-skip when credentials aren't set, auto-run when they are:
test_acceptance_phase4.py:
Entra ID (4 tests): connect, list users, evidence, OSCAL SAR
M365 (2 tests): connect, tenant config
ServiceNow (3 tests): connect, fetch incidents, normalize
Credential status (2 tests): always-pass reporters
acceptance-tests.yml:
- Triggers: workflow_dispatch (manual) + weekly Wednesday 08:00 UTC
- Reads secrets: ENTRA_CLIENT_ID/SECRET/TENANT_ID, SERVICENOW_INSTANCE/TOKEN
- Job summary shows credential availability table
- Optional --adapter filter for targeted testing
TO ACTIVATE:
1. Add secrets to WhalerMike/uiao-impl → Settings → Secrets → Actions:
ENTRA_CLIENT_ID, ENTRA_CLIENT_SECRET, ENTRA_TENANT_ID
(optional) SERVICENOW_INSTANCE, SERVICENOW_TOKEN
2. Trigger: Actions → Phase 4 Acceptance Tests → Run workflow
3. Tests with matching credentials will auto-run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase 4 acceptance test infrastructure. Tests auto-skip without credentials, auto-run when secrets are added.
Tests (11 total)
CI Workflow
acceptance-tests.yml— manual dispatch + weekly Wednesday schedule. Reads from GitHub secrets.To activate
Add these secrets to
WhalerMike/uiao-impl→ Settings → Secrets → Actions:ENTRA_CLIENT_IDENTRA_CLIENT_SECRETENTRA_TENANT_IDSERVICENOW_INSTANCEcontoso-govSERVICENOW_TOKENThen: Actions → Phase 4 Acceptance Tests → Run workflow.
https://claude.ai/code/session_01Wu19UGhHdxxMF9pdUVCDMC