refactor(test): add reusable Entra external authentication helpers #8284
All Vouch review confidence checks passed
Residual risk 0.32 = Change Risk (0.60) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.60 · 234 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.327
Sensitive Paths
sensitive_paths
0.060
Real PR Conversation Timeline
1 comments
"Review active on #8284"
general
weight: 0.35
redhat-chai-bot
ARO-29735
What
Add
SetupExternalAuthAccess20240610for tests that need the default Entra setup, a cluster-admin grant, and a client authenticated as the external identity. Tests that need to check access between steps, customize claims, or grant a different role can call the setup, role-binding, and token helpers separately.Why
The external-auth, authorized-CIDR, and feature-aggregation tests each assemble similar authentication setup. Sharing that implementation lets tests focus on the behavior they verify.
Testing
E2Etestsbuild tag.Special notes for your reviewer
Existing E2E tests are unchanged. The previous role-binding helper delegates to the new helper and retains its behavior.
test/AGENTS.mdexplains when to use the wrapper versus the individual steps.PR Checklist
/assigncommand---
AI-generated. Review for accuracy.
@patriksuba requested from Slack
Chai persona:
ARO Ops