Skip to content

Test(Subscription): activating second license

Michael Lunøe requested to merge 374938-mlunoe-show_activation_btn into master

What does this MR do and why?

Describe in detail what your merge request does and why.

Add a test to cover avtiving a second cloud license when one is already active. See more information here: !106492 (diffs, comment 1211264215)

Screenshots or screen recordings

Type Before After
Legacy license Screenshot_2023-05-01_at_13.06.49 Screenshot_2023-05-01_at_13.37.22
Offline Cloud .icense Screenshot_2023-05-01_at_13.07.12 Screenshot_2023-05-01_at_13.37.32
Online Cloud license Screenshot_2023-05-01_at_13.07.24 Screenshot_2023-05-01_at_13.37.38

How to set up and validate locally

  • Have CustomersDot set up and running with an active license
  • Navigate to /admin/subscription on GitLab
  • Link the subscription if one is not already linked
  • Verify that the activation code button shows regardless of license type
  • Verify that adding another activation code works without failures

As a workaround, I've added a patch, where you can "comment in" the license you need to test: test-different-licenses.patch

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #386050 (closed)

Edited by Michael Lunøe

Merge request reports