Make features spec compliant with admin mode
What does this MR do and why?
In this MR, I am ensuring that the file ee/spec/requests/api/features_spec.rb
is compliant with the api admin mode. While working on removing the FF, I realized that I had overlooked making the necessary adjustments to this file to ensure compliance with the new feature.
- I am adding
admin_mode: true
to the api calls - I am adding shared examples to check the access rights (
spec/support/shared_examples/requests/admin_mode_shared_examples.rb
)
Read this to understand how the tests needs to be updated in order to work with the new feature admin mode for api
How to set up and validate locally
- Run the test individually
- Run pipeline
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.