License.manage.spec.ts/StripeAPI.ts
- Test updated and now successfully updates from Free plan to premium
- createCheckoutSession updated to support this plan upgrade
This test retrieves plans, creates checkout session, and updates license
Essential changes have been made to linkStripeCustomer & updatePlan functions to support the test
Modified "test:self:ci" to include 'licensing' instead of 'license'
Modified environment.ts to include STRIPE_SECRET_KEY
I have removed the end of the test which was to 'Verify user downgraded to free license'
- This is not needed
I have also updated getLicenseKey - specifically how it handles the expected 200 response
There are two test files, license.activate.spec.ts and license.manage.spec.ts
These test files each contain a test:
- Creates, activates, and deletes an online license for a self hosted account - license.activate.spec.ts
- Retrieves plans, creates checkout session, and updates license - license.manage.spec.ts
Updated and created API files
- StripeAPI
- LicenseAPI
- internal-api LicenseAPI
- index & AccountInternalAPI also updated to reflect API file changes
* qa-core-ci-fixes
* global setup and teardown wip
* Updates to logs and setup
* Remove date and console mocking
* Update CI to spin up minimal dev env
* Update readme
* Fix scopeBackend.sh
* Ensure docker services are initialised before starting worker
* Lint
* Fix admin user being created on startup (#10219)
* use regular bootstrap and build
* Lint
* Temp: re-use global setup to get around app limit in QA