-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e3d3f9
commit 278e1d5
Showing
4 changed files
with
196 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@api | ||
Feature: assign role | ||
As an admin, I want to assign roles to users. | ||
I cannot change my own role. | ||
Users without an admin role cannot get the list of roles, assignments list and assign roles to users | ||
|
||
|
||
Scenario Outline: assign role to the user using graph api | ||
Given user "Alice" has been created with default attributes and without skeleton files | ||
And the administrator has given "Alice" the role "<userRole>" using the Graph API | ||
When the administrator retrieves "Alice" assigned role using the Graph API | ||
Then the HTTP status code should be "200" | ||
And the Graph API response should have the role "<userRole>" | ||
Examples: | ||
| userRole | | ||
| Admin | | ||
| Space Admin | | ||
| User | | ||
| Guest | | ||
|
||
|
||
Scenario Outline: assign role to the user with setting api and list role with graph api | ||
Given user "Alice" has been created with default attributes and without skeleton files | ||
And the administrator has given "Alice" the role "<userRole>" using the Graph API | ||
When user "Alice" tries to get list of assignment | ||
Then the HTTP status code should be "201" | ||
And the setting API response should have the role "<userRole>" | ||
Examples: | ||
| userRole | | ||
| Admin | | ||
| Space Admin | | ||
| User | | ||
| Guest | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters