Adjust tests to api admin mode (1)
What does this MR do and why?
Adjusts all tests from /spec/requests/api/admin/
for api admin mode
.
Note: also added one test from /spec/frontend/fixtures
as it was the only one in this directory.
Adjusted shared_examples
from !111198 (merged) so that the success code for the 'DELETE' http method can be set dynamicly. (needed in spec/requests/api/admin/sidekiq_spec.rb
)
This MR is a follow up of !108690 (merged) and !111198 (merged)
How to set up and validate locally
- Run
bin/rspec spec/requests/api/admin/batched_background_migrations_spec.rb
- Run
bin/rspec spec/requests/api/admin/ci/variables_spec.rb
- Run
bin/rspec spec/requests/api/admin/instance_clusters_spec.rb
- Run
bin/rspec spec/requests/api/admin/plan_limits_spec.rb
- Run
bin/rspec /spec/requests/api/admin/sidekiq_spec.rb
- Run
bin/rspec spec/frontend/fixtures/api_deploy_keys.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.
Edited by Andreas Deicha