And I add access role "Role1" to user "SubUser" in account "SubAccount" | 0 ms | Passed |
And I add credentials | 0 ms | Passed |
And I configure user service | 0 ms | Passed |
And I count 3 | 0 ms | Passed |
And I create a device with name "TestDevice" | 0 ms | Passed |
And I create an account with name "SubAccount", organization name "organization" and email adress "organization@gmail.com" | 0 ms | Passed |
And I create role "Role1" in account "SubAccount" | 0 ms | Passed |
And I create the access info entity in account "SubAccount" | 0 ms | Passed |
And I create the following role permissions in account "SubAccount" | 0 ms | Passed |
And I create user with name "SubUser" in account "SubAccount" | 0 ms | Passed |
And I delete the device with the clientId "TestDevice" | 0 ms | Passed |
And I find account with name "SubAccount" | 0 ms | Passed |
And I find device with clientId "TestDevice" | 0 ms | Passed |
And I login as user with name "SubUser" and password "User@10031995" | 0 ms | Passed |
And I logout | 0 ms | Passed |
And I logout | 0 ms | Passed |
And I search for the permissions of found role "Role1" in account "SubAccount" | 0 ms | Passed |
And I select the domain "device" | 0 ms | Passed |
And I try to edit device to clientId "TestDevice1" | 0 ms | Passed |
And I try to find role with name "Role1" in account "SubAccount" | 0 ms | Passed |
And No exception was thrown | 0 ms | Passed |
And Scope with ID 1 | 0 ms | Passed |
And The account with name "kapua-sys" has 1 subaccount | 0 ms | Passed |
Given I login as user with name "kapua-sys" and password "kapua-password" | 0 ms | Passed |
Scenario: Add device permissions to the role in child account | 10 ms | Passed |
Then Role with name "Role1" in account "SubAccount" is found | 0 ms | Passed |