Adjust tests to api admin mode (7)
What does this MR do and why?
Adjusts test to api admin mode
I left some comments in code where I need help. Look for # why does this work without admin_mode?
How to set up and validate locally
bin/rspec spec/requests/api/snippet_repository_storage_moves_spec.rb
bin/rspec spec/requests/api/snippets_spec.rb
bin/rspec spec/requests/api/statistics_spec.rb
bin/rspec spec/requests/api/system_hooks_spec.rb
bin/rspec spec/requests/api/topics_spec.rb
bin/rspec spec/requests/api/usage_data_non_sql_metrics_spec.rb
bin/rspec spec/requests/api/usage_data_queries_spec.rb
bin/rspec spec/requests/api/users_spec.rb
bin/rspec spec/requests/api/v3/github_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.