diff options
author | Sergio Bertolin <sbertolin@solidgear.es> | 2015-11-11 14:21:10 +0000 |
---|---|---|
committer | Sergio Bertolin <sbertolin@solidgear.es> | 2015-11-11 14:21:10 +0000 |
commit | 7aeda7c99a44b66ce122d6a24131648438d51d09 (patch) | |
tree | 5a549b241efb2328ef72fd82d5cbb02f9bd1aaba /build/integration/features/sharing-v1.feature | |
parent | 5dd59b4bd2712706a36639697531e73df5c9a3c2 (diff) | |
download | nextcloud-server-7aeda7c99a44b66ce122d6a24131648438d51d09.tar.gz nextcloud-server-7aeda7c99a44b66ce122d6a24131648438d51d09.zip |
Added a test and logic for checking answer of public shares
Diffstat (limited to 'build/integration/features/sharing-v1.feature')
-rw-r--r-- | build/integration/features/sharing-v1.feature | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/build/integration/features/sharing-v1.feature b/build/integration/features/sharing-v1.feature index 36e729d2a13..4ca1966b942 100644 --- a/build/integration/features/sharing-v1.feature +++ b/build/integration/features/sharing-v1.feature @@ -46,6 +46,25 @@ Feature: sharing And the HTTP status code should be "200" And Public shared file "welcome.txt" with password "publicpw" can be downloaded + Scenario: Creating a new public share of a folder + Given user "user0" exists + And As an "user0" + When creating a public share with + | path | FOLDER | + | shareType | 3 | + | password | publicpw | + | expireDate | +3 days | + | publicUpload | true | + | permissions | 7 | + Then the OCS status code should be "100" + And the HTTP status code should be "200" + And Share fields of last share match with + | id | A_NUMBER | + | permissions | 7 | + | expiration | +3 days | + | url | AN_URL | + | token | A_TOKEN | + Scenario: Creating a new public share with password and adding an expiration date Given user "user0" exists And As an "user0" |