Skip to content

Refactor Gitlab::License factory

Corinna Gogolok requested to merge refactor_gitlab_license_factory into master

What does this MR do and why?

Noticed while working on Remove true-up validation for cloud licenses (customers-gitlab-com#5483 - closed)

Prior to this change, the factories for Gitlab::License and License where defined in the same file (ee/spec/factories/licenses.rb).

This change moves the factory for Gitlab::License into its own file. Additionally, the default value for the plan is updated from the deprecated Starter plan to a Premium plan.

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.

How to set up and validate locally

A green test suite should be sufficient to verify this change.

Merge request reports