From 863299a56db4550d7eed439c2a0086e16b9da5c6 Mon Sep 17 00:00:00 2001 From: Sergio Bertolin Date: Wed, 29 Mar 2017 15:02:31 +0000 Subject: [PATCH] Added test creating multiple links to a file --- tests/integration/features/sharing-v1.feature | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/tests/integration/features/sharing-v1.feature b/tests/integration/features/sharing-v1.feature index 9f15d2127d..a644b1ce82 100644 --- a/tests/integration/features/sharing-v1.feature +++ b/tests/integration/features/sharing-v1.feature @@ -1202,3 +1202,42 @@ Feature: sharing | /FOLDER | 15 | sharedlink2 | | /FOLDER | 15 | sharedlink1 | | /FOLDER | 1 | sharedlink3 | + + Scenario: Creating three public shares of a file + Given user "user0" exists + And As an "user0" + And creating a share with + | path | textfile0.txt | + | shareType | 3 | + | password | publicpw | + | expireDate | +3 days | + | permissions | 1 | + | name | sharedlink1 | + And the OCS status code should be "100" + And the HTTP status code should be "200" + And creating a share with + | path | textfile0.txt | + | shareType | 3 | + | password | publicpw | + | expireDate | +3 days | + | permissions | 1 | + | name | sharedlink2 | + And the OCS status code should be "100" + And the HTTP status code should be "200" + And creating a share with + | path | textfile0.txt | + | shareType | 3 | + | password | publicpw | + | expireDate | +3 days | + | permissions | 1 | + | name | sharedlink3 | + And the OCS status code should be "100" + And the HTTP status code should be "200" + When Updating last share with + | permissions | 1 | + Then the OCS status code should be "100" + And the HTTP status code should be "200" + And user "user0" checks public shares of file "/textfile0.txt" + | /textfile0.txt | 1 | sharedlink2 | + | /textfile0.txt | 1 | sharedlink1 | + | /textfile0.txt | 1 | sharedlink3 | -- GitLab