Group common virtual registry api shared examples

What does this MR do and why?

In the API specs we repeat a lot of the same blocks of shared examples to test when the virtual registry is not available.

This MR groups these into a common shared examples that can be reused for the container virtual registry and packages virtual registries.

The packages virtual registry shared example can be used for additional package types as we build them.

In addition, I also noticed that we're not checking setting enabled on the shared api setup for container registries. I've added this in here, the default setting for this is enabled to true. Existing tests and workflows will still pass.

References

!205070 (comment 2755195614)

Screenshots or screen recordings

n/a

How to set up and validate locally

  1. Existing specs to still pass.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #548155 (closed)

Edited by Fiona McCawley

Merge request reports

Loading