aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorSergio Bertolin <sbertolin@solidgear.es>2015-12-02 11:44:03 +0000
committerSergio Bertolin <sbertolin@solidgear.es>2015-12-10 08:10:23 +0000
commite72955c65d82cd30b63b116eebd19639b4de496e (patch)
treeb26cd56d343ef00b57d9b23a777b1ba1fb18be4a /build
parent078ca149b595dd521339d4dcafbd1d8a6d2c1131 (diff)
downloadnextcloud-server-e72955c65d82cd30b63b116eebd19639b4de496e.tar.gz
nextcloud-server-e72955c65d82cd30b63b116eebd19639b4de496e.zip
Added shared by multiple channels test
* Small changes plus check of the file using propfind * Restaured line removed accidentally
Diffstat (limited to 'build')
-rw-r--r--build/integration/features/bootstrap/WebDav.php12
-rw-r--r--build/integration/features/sharing-v1.feature20
2 files changed, 32 insertions, 0 deletions
diff --git a/build/integration/features/bootstrap/WebDav.php b/build/integration/features/bootstrap/WebDav.php
index a682467f52d..37e8e4ec474 100644
--- a/build/integration/features/bootstrap/WebDav.php
+++ b/build/integration/features/bootstrap/WebDav.php
@@ -153,5 +153,17 @@ trait WebDav{
}
}
+ /**
+ * @Given User :user created a folder :destination
+ */
+ public function userCreatedAFolder($user, $destination){
+ try {
+ $this->response = $this->makeDavRequest($user, "MKCOL", $destination, []);
+ } catch (\GuzzleHttp\Exception\ServerException $e) {
+ // 4xx and 5xx responses cause an exception
+ $this->response = $e->getResponse();
+ }
+ }
+
}
diff --git a/build/integration/features/sharing-v1.feature b/build/integration/features/sharing-v1.feature
index e00fd47baeb..15db0b461b4 100644
--- a/build/integration/features/sharing-v1.feature
+++ b/build/integration/features/sharing-v1.feature
@@ -379,6 +379,26 @@ Feature: sharing
| /CHILD/child.txt |
And the HTTP status code should be "200"
+ Scenario: Share a file by multiple channels
+ Given As an "admin"
+ And user "user0" exists
+ And user "user1" exists
+ And user "user2" exists
+ And group "group0" exists
+ And user "user1" belongs to group "group0"
+ And user "user2" belongs to group "group0"
+ And user "user0" created a folder "/common"
+ And user "user0" created a folder "/common/sub"
+ And file "common" of user "user0" is shared with group "group0"
+ And file "textfile0.txt" of user "user1" is shared with user "user2"
+ And User "user1" moved file "/textfile0.txt" to "/common/textfile0.txt"
+ And User "user1" moved file "/common/textfile0.txt" to "/common/sub/textfile0.txt"
+ And As an "user2"
+ When Downloading file "/common/sub/textfile0.txt" with range "bytes=9-17"
+ Then Downloaded content should be "test text"
+ And user "user2" should see following elements
+ | /common/sub/textfile0.txt |
+
Scenario: Delete all group shares
Given As an "admin"
And user "user0" exists