Skip to content

Dont send credentials with anonymous user role in specs

Moaz Khalifa requested to merge 384910-Fix-NPM-specs into master

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.

Related to #384910 (closed)

Edited by Moaz Khalifa

Merge request reports