diff --git a/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md b/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md index 4ac319d5da8..fcd070e200f 100644 --- a/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md +++ b/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md @@ -93,3 +93,7 @@ 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) +- [apiSpaces/listSpaces.feature:156](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpaces/listSpaces.feature#L156) diff --git a/tests/acceptance/features/apiSpaces/listSpaces.feature b/tests/acceptance/features/apiSpaces/listSpaces.feature index 3d430742010..f29bf48f2b4 100644 --- a/tests/acceptance/features/apiSpaces/listSpaces.feature +++ b/tests/acceptance/features/apiSpaces/listSpaces.feature @@ -131,3 +131,43 @@ Feature: List and create spaces | name | Project Venus | | quota@@@total | 2000 | | root@@@webDavUrl | %base_url%/dav/spaces/%space_id% | + + + Scenario: A project space owner should always be one of the space managers + 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 + 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: + | key | value | + | driveType | project | + | name | Project Venus | + | owner@@@user@@@id | %user_id% | + When user "Alice" shares a space "Project Venus" to user "Brian" with role "manager" + And 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% | + + + Scenario: The project space owner changes when old owner's role is reduced + 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 + 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: + | key | value | + | driveType | project | + | name | Project Venus | + | owner@@@user@@@id | %user_id% | + When user "Alice" shares a space "Project Venus" to user "Brian" with role "manager" + And user "Brian" updates the space "Project Venus" for user "Alice" changing the role to "editor" + 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% |