[test-only] Api-test for sharing personal space (#6242)

This commit is contained in:
Viktor Scharf
2023-05-12 14:08:20 +05:45
committed by GitHub
parent 184647e30e
commit 67a9736b6c
7 changed files with 46 additions and 36 deletions
@@ -435,3 +435,30 @@ Feature: Share spaces
| manager |
| editor |
| viewer |
Scenario Outline: user cannot share the personal space to an other user
Given the administrator has given "Brian" the role "<role>" using the settings api
And user "Brian" shares a space "Brian Murphy" with settings:
| shareWith | Bob |
| role | viewer |
Then the HTTP status code should be "400"
And the OCS status message should be "can not add members to personal spaces"
And the user "Bob" should not have a space called "Brian Murphy"
Examples:
| role |
| Space Admin |
| Admin |
| User |
Scenario: user cannot share the personal space to a group
Given group "sales" has been created
And the administrator has added a user "Brian" to the group "sales" using GraphApi
And user "Alice" shares a space "Alice Hansen" with settings:
| shareWith | sales |
| shareType | 8 |
| role | manager |
Then the HTTP status code should be "400"
And the OCS status message should be "can not add members to personal spaces"
And the user "Brian" should not have a space called "Alice Hansen"