Details
-
Technical task
-
Resolution: Done
-
Not Evaluated
-
None
-
None
-
None
Description
This test case assumes that
- The installation is done in prior.
- License server started with environment variable ACCESS_CONTROL=yes
The content for ACL file regarding access control feature for testing:
{ "accessControl": { "licenses": [ { "licenseNumber": "11223350", "effect": "allow", "users": ["test-machine1"] } ] } }
The content in 'users' array should be populated with the id of the logged in user from test machine (same value which QStandardPaths will pick up from the machine) for example. "test-machine1"
First test branch:
Open Creator/Design Studio as "test-machine1"
Check that "Expires=<expirydate>" is found from qtlicenses.ini after successful opening of QtCreator/Design Studio.
Second test branch:
Modify the 'users' value in ACL to contain some random usernames, but not the one on the machine doing testing. E.g. 'users': ["somerandomusernow"]
Open Creator/Design Studio.
Check that the tool will not open, the dialog will announce something like "
User not allowed for this license"
Check that "Expires=<expirydate>" is NOT found from qtlicenses.ini afterwards.