haufe-axera-api-client
v0.0.1-c4b110b
Published
Tests can be run using `npm test`
Downloads
8
Readme
Haufe.AxeraApi.Client.JS
Testing
Tests can be run using npm test
Prerequisites
- Valid Ocp-Apim-Subscription-Key -
getOcpApimSubscriptionKey()
in fixtures.js - The domain to be used in license activation tests -
getDomainName()
in fixtures.js - Inactive license number to be activated as part of license activation tests -
getLicenseNumberToBeActivated()
in fixtures.js - LicenseIndicatorHash of a deactivated license -
getDeactivatedLicenseIndicatorHash()
in fixtures.js - Active license number -
getActiveLicenseNumber()
in fixtures.js - Active license and active counterpart license to be used in end-to-end tests - ActiveLicense.json and ActiveCounterpartLicense.json. The files should contain the decrypted data from the license activation call + the decrypted kek, i.e. it should be serialized LicenseInfo instance.
Notes
The license activation integration test requires license "reset" (deactivation of the license with license number from getLicenseNumberToBeActivated()) after every test run due to the nature of the test. If the license can be deactivated though an API call this requirement can be removed with a test cleanup deactivating the license.