Dont send credentials with anonymous user role in specs
What does this MR do and why?
The NPM specs go through the cases where anonymous
user role is used but the response code is not the expected one. As such, we shouldn't send credentials for anonymous
.
How to set up and validate locally
The changes are related to NPM dist-tags
endpoints, so the specs can be run locally through:
$ bundle exec rspec spec/requests/api/npm_project_packages_spec.rb
$ bundle exec rspec spec/requests/api/npm_instance_packages_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.
Related to #384910 (closed)
Edited by Moaz Khalifa