[tests-only][full-ci]Extend tests coverage for different role capability for group (#5742)
* Extend tests coverage for different role capability for group * Remove unwanted scenario * Change http status code
This commit is contained in:
@@ -157,15 +157,21 @@ Feature: remove a user from a group
|
||||
Then the HTTP status code should be "404"
|
||||
|
||||
|
||||
Scenario: normal user tries to remove a user in their group
|
||||
Scenario Outline: user other than the admin can't remove a user from their group
|
||||
Given user "Brian" has been created with default attributes and without skeleton files
|
||||
And the administrator has given "Brian" the role "<role>" using the settings api
|
||||
And group "grp1" has been created
|
||||
And user "Alice" has been added to group "grp1"
|
||||
And user "Brian" has been added to group "grp1"
|
||||
When user "Alice" tries to remove user "Brian" from group "grp1" using the Graph API
|
||||
Then the HTTP status code should be "401"
|
||||
Then the HTTP status code should be "403"
|
||||
And the last response should be an unauthorized response
|
||||
And user "Brian" should belong to group "grp1"
|
||||
Examples:
|
||||
| role |
|
||||
| Space Admin |
|
||||
| User |
|
||||
| Guest |
|
||||
|
||||
|
||||
Scenario: admin removes a disabled user from a group
|
||||
|
||||
Reference in New Issue
Block a user