From e3180fc4fd9343fbaf5e22c03d2a6028bc44ccaf Mon Sep 17 00:00:00 2001 From: Viktor Scharf Date: Mon, 11 Jul 2022 09:14:50 +0200 Subject: [PATCH] ApiTest. owner does not see the space after deleting the access (#4143) * owner has not access to the space after removing access --- ...expected-failures-localAPI-on-OCIS-storage.md | 4 ++++ .../features/apiSpaces/shareSpaces.feature | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md b/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md index a636c8ba43..585034e004 100644 --- a/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md +++ b/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md @@ -21,3 +21,7 @@ The expected failures in this file are from features in the owncloud/ocis repo. ### [Search by shares jail works incorrect](https://github.com/owncloud/ocis/issues/4014) - [apiSpaces/search.feature:43](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpaces/search.feature#L43) + +### [Space Admin still has access to the project despite being removed from it](https://github.com/owncloud/ocis/issues/4127) +- [apiSpaces/shareSpaces.feature:77](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpaces/shareSpaces.feature#L77) +- [apiSpaces/shareSpaces.feature:78](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpaces/shareSpaces.feature#L78) diff --git a/tests/acceptance/features/apiSpaces/shareSpaces.feature b/tests/acceptance/features/apiSpaces/shareSpaces.feature index 6393c61ace..176423df0f 100644 --- a/tests/acceptance/features/apiSpaces/shareSpaces.feature +++ b/tests/acceptance/features/apiSpaces/shareSpaces.feature @@ -62,6 +62,22 @@ Feature: Share spaces Then the user "Brian" should not have a space called "share space" + Scenario Outline: Owner of a space cannot see the space after removing his access to the space + Given user "Alice" has shared a space "share space" to user "Brian" with role "manager" + When user "" unshares a space "share space" to user "Alice" + Then the HTTP status code should be "200" + And the user "Brian" should have a space called "share space" owned by "Alice" with these key and value pairs: + | key | value | + | driveType | project | + | id | %space_id% | + | name | share space | + But the user "Alice" should not have a space called "share space" + Examples: + | user | + | Alice | + | Brian | + + Scenario: A user can add another user to the space managers to enable him Given user "Alice" has uploaded a file inside space "share space" with content "Test" to "test.txt" When user "Alice" shares a space "share space" to user "Brian" with role "manager"