Skip to content

Phase 4: acceptance tests for live vendor APIs (auto-skip without credentials)#31

Merged
WhalerMike merged 1 commit intomainfrom
claude/acceptance-tests
Apr 16, 2026
Merged

Phase 4: acceptance tests for live vendor APIs (auto-skip without credentials)#31
WhalerMike merged 1 commit intomainfrom
claude/acceptance-tests

Conversation

@WhalerMike
Copy link
Copy Markdown
Owner

Summary

Phase 4 acceptance test infrastructure. Tests auto-skip without credentials, auto-run when secrets are added.

Tests (11 total)

  • Entra ID (4): connect, list users, evidence bundle, OSCAL SAR from real data
  • M365 (2): connect, tenant config injection
  • ServiceNow (3): connect, fetch incidents, normalize real records
  • Credential reporters (2): always-pass status output

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:

Secret Source Covers
ENTRA_CLIENT_ID Azure App Registration Entra + M365 + Intune
ENTRA_CLIENT_SECRET Azure App Registration Entra + M365 + Intune
ENTRA_TENANT_ID Azure Portal Entra + M365 + Intune
SERVICENOW_INSTANCE e.g. contoso-gov ServiceNow
SERVICENOW_TOKEN OAuth or basic auth ServiceNow

Then: Actions → Phase 4 Acceptance Tests → Run workflow.

https://claude.ai/code/session_01Wu19UGhHdxxMF9pdUVCDMC

…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
@WhalerMike WhalerMike merged commit 5d5f101 into main Apr 16, 2026
2 checks passed
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.

2 participants