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>
This commit is contained in:
parent
847bd0f05b
commit
9004e90f5d
|
@ -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 |
|
||||
|
|
|
@ -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 |
|
||||
|
|
|
@ -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 |
|
||||
|
|
|
@ -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 |
|
||||
|
|
|
@ -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 |
|
||||
|
|
Loading…
Reference in New Issue