Skip to content

Add spec for UsageMetricDefinitionGenerator file creation

What does this MR do?

In #300555 (closed) a consensus was reached that testing side effects of generators by using Thor API directly has the most value. We now have a reasonable spec suite for Gitlab::UsageMetricDefinitionGenerator, but it's still missing a general example for these side effects - this MR adds it and refactors the spec.

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

Edited by Piotr Skorupa

Merge request reports