Skip to content

Add unit test for vulnerability severities count query

Savas Vedova requested to merge 328254-add-tests-for-count-list into master

What does this MR do?

During recent changes we have introduced a regression which displayed the vulnerability severities count as 0 at all times. !59680 (merged) fixed this behaviour however due to the urgency of the matter unit tests were skipped. This MR adds the missing tests for this behaviour.

Screenshots (strongly suggested)

There are no visual changes.

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 #328254 (closed)

Merge request reports