summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorSergio Bertolin <sbertolin@solidgear.es>2015-11-12 10:36:17 +0000
committerSergio Bertolin <sbertolin@solidgear.es>2015-11-12 10:36:17 +0000
commitce8435530ba87c3574352d479d531caf2e0ab668 (patch)
treec9307932f6b62d00a515712ed8ba19dfa3dc4ad2 /build
parenteb6a13c23147eaf7f8aa28cfaacea22ffcf3c43a (diff)
downloadnextcloud-server-ce8435530ba87c3574352d479d531caf2e0ab668.tar.gz
nextcloud-server-ce8435530ba87c3574352d479d531caf2e0ab668.zip
Modified test to PUT only 1 parameter with each update
Diffstat (limited to 'build')
-rw-r--r--build/integration/features/sharing-v1.feature90
1 files changed, 86 insertions, 4 deletions
diff --git a/build/integration/features/sharing-v1.feature b/build/integration/features/sharing-v1.feature
index df75a25e8e7..07c05af2f54 100644
--- a/build/integration/features/sharing-v1.feature
+++ b/build/integration/features/sharing-v1.feature
@@ -72,14 +72,13 @@ Feature: sharing
| path | welcome.txt |
| shareType | 3 |
| password | publicpw |
- #And Adding expiration date to last share
And Updating last share with
| expireDate | +3 days |
Then the OCS status code should be "100"
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, updating it and getting it's info
+ Scenario: Creating a new public share, updating its expiration date and getting its info
Given user "user0" exists
And As an "user0"
When creating a public share with
@@ -87,8 +86,64 @@ Feature: sharing
| shareType | 3 |
And Updating last share with
| expireDate | +3 days |
+ And Getting info of last share
+ 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 |
+ | item_type | folder |
+ | item_source | A_NUMBER |
+ | share_type | 3 |
+ | file_source | A_NUMBER |
+ | file_target | /FOLDER |
+ | permissions | 1 |
+ | stime | A_NUMBER |
+ | expiration | +3 days |
+ | token | A_TOKEN |
+ | storage | A_NUMBER |
+ | mail_send | 0 |
+ | uid_owner | user0 |
+ | storage_id | home::user0 |
+ | file_parent | A_NUMBER |
+ | displayname_owner | user0 |
+ | url | AN_URL |
+
+ Scenario: Creating a new public share, updating its password and getting its info
+ Given user "user0" exists
+ And As an "user0"
+ When creating a public share with
+ | path | FOLDER |
+ | shareType | 3 |
+ And Updating last share with
| password | publicpw |
- | publicUpload | true |
+ And Getting info of last share
+ 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 |
+ | item_type | folder |
+ | item_source | A_NUMBER |
+ | share_type | 3 |
+ | file_source | A_NUMBER |
+ | file_target | /FOLDER |
+ | permissions | 1 |
+ | stime | A_NUMBER |
+ | token | A_TOKEN |
+ | storage | A_NUMBER |
+ | mail_send | 0 |
+ | uid_owner | user0 |
+ | storage_id | home::user0 |
+ | file_parent | A_NUMBER |
+ | displayname_owner | user0 |
+ | url | AN_URL |
+
+ Scenario: Creating a new public share, updating its permissions and getting its info
+ Given user "user0" exists
+ And As an "user0"
+ When creating a public share with
+ | path | FOLDER |
+ | shareType | 3 |
+ And Updating last share with
| permissions | 7 |
And Getting info of last share
Then the OCS status code should be "100"
@@ -102,7 +157,6 @@ Feature: sharing
| file_target | /FOLDER |
| permissions | 7 |
| stime | A_NUMBER |
- | expiration | +3 days |
| token | A_TOKEN |
| storage | A_NUMBER |
| mail_send | 0 |
@@ -112,6 +166,34 @@ Feature: sharing
| displayname_owner | user0 |
| url | AN_URL |
+ Scenario: Creating a new public share, updating publicUpload option and getting its info
+ Given user "user0" exists
+ And As an "user0"
+ When creating a public share with
+ | path | FOLDER |
+ | shareType | 3 |
+ And Updating last share with
+ | publicUpload | true |
+ And Getting info of last share
+ 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 |
+ | item_type | folder |
+ | item_source | A_NUMBER |
+ | share_type | 3 |
+ | file_source | A_NUMBER |
+ | file_target | /FOLDER |
+ | permissions | 7 |
+ | stime | A_NUMBER |
+ | token | A_TOKEN |
+ | storage | A_NUMBER |
+ | mail_send | 0 |
+ | uid_owner | user0 |
+ | storage_id | home::user0 |
+ | file_parent | A_NUMBER |
+ | displayname_owner | user0 |
+ | url | AN_URL |
Scenario: getting all shares of a user using that user
Given user "user0" exists