-
Story
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
None
-
False
-
-
False
-
-
a small step towards HAC-394 and HAC-4762.
Overall desire to align with backend api properties and values.
The v1 wizard component BillingModelSection can set billing_model field to value 'standard-trial', which is not a real billing model. We have several ugly kludges translating that to billing_model 'standard' and product 'OSDTrial'.
AFAICT it's all dead code and can be exorcised.
EDIT: v2 wizard BillingModel.tsx also uses billingModels.STANDARD_TRIAL
Implementation Details
- standardize and normalize the usage of 'billing model' and 'product' in the v2 OSD wizard.
- Billing Models: standard, marketplace
- Product: osd, osd-trial
- Marketplace: Red Hat, Google Marketpace
QE: Areas to test for regressions
From user with quota for both OSD & OSDTrial:
- Clusters > Create > OSD "Create Cluster" button
- Inside wizard check that Subscription type defaulted to "Annual"
- Switch Infrastructure type to "Red Hat cloud account"
- Switch Subscription type to "Free trial"
- Check "Red Hat cloud account" got disabled and CCS was automatically chosen.
- complete wizard, check that Review screen shows "Free trial" and an OSDTrial cluster actually gets created.
- Clusters > Create > OSDTrial "Create Trial Cluster" button
- Inside wizard check that Subscription type defaulted to "Free Trial"
- Check that Infrastructure type defaults to CCS and "Red Hat cloud account" option is disabled
- Switch Subscription type to to "Annual"
- Check that Infrastructure type "Red Hat cloud account" became available (but CCS remains chosen)
- complete wizard, check that Review screen shows "Annual" and an OSD cluster actually gets created.