Upgrade legacy license doesn't generate proper subscription record in Gitlab instance
Bug
Noticed an e2e test failure in pipeline, seems to be related to enabling strict_cloud_licensing
feature flag on staging
Summary
Upgrade a legacy license from premium
to ultimate
and re-upload the license key to instance doesn't generate the subscription in correct tier.
Steps to reproduce
- create a subscription with
TurnOnCloudLicensing = No
- navigate to CDot and download the license key
- use the license key to activate a Gitlab instance
- navigate back to CDot subscription page, click
upgrade
button - finish the upgrade flow and verify the transaction went through
- go back to subscription page and re-download the license key
- re-upload license key to Gitlab instance, it generates a duplicate license record, instead of a new
ultimate
record👇 `
Expected behavior
- Current active plan should be
ultimate
- New
ultimate
subscription record should be generated in subscription table