Cover the Orbit promo add-on in an offline cloud license
What does this MR do and why?
On an offline instance, Orbit entitlement depends on one provisioned orbit_promo add-on purchase, because the trial path is online only. The offline license path that writes it had no spec for that add-on. For an offline cloud license the worker spec covers Duo Pro only, and the Orbit promo specs cover online and legacy licenses.
This adds one context to the OfflineCloudLicenseProvisionWorker spec. With an offline cloud license:
- the add-on creates the purchase, and the instance is entitled to Orbit
- a license without the add-on creates none
- an expired add-on creates none
- a later license that drops the add-on expires the existing purchase
Specs only, no application code changes.
flowchart LR
A[Offline cloud license] --> B[OfflineCloudLicenseProvisionWorker]
B --> F[ProvisionServices::AddOns]
F --> C[ProvisionServices::OrbitPromo]
C --> D[orbit_promo AddOnPurchase]
D --> E[Instance entitled to Orbit]References
- Orbit promo from the license: !259638 (merged)
- Orbit promo from legacy licenses: !266198 (merged)
- Offline provisioning worker: !252164 (merged)
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist.
An AI coding assistant wrote this change. The assistant also ran the worker spec (25 examples, 0 failures) and RuboCop on the changed file, and confirmed that each new example fails when the production code it covers is changed.