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
Update package.json
- Updating "test:self:ci"
- Now includes license. Needed to prevent license tests from running where an account portal is not setup
Removing license.manage.spec.ts
- This will be included in another PR
- Work required to finish this test
- Removing so the license activation test can be merged
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
Including two more steps within this test.
- Verify the self response is unauthorized
- Verify the self response matches the account
This will cover the '/api/auth/self' endpoint
We use a randomly generated string for the accountId.
It would seem that when an accountId includes a percentage sign (%) at the end, that issues arise (400 returned instead of 404 in this case).
I have included a encodeURIComponent for the accountId after it has been generated
* 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