Protected packages: Consolidate tests for CheckRuleExistenceService

What does this MR do and why?

refactor: Consolidate tests for CheckRuleExistenceService

In order to optimze test performance, I noticed that it is possible to consolidate the tests regarding deploy tokens into one test table.

Changelog: other

🛠️ with ❤️ at Siemens

References

Screenshots or screen recordings

How to set up and validate locally

  1. Run the test
bundle exec rspec spec/services/packages/protection/check_rule_existence_service_spec.rb

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

MR Checklist (@gerardo-navarro)

Related to #323972

Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading