HodorNV / ALOps

ALOps
59 stars 24 forks source link

Ability to run tests with limited permissions #601

Closed TF-PDJ closed 1 year ago

TF-PDJ commented 1 year ago

We would like the ability to define a set of Permission Sets for the task ALOpsAppTest. The permission sets should be assigned to the current user and all other permission sets should be unassigned during the test. It could be defined like the "install_al_app_names" with a new property called "set_permissions_to" or simular.

The solution from Microsoft (Codeunits "Library - Lower Permissions" and "Permissions Mock") is still causing issues and is unlikely to be fixed for old versions of BC. We are therefor suggesting to solve it using actual assignment of permission sets using Power Shell before the test session is started, which should work for all BC versions.

The test tool requires certain permissions sets to function - 'TEST TOOL' and 'TEST RUNNER', I guess. You could add them automatically, or we could add them manually to each job for full flexibility.

TF-PDJ commented 1 year ago

Please forget this request - the test tool needs to be executed as SUPER.