2022-11-11 09:31:13 +05:45
|
|
|
Feature: create group
|
2023-04-17 17:05:12 +05:45
|
|
|
As an admin
|
|
|
|
|
I want to create a group
|
|
|
|
|
So that I can add users to the group
|
2022-11-11 09:31:13 +05:45
|
|
|
|
|
|
|
|
Background:
|
2024-11-29 09:39:21 +05:45
|
|
|
Given user "Alice" has been created with default attributes
|
2023-06-15 15:56:48 +02:00
|
|
|
And the administrator has assigned the role "Admin" to user "Alice" using the Graph API
|
2022-11-11 09:31:13 +05:45
|
|
|
|
|
|
|
|
|
|
|
|
|
Scenario Outline: admin user creates a group
|
2024-03-19 13:00:42 +05:45
|
|
|
When user "Alice" creates a group "<group>" using the Graph API
|
2023-11-15 17:45:23 +01:00
|
|
|
Then the HTTP status code should be "201"
|
2024-03-19 13:00:42 +05:45
|
|
|
And group "<group>" should exist
|
2022-11-11 09:31:13 +05:45
|
|
|
Examples:
|
2024-03-19 13:00:42 +05:45
|
|
|
| group |
|
|
|
|
|
| simplegroup |
|
|
|
|
|
| España§àôœ€ |
|
|
|
|
|
| नेपाली |
|
|
|
|
|
| $x<=>[y*z^2+1]! |
|
|
|
|
|
| 😅 😆 |
|
|
|
|
|
| comma,grp1 |
|
|
|
|
|
| Finance (NP) |
|
|
|
|
|
| slash\Middle |
|
2022-11-11 09:31:13 +05:45
|
|
|
|
2023-03-31 11:38:15 +02:00
|
|
|
@issue-3516
|
2022-11-11 09:31:13 +05:45
|
|
|
Scenario: admin user tries to create a group that already exists
|
|
|
|
|
Given group "mygroup" has been created
|
|
|
|
|
When user "Alice" tries to create a group "mygroup" using the Graph API
|
2023-06-15 16:55:53 +02:00
|
|
|
Then the HTTP status code should be "409"
|
2022-11-11 09:31:13 +05:45
|
|
|
And group "mygroup" should exist
|
|
|
|
|
|
2023-03-31 11:38:15 +02:00
|
|
|
@issue-5938
|
2023-03-28 09:09:37 +05:45
|
|
|
Scenario Outline: user other than the admin can't create a group
|
2024-11-29 09:39:21 +05:45
|
|
|
Given user "Brian" has been created with default attributes
|
2024-03-19 13:00:42 +05:45
|
|
|
And the administrator has assigned the role "<user-role>" to user "Brian" using the Graph API
|
2022-11-11 09:31:13 +05:45
|
|
|
When user "Brian" tries to create a group "mygroup" using the Graph API
|
2023-03-28 09:09:37 +05:45
|
|
|
Then the HTTP status code should be "403"
|
2022-11-15 20:56:43 +05:45
|
|
|
And group "mygroup" should not exist
|
2023-03-28 09:09:37 +05:45
|
|
|
Examples:
|
2024-03-19 13:00:42 +05:45
|
|
|
| user-role |
|
2023-03-28 09:09:37 +05:45
|
|
|
| Space Admin |
|
|
|
|
|
| User |
|
2023-06-06 16:03:43 +02:00
|
|
|
| User Light |
|
2022-11-15 20:56:43 +05:45
|
|
|
|
2023-03-28 09:09:37 +05:45
|
|
|
@issue-5050
|
2022-11-15 20:56:43 +05:45
|
|
|
Scenario: admin user tries to create a group that is the empty string
|
|
|
|
|
When user "Alice" tries to create a group "" using the Graph API
|
2023-03-07 14:36:04 +05:45
|
|
|
Then the HTTP status code should be "400"
|