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 an account with name "SubAccount", organization name "organization" and email adress "organization@gmail.com" | 0 ms | Passed |
And I create endpoint with schema "TestEndpoint", domain "com" and port 8000 | 0 ms | Passed |
And I create endpoint with schema "endpoint2", domain "dns" and port 20000 | 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 endpoint with schema "TestEndpoint", domain "com" and port 8000 | 0 ms | Passed |
And I find account with name "SubAccount" | 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 "endpoint_info" | 0 ms | Passed |
And I try to find endpoint with schema "TestEndpoint", domain "com" and port 8000 | 0 ms | Passed |
And I try to find role with name "Role1" in account "SubAccount" | 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 Endpoint_info permissions to the role in child account | 9 ms | Passed |
Then An exception was thrown | 0 ms | Passed |
Then An exception was thrown | 0 ms | Passed |
Then No exception was thrown | 0 ms | Passed |
Then Role with name "Role1" in account "SubAccount" is found | 0 ms | Passed |
When I expect the exception "SubjectUnauthorizedException" with the text "Missing permission: endpoint_info:delete:" | 0 ms | Passed |
When I expect the exception "SubjectUnauthorizedException" with the text "Missing permission: endpoint_info:write:" | 0 ms | Passed |