summaryrefslogtreecommitdiffstats
path: root/build/integration/features
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2019-11-20 12:11:55 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2019-11-20 13:11:49 +0100
commit9004e90f5de9a72264425d8a26c88af15f0d27ec (patch)
tree815b22c4512c2ee24a34fed64def727cb40d6b88 /build/integration/features
parent847bd0f05b5e12b6f6fc8e0b7de67dbf0006921b (diff)
downloadnextcloud-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/integration/features')
-rw-r--r--build/integration/features/comments-search.feature10
-rw-r--r--build/integration/features/comments.feature12
-rw-r--r--build/integration/features/tags.feature38
3 files changed, 30 insertions, 30 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 |