Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[test-only] ApiTest. checking the owner of the project space #5342

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,6 @@ The expected failures in this file are from features in the owncloud/ocis repo.

#### [A User can get information of another user with Graph API](https://github.com/owncloud/ocis/issues/5125)
- [apiGraph/getUser.feature:23](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiGraph/getUser.feature#L23)

#### [Project Space has owner](https://github.com/owncloud/ocis/issues/4419)
- [apiSpaces/listSpaces.feature:136](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpaces/listSpaces.feature#L136)
20 changes: 20 additions & 0 deletions tests/acceptance/features/apiSpaces/listSpaces.feature
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,23 @@ Feature: List and create spaces
| name | Project Venus |
| quota@@@total | 2000 |
| root@@@webDavUrl | %base_url%/dav/spaces/%space_id% |


Scenario: The owner of the project space should be who created space or manager if the creater leaved project space
ScharfViktor marked this conversation as resolved.
Show resolved Hide resolved
Given the administrator has given "Alice" the role "Space Admin" using the settings api
And user "Brian" has been created with default attributes and without skeleton files
And user "Alice" has created a space "Project Venus" with the default quota using the GraphApi
And user "Alice" has shared a space "Project Venus" to user "Brian" with role "manager"
When user "Alice" lists all available spaces via the GraphApi with query "$filter=driveType eq 'project'"
Then the json responded should contain a space "Project Venus" owned by "Alice" with these key and value pairs:
ScharfViktor marked this conversation as resolved.
Show resolved Hide resolved
| key | value |
| driveType | project |
| name | Project Venus |
| owner@@@user@@@id | %user_id% |
When user "Alice" unshares a space "Project Venus" to user "Alice"
And user "Brian" lists all available spaces via the GraphApi with query "$filter=driveType eq 'project'"
Then the json responded should contain a space "Project Venus" owned by "Brian" with these key and value pairs:
| key | value |
| driveType | project |
| name | Project Venus |
| owner@@@user@@@id | %user_id% |