Share Artifact Registry fixture setup

What does this MR do and why?

Extract the repeated Artifact Registry API URL and token-exchange stubs into a shared context used by the nine frontend fixture generators. Keep the resolved-handle context, fixture-specific HTTP stubs, queries, and expected responses unchanged.

Validation:

  • Locked RuboCop 1.81.7 and gitlab-styles 14.1.0: 10 files, no offenses.
  • Ruby syntax checks pass on all 10 files.
  • Expanding the shared setup produces the same normalized Ruby AST as the original in all nine generators.
  • Full fixture regeneration was not run locally because the GitLab application bundle is unavailable.

References

Closes #634501 (closed)

Follow-up to !259614 (comment 4040793840)

Screenshots or screen recordings

Not applicable to this test setup refactor.

How to set up and validate locally

No application setup is required to review this change. Compare each generator's included contexts and remaining HTTP stubs with the shared setup. The fixture queries and expected responses are unchanged.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist.

  • Test-only change; no changelog entry is required.
  • Ruby lint, syntax, and extraction equivalence checks pass.
  • CI still needs to verify fixture generation.

Merge request reports

Loading
Loading