And I add access role "test_role" to user "user1" | 0 ms | Passed |
And I add credentials | 1 ms | Passed |
And I configure user service | 0 ms | Passed |
And I create endpoint with schema "endpoint1", 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 the access info entity | 0 ms | Passed |
And I create the following role | 0 ms | Passed |
And I create the following role permissions | 0 ms | Passed |
And I create user with name "user1" | 0 ms | Passed |
And I delete the endpoint with schema "endpoint1", domain "com" and port 8000 | 0 ms | Passed |
And I delete the last created role permissions | 0 ms | Passed |
And I expect the exception "SubjectUnauthorizedException" with the text "Missing permission: endpoint_info:read:" | 0 ms | Passed |
And I logout | 0 ms | Passed |
And I logout | 0 ms | Passed |
And I logout | 0 ms | Passed |
And I logout | 0 ms | Passed |
And I select the domain "endpoint_info" | 0 ms | Passed |
And I try to find endpoint with schema "endpoint1", domain "com" and port 8000 | 0 ms | Passed |
And I try to find endpoint with schema "endpoint1", domain "com" and port 8000 | 0 ms | Passed |
And Scope with ID 1 | 0 ms | Passed |
Given I login as user with name "kapua-sys" and password "kapua-password" | 0 ms | Passed |
Given I login as user with name "kapua-sys" and password "kapua-password" | 0 ms | Passed |
Given I login as user with name "user1" and password "User@10031995" | 0 ms | Passed |
Scenario: Add endpoint_info permissions to the role | 11 ms | Passed |
Then An exception was thrown | 0 ms | Passed |
Then An exception was thrown | 0 ms | Passed |
Then An exception was thrown | 0 ms | Passed |
Then I login as user with name "user1" and password "User@10031995" | 0 ms | Passed |
Then No exception was thrown | 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 |