test(e2e): reject immutable cluster update via shared fixture (P1-2) #7468
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.40) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 280 lines diff across 3 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.337
Real PR Conversation Timeline
1 comments
"Review active on #7468"
general
weight: 0.35
redhat-chai-bot
P1-2 — Reject immutable cluster-configuration updates
Stacked on #7467 (shared read-only cluster fixture). _Review note:_ this branch is based on #7467, so the diff currently also shows the fixture commits; once #7467 merges I'll rebase and only the P1-2 files remain. The P1-2 change itself is
test/util/framework/shared_cluster_guard.go(new guarded-negative-write borrow mode) +test/e2e/cluster_update_immutable_reject.go.Behavior
Borrows the shared fixture cluster and attempts to PATCH an immutable field (
properties.dns.baseDomainPrefix) through the RP, asserting the RP rejects it with a typed HTTP 400InvalidRequestContent("field is immutable") targeting that field, and that the cluster is unchanged afterward (full before/after comparison, including read-only fields). Ported from the CS DNS-immutability rejection (test/arohcp/api/clusters_test.go— HTTP 400, "The attribute 'dns' can't be updated"), re-expressed through the RP 2024-06-10 API.New borrow mode (guarded-negative-write)
Adds the guarded-negative-write mode to the shared fixture: it serializes GET → PATCH → GET under a fixture-scoped lock, verifies the typed rejection and that state is unchanged, and quarantines the fixture on any violation (unexpected acceptance, wrong rejection, or changed state). Borrowers never register or delete the shared parent RG. (This mode is reused by the P1-3/P1-4 rejection borrowers that follow.)
Labels / selection
RequireSharedReadOnlyCluster,High,Negative,AroRpApiCompatible,MIContainers:0; notSlow. Selected by DEVrp-api-compat-all/parallel(verified with the compiled runner).Tracking
Same E2E coverage-migration series as #7421 / #7467 — no single tracking ticket; rationale per
CONTRIBUTING.md§4 (explained here and in the sibling PRs).Validation
make lint0 issues;go build ./...;go vet ./test/...;make -C test; regenerated suite-listing fixtures +go test ./test/cmd/aro-hcp-tests/...; framework unit tests (rejection validation, unchanged-state enforcement, quarantine, serialization, cancellation, missing/stale manifest). The live Azure path runs in CI.---
AI-generated. Review for accuracy.
@zgalor requested from Slack