Skip to content

Simplify instance_review_permitted? spec

What does this MR do?

Simplifies the ApplicationSetting#instance_review_permitted? spec (not to be confused with the ApplicationHelper#instance_review_permitted? spec that I also recently added) and also makes that spec a bit more robust by testing a third case and becoming less brittle by removing a hard-coded magic number.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team

Related to #231512 (closed)

Merge request reports