Skip to content

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)

issue for context

FF :admin_mode_for_api

Read this to understand how the tests needs to be updated in order to work with the new feature admin mode for api

🛠 with at Siemens

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.

Merge request reports

Loading