diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-07-06 12:49:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-06 12:49:30 +0200 |
commit | 21b5533b83352f7a1a2c4ed9359d0af80847d1b8 (patch) | |
tree | 8f2b31b6e47afcc4db1ce31ae570fcaab29abbff | |
parent | cf6fe95cbf2d031ecd1fba00280d6c3c428d1877 (diff) | |
parent | 17297d4db1159a68b2e6a07e4a8cf55b68352f8d (diff) | |
download | nextcloud-server-21b5533b83352f7a1a2c4ed9359d0af80847d1b8.tar.gz nextcloud-server-21b5533b83352f7a1a2c4ed9359d0af80847d1b8.zip |
Merge pull request #25361 from owncloud/sharing-inttestforusershareaftergroupshare
Add integration test for sharing with group, then user in group
-rw-r--r-- | build/integration/features/sharing-v1.feature | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/build/integration/features/sharing-v1.feature b/build/integration/features/sharing-v1.feature index 3878e741f60..18dc3447594 100644 --- a/build/integration/features/sharing-v1.feature +++ b/build/integration/features/sharing-v1.feature @@ -26,6 +26,21 @@ Feature: sharing Then the OCS status code should be "100" And the HTTP status code should be "200" + Scenario: Creating a new share with user who already received a share through their group + Given As an "admin" + And user "user0" exists + And user "user1" exists + And group "sharing-group" exists + And user "user1" belongs to group "sharing-group" + And file "welcome.txt" of user "user0" is shared with group "sharing-group" + And As an "user0" + Then sending "POST" to "/apps/files_sharing/api/v1/shares" with + | path | welcome.txt | + | shareWith | user1 | + | shareType | 0 | + Then the OCS status code should be "100" + And the HTTP status code should be "200" + Scenario: Creating a new public share Given user "user0" exists And As an "user0" |