Skip to content

test(archera): extend federation handler matrix to CLI/ARM (closes #316)#890

Open
cristim wants to merge 1 commit into
feat/multicloud-web-frontendfrom
fix/316-wave22
Open

test(archera): extend federation handler matrix to CLI/ARM (closes #316)#890
cristim wants to merge 1 commit into
feat/multicloud-web-frontendfrom
fix/316-wave22

Conversation

@cristim
Copy link
Copy Markdown
Member

@cristim cristim commented May 30, 2026

Summary

  • Add TestGetFederationIaC_CLIMatrix: table-driven test over all 8 CLI target/source combos asserting content-type, no ContentEncoding (single-file shape), bash shebang, canonical purchase+read actions for AWS-target, Archera default-off, and PII guard (email not leaked outside CONTACT_EMAIL assignment)
  • Add TestGetFederationIaC_ARMMatrix: ARM render coverage for source=aws and source=gcp, asserting ARM JSON schema validity, parameters/resources/outputs structure, Reservation Purchaser role definition ID, no Archera references in any artifact
  • Add TestGetFederationIaC_SingleFileRenderShape: invariant that CLI renders produce plain text with no base64/ContentEncoding
  • Add TestGetFederationIaC_CLIArcheraDefaultOff: dedicated regression guard for all 5 CLI formats

Test plan

  • go test ./internal/api/... -run TestGetFederationIaC_CLIMatrix - 8 sub-cases pass
  • go test ./internal/api/... -run TestGetFederationIaC_ARMMatrix - 2 sub-cases pass
  • go test ./internal/api/... -run TestGetFederationIaC_SingleFileRenderShape - passes
  • go test ./internal/api/... -run TestGetFederationIaC_CLIArcheraDefaultOff - 5 sub-cases pass
  • go test ./internal/api/... - all 1374 tests pass (no regressions)

Add table-driven test matrix for all CLI target/source combinations,
ARM renders across source-cloud variants, single-file render shape
invariants, and a dedicated Archera default-off regression guard.

New tests:
- TestGetFederationIaC_CLIMatrix: 8 target/source cases verifying
  content-type (text/x-shellscript), no ContentEncoding, bash shebang,
  canonical purchase+read actions for AWS-target, and no PII outside
  CONTACT_EMAIL assignment.
- TestGetFederationIaC_ARMMatrix: 2 source variants verifying ARM JSON
  schema, parameters/resources/outputs structure, Reservation Purchaser
  role definition ID, no Archera references.
- TestGetFederationIaC_SingleFileRenderShape: invariant that CLI renders
  are plain text with no base64 encoding.
- TestGetFederationIaC_CLIArcheraDefaultOff: dedicated regression guard
  asserting Archera is absent from all 5 CLI formats by default.
@cristim cristim added triaged Item has been triaged priority/p3 Polish / idea / may never ship urgency/eventually No deadline impact/internal Team-internal only effort/m Days type/chore Maintenance / non-user-visible labels May 30, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 30, 2026

Warning

Review limit reached

@cristim, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 15 minutes and 35 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 9ba05f27-5ab0-405f-901e-5ec0fc38049b

📥 Commits

Reviewing files that changed from the base of the PR and between 4956d66 and f2c513a.

📒 Files selected for processing (1)
  • internal/api/handler_federation_test.go
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/316-wave22

Comment @coderabbitai help to get the list of available commands and usage tips.

@cristim
Copy link
Copy Markdown
Member Author

cristim commented May 30, 2026

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 30, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/m Days impact/internal Team-internal only priority/p3 Polish / idea / may never ship triaged Item has been triaged type/chore Maintenance / non-user-visible urgency/eventually No deadline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant