Test Result : Scenario: Add endpoint_info permissions to the role

0 failures
31 tests
Took 12 ms.

All Tests

Test nameDurationStatus
And I add access role "test_role" to user "user1"0 msPassed
And I add credentials1 msPassed
And I configure user service0 msPassed
And I create endpoint with schema "endpoint1", domain "com" and port 80000 msPassed
And I create endpoint with schema "endpoint2", domain "dns" and port 200000 msPassed
And I create the access info entity0 msPassed
And I create the following role0 msPassed
And I create the following role permissions0 msPassed
And I create user with name "user1"0 msPassed
And I delete the endpoint with schema "endpoint1", domain "com" and port 80000 msPassed
And I delete the last created role permissions0 msPassed
And I expect the exception "SubjectUnauthorizedException" with the text "Missing permission: endpoint_info:read:"0 msPassed
And I logout0 msPassed
And I logout0 msPassed
And I logout0 msPassed
And I logout0 msPassed
And I select the domain "endpoint_info"0 msPassed
And I try to find endpoint with schema "endpoint1", domain "com" and port 80000 msPassed
And I try to find endpoint with schema "endpoint1", domain "com" and port 80000 msPassed
And Scope with ID 10 msPassed
Given I login as user with name "kapua-sys" and password "kapua-password"0 msPassed
Given I login as user with name "kapua-sys" and password "kapua-password"0 msPassed
Given I login as user with name "user1" and password "User@10031995"0 msPassed
Scenario: Add endpoint_info permissions to the role11 msPassed
Then An exception was thrown0 msPassed
Then An exception was thrown0 msPassed
Then An exception was thrown0 msPassed
Then I login as user with name "user1" and password "User@10031995"0 msPassed
Then No exception was thrown0 msPassed
When I expect the exception "SubjectUnauthorizedException" with the text "Missing permission: endpoint_info:delete:"0 msPassed
When I expect the exception "SubjectUnauthorizedException" with the text "Missing permission: endpoint_info:write:"0 msPassed