diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2019-11-20 12:11:55 +0100 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2019-11-20 13:11:49 +0100 |
commit | 9004e90f5de9a72264425d8a26c88af15f0d27ec (patch) | |
tree | 815b22c4512c2ee24a34fed64def727cb40d6b88 /build | |
parent | 847bd0f05b5e12b6f6fc8e0b7de67dbf0006921b (diff) | |
download | nextcloud-server-9004e90f5de9a72264425d8a26c88af15f0d27ec.tar.gz nextcloud-server-9004e90f5de9a72264425d8a26c88af15f0d27ec.zip |
Replace direct calls to share API with specific share steps
This makes possible to use steps that reference the last share, which
will be needed to accept pending shares.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'build')
-rw-r--r-- | build/integration/features/comments-search.feature | 10 | ||||
-rw-r--r-- | build/integration/features/comments.feature | 12 | ||||
-rw-r--r-- | build/integration/features/tags.feature | 38 | ||||
-rw-r--r-- | build/integration/sharing_features/sharing-v1-part3.feature | 4 | ||||
-rw-r--r-- | build/integration/sharing_features/sharing-v1.feature | 6 |
5 files changed, 35 insertions, 35 deletions
diff --git a/build/integration/features/comments-search.feature b/build/integration/features/comments-search.feature index 1886cb531b9..333407399d1 100644 --- a/build/integration/features/comments-search.feature +++ b/build/integration/features/comments-search.feature @@ -20,7 +20,7 @@ Feature: comments-search Given user "user0" exists And user "user1" exists And User "user1" uploads file "data/textfile.txt" to "/sharedFileToComment.txt" - And As "user1" sending "POST" to "/apps/files_sharing/api/v1/shares" with + And as "user1" creating a share with | path | sharedFileToComment.txt | | shareWith | user0 | | shareType | 0 | @@ -41,7 +41,7 @@ Feature: comments-search Given user "user0" exists And user "user1" exists And User "user0" uploads file "data/textfile.txt" to "/mySharedFileToComment.txt" - And As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + And as "user0" creating a share with | path | mySharedFileToComment.txt | | shareWith | user1 | | shareType | 0 | @@ -62,7 +62,7 @@ Feature: comments-search Given user "user0" exists And user "user1" exists And User "user1" uploads file "data/textfile.txt" to "/sharedFileToComment.txt" - And As "user1" sending "POST" to "/apps/files_sharing/api/v1/shares" with + And as "user1" creating a share with | path | sharedFileToComment.txt | | shareWith | user0 | | shareType | 0 | @@ -175,12 +175,12 @@ Feature: comments-search And user "user1" exists And User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt" And User "user0" uploads file "data/textfile.txt" to "/mySharedFileToComment.txt" - And As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + And as "user0" creating a share with | path | mySharedFileToComment.txt | | shareWith | user1 | | shareType | 0 | And User "user1" uploads file "data/textfile.txt" to "/sharedFileToComment.txt" - And As "user1" sending "POST" to "/apps/files_sharing/api/v1/shares" with + And as "user1" creating a share with | path | sharedFileToComment.txt | | shareWith | user0 | | shareType | 0 | diff --git a/build/integration/features/comments.feature b/build/integration/features/comments.feature index 0ee11bc9873..cc95d24761d 100644 --- a/build/integration/features/comments.feature +++ b/build/integration/features/comments.feature @@ -18,7 +18,7 @@ Feature: comments Given user "user0" exists Given user "12345" exists Given User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt" - Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + Given as "user0" creating a share with | path | myFileToComment.txt | | shareWith | 12345 | | shareType | 0 | @@ -68,7 +68,7 @@ Feature: comments Given user "user1" exists Given As an "user0" Given User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt" - Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + Given as "user0" creating a share with | path | myFileToComment.txt | | shareWith | user1 | | shareType | 0 | @@ -90,7 +90,7 @@ Feature: comments Given user "user0" exists Given user "user1" exists Given User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt" - Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + Given as "user0" creating a share with | path | myFileToComment.txt | | shareWith | user1 | | shareType | 0 | @@ -135,7 +135,7 @@ Feature: comments Given user "user0" exists Given user "user1" exists Given User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt" - Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + Given as "user0" creating a share with | path | myFileToComment.txt | | shareWith | user1 | | shareType | 0 | @@ -163,7 +163,7 @@ Feature: comments Given user "user0" exists Given user "user1" exists Given User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt" - Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + Given as "user0" creating a share with | path | myFileToComment.txt | | shareWith | user1 | | shareType | 0 | @@ -192,7 +192,7 @@ Feature: comments Given user "user0" exists Given user "user1" exists Given User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt" - Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + Given as "user0" creating a share with | path | myFileToComment.txt | | shareWith | user1 | | shareType | 0 | diff --git a/build/integration/features/tags.feature b/build/integration/features/tags.feature index 3ef7ccb38b0..96e06bd5e4b 100644 --- a/build/integration/features/tags.feature +++ b/build/integration/features/tags.feature @@ -117,7 +117,7 @@ Feature: tags Given user "12345" exists Given "admin" creates a "normal" tag with name "MySuperAwesomeTagName" Given user "user0" uploads file "data/textfile.txt" to "/myFileToTag.txt" - Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + Given as "user0" creating a share with | path | myFileToTag.txt | | shareWith | 12345 | | shareType | 0 | @@ -144,7 +144,7 @@ Feature: tags Given "admin" creates a "normal" tag with name "MyFirstTag" Given "admin" creates a "not user-assignable" tag with name "MySecondTag" Given user "user0" uploads file "data/textfile.txt" to "/myFileToTag.txt" - Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + Given as "user0" creating a share with | path | myFileToTag.txt | | shareWith | user1 | | shareType | 0 | @@ -161,7 +161,7 @@ Feature: tags Given user "user1" belongs to group "group1" Given "admin" creates a "not user-assignable" tag with name "MySuperAwesomeTagName" and groups "group1" Given user "user0" uploads file "data/textfile.txt" to "/myFileToTag.txt" - Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + Given as "user0" creating a share with | path | myFileToTag.txt | | shareWith | user1 | | shareType | 0 | @@ -177,7 +177,7 @@ Feature: tags Given "admin" creates a "normal" tag with name "MyFirstTag" Given "admin" creates a "not user-visible" tag with name "MySecondTag" Given user "user0" uploads file "data/textfile.txt" to "/myFileToTag.txt" - Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + Given as "user0" creating a share with | path | myFileToTag.txt | | shareWith | user1 | | shareType | 0 | @@ -192,7 +192,7 @@ Feature: tags Given "admin" creates a "normal" tag with name "MyFirstTag" Given "admin" creates a "not user-visible" tag with name "MySecondTag" Given user "user0" uploads file "data/textfile.txt" to "/myFileToTag.txt" - Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + Given as "user0" creating a share with | path | myFileToTag.txt | | shareWith | admin | | shareType | 0 | @@ -210,7 +210,7 @@ Feature: tags Given "admin" creates a "normal" tag with name "MyFirstTag" Given "admin" creates a "not user-assignable" tag with name "MySecondTag" Given user "user0" uploads file "data/textfile.txt" to "/myFileToTag.txt" - Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + Given as "user0" creating a share with | path | myFileToTag.txt | | shareWith | admin | | shareType | 0 | @@ -230,7 +230,7 @@ Feature: tags Given "admin" creates a "normal" tag with name "MyFirstTag" Given "admin" creates a "normal" tag with name "MySecondTag" Given user "user0" uploads file "data/textfile.txt" to "/myFileToTag.txt" - Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + Given as "user0" creating a share with | path | myFileToTag.txt | | shareWith | user1 | | shareType | 0 | @@ -261,11 +261,11 @@ Feature: tags Given "admin" creates a "not user-visible" tag with name "MyFirstTag" Given "admin" creates a "normal" tag with name "MySecondTag" Given user "user0" uploads file "data/textfile.txt" to "/myFileToTag.txt" - Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + Given as "user0" creating a share with | path | myFileToTag.txt | | shareWith | user1 | | shareType | 0 | - Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + Given as "user0" creating a share with | path | myFileToTag.txt | | shareWith | admin | | shareType | 0 | @@ -285,11 +285,11 @@ Feature: tags Given "admin" creates a "not user-visible" tag with name "MyFirstTag" Given "admin" creates a "normal" tag with name "MySecondTag" Given user "user0" uploads file "data/textfile.txt" to "/myFileToTag.txt" - Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + Given as "user0" creating a share with | path | myFileToTag.txt | | shareWith | user1 | | shareType | 0 | - Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + Given as "user0" creating a share with | path | myFileToTag.txt | | shareWith | admin | | shareType | 0 | @@ -308,11 +308,11 @@ Feature: tags Given "admin" creates a "not user-visible" tag with name "MyFirstTag" Given "admin" creates a "normal" tag with name "MySecondTag" Given user "user0" uploads file "data/textfile.txt" to "/myFileToTag.txt" - Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + Given as "user0" creating a share with | path | myFileToTag.txt | | shareWith | user1 | | shareType | 0 | - Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + Given as "user0" creating a share with | path | myFileToTag.txt | | shareWith | admin | | shareType | 0 | @@ -328,11 +328,11 @@ Feature: tags Given "admin" creates a "not user-assignable" tag with name "MyFirstTag" Given "admin" creates a "normal" tag with name "MySecondTag" Given user "user0" uploads file "data/textfile.txt" to "/myFileToTag.txt" - Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + Given as "user0" creating a share with | path | myFileToTag.txt | | shareWith | user1 | | shareType | 0 | - Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + Given as "user0" creating a share with | path | myFileToTag.txt | | shareWith | admin | | shareType | 0 | @@ -353,11 +353,11 @@ Feature: tags Given "admin" creates a "not user-assignable" tag with name "MyFirstTag" Given "admin" creates a "normal" tag with name "MySecondTag" Given user "user0" uploads file "data/textfile.txt" to "/myFileToTag.txt" - Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + Given as "user0" creating a share with | path | myFileToTag.txt | | shareWith | user1 | | shareType | 0 | - Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + Given as "user0" creating a share with | path | myFileToTag.txt | | shareWith | admin | | shareType | 0 | @@ -376,11 +376,11 @@ Feature: tags Given "admin" creates a "not user-assignable" tag with name "MyFirstTag" Given "admin" creates a "normal" tag with name "MySecondTag" Given user "user0" uploads file "data/textfile.txt" to "/myFileToTag.txt" - Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + Given as "user0" creating a share with | path | myFileToTag.txt | | shareWith | user1 | | shareType | 0 | - Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with + Given as "user0" creating a share with | path | myFileToTag.txt | | shareWith | admin | | shareType | 0 | diff --git a/build/integration/sharing_features/sharing-v1-part3.feature b/build/integration/sharing_features/sharing-v1-part3.feature index 736b542dd82..42eee1cc3c4 100644 --- a/build/integration/sharing_features/sharing-v1-part3.feature +++ b/build/integration/sharing_features/sharing-v1-part3.feature @@ -120,7 +120,7 @@ Feature: sharing And user "user1" exists And assure user "user0" is disabled And As an "user0" - When sending "POST" to "/apps/files_sharing/api/v1/shares" with + When creating a share with | path | welcome.txt | | shareWith | user1 | | shareType | 0 | @@ -339,7 +339,7 @@ Feature: sharing And user "user0" belongs to group "sharing-group" And file "welcome.txt" of user "user0" is shared with group "sharing-group" And Deleting last share - When sending "POST" to "/apps/files_sharing/api/v1/shares" with + When creating a share with | path | welcome.txt | | shareWith | sharing-group | | shareType | 1 | diff --git a/build/integration/sharing_features/sharing-v1.feature b/build/integration/sharing_features/sharing-v1.feature index b88917dee83..79753895483 100644 --- a/build/integration/sharing_features/sharing-v1.feature +++ b/build/integration/sharing_features/sharing-v1.feature @@ -7,7 +7,7 @@ Feature: sharing Given user "user0" exists And user "user1" exists And As an "user0" - When sending "POST" to "/apps/files_sharing/api/v1/shares" with + When creating a share with | path | welcome.txt | | shareWith | user1 | | shareType | 0 | @@ -21,7 +21,7 @@ Feature: sharing And user "user1" exists And group "sharing-group" exists And As an "user0" - When sending "POST" to "/apps/files_sharing/api/v1/shares" with + When creating a share with | path | welcome.txt | | shareWith | sharing-group | | shareType | 1 | @@ -36,7 +36,7 @@ Feature: sharing 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 + Then creating a share with | path | welcome.txt | | shareWith | user1 | | shareType | 0 | |