How To Run Tests
In addition to the provided samples, there are also tests written in the repository. These tests work similarly to the samples but automatically verify the correct behavior of the SDK using the testing package.
Create a test license
Create a license with product code test.
This license must support:
Online activation
Consumption
Borrowing
Floating cloud
It must have available floating slots and consumption units
It must also include a feature with:
Floating cloud consumption
Feature code:
testFeatureAvailable floating slots and consumption units
Configure config.yaml
To run the tests correctly, you must configure your config.yaml file properly by providing the necessary credentials and license details.
clientId: "your-client-id"
clientSecret: "your-client-secret"
cryptoProviderKey: "your-crypto-provider-key" # Required if using OAuth
apiKey: "your-api-key"
sharedKey: "your-shared-key"
verbose: true
verify_signature: true
products:
productCode1:
licenseKey: "your-license-key"
productCode2:
username: "your-username"
password: "your-password"Important: To run the tests correctly, you must configure your config.yaml file properly by providing the necessary credentials and license details (see the config.yaml example above).
Was this helpful?