Skip to content

Commit

Permalink
[test-only] personal space is deleted after a user is deleted test (#…
Browse files Browse the repository at this point in the history
…6642)

* ensure that personal space is deleted after deliting user

* add test with accepted share

* fix after review

* Update deleteUser.feature
  • Loading branch information
ScharfViktor authored Jun 28, 2023
1 parent 4991e47 commit ef7ff6e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/acceptance/features/apiGraph/deleteUser.feature
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,26 @@ Feature: delete user
| User Light | User |
| User Light | User Light |
| User Light | Admin |


Scenario: personal space is deleted automatically when the user is deleted
Given the administrator has assigned the role "Admin" to user "Alice" using the Graph API
And user "Brian" has been created with default attributes and without skeleton files
When the user "Alice" deletes a user "Brian" using the Graph API
Then the HTTP status code should be "204"
When user "Alice" lists all spaces via the GraphApi with query "$filter=driveType eq 'personal'"
Then the json responded should not contain a space with name "Brian Murphy"


Scenario: accepted share is deleted automatically when the user is deleted
Given the administrator has assigned the role "Admin" to user "Alice" using the Graph API
And user "Brian" has been created with default attributes and without skeleton files
And user "Brian" has created a folder "new" in space "Brian Murphy"
And user "Brian" has created a share inside of space "Brian Murphy" with settings:
| path | new |
| shareWith | Alice |
| role | viewer |
And user "Alice" has accepted share "/new" offered by user "Brian"
When the user "Alice" deletes a user "Brian" using the Graph API
Then the HTTP status code should be "204"
And as "Alice" folder "Shares/new" should not exist

0 comments on commit ef7ff6e

Please sign in to comment.