Improve shared examples for api admin mode
What does this MR do and why?
Improves shared examples for api admin mode + adjust all tests to it
For further context: !111785 (comment 1286570170)
How to set up and validate locally
Run this test:
spec/requests/api/appearance_spec.rb
spec/requests/api/applications_spec.rb
spec/requests/api/admin/instance_clusters_spec.rb
spec/requests/api/admin/plan_limits_spec.rb
spec/requests/api/admin/ci/variables_spec.rb
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.