@@ -170,3 +170,99 @@ Feature: an user shares resources
170
170
When user "Brian" gets the number of versions of file "textfile.txt" using file-id "<<FILEID>>"
171
171
Then the HTTP status code should be "207"
172
172
And the number of versions should be "1"
173
+
174
+
175
+ Scenario Outline : sharee checks versions after updating the permission role of a shared file from other roles to FileEditorWithVersions
176
+ Given using spaces DAV path
177
+ And the administrator has enabled the permissions role 'File Editor With Versions'
178
+ And user "Alice" has uploaded file with content "to share" to "textfile.txt"
179
+ And we save it into "FILEID"
180
+ And user "Alice" has sent the following resource share invitation:
181
+ | resource | textfile .txt |
182
+ | space | Personal |
183
+ | sharee | Brian |
184
+ | shareType | user |
185
+ | permissionsRole | <permissions -role > |
186
+ And user "Alice" has updated the last resource share with the following properties:
187
+ | permissionsRole | File Editor With Versions |
188
+ | space | Personal |
189
+ | resource | textfile .txt |
190
+ And user "Brian" has uploaded file with content "updated content" to "Shares/textfile.txt"
191
+ When user "Brian" gets the number of versions of file "textfile.txt" using file-id "<<FILEID>>"
192
+ Then the HTTP status code should be "207"
193
+ And the number of versions should be "1"
194
+ Examples :
195
+ | permissions -role |
196
+ | File Editor |
197
+ | Viewer |
198
+
199
+
200
+ Scenario Outline : sharee tries to check versions after updating the permission role of a shared file from FileEditorWithVersions to other roles
201
+ Given using spaces DAV path
202
+ And the administrator has enabled the permissions role 'File Editor With Versions'
203
+ And user "Alice" has uploaded file with content "to share" to "textfile.txt"
204
+ And user "Alice" has sent the following resource share invitation:
205
+ | resource | textfile .txt |
206
+ | space | Personal |
207
+ | sharee | Brian |
208
+ | shareType | user |
209
+ | permissionsRole | File Editor With Versions |
210
+ And user "Brian" has uploaded file with content "updated content" to "Shares/textfile.txt"
211
+ And user "Alice" has updated the last resource share with the following properties:
212
+ | permissionsRole | <permissions -role > |
213
+ | space | Personal |
214
+ | resource | textfile .txt |
215
+ When user "Brian" tries to get versions of file "textfile.txt" from "Alice"
216
+ Then the HTTP status code should be "403"
217
+ Examples :
218
+ | permissions -role |
219
+ | File Editor |
220
+ | Viewer |
221
+
222
+
223
+ Scenario Outline : sharee checks versions after updating the permission role of the shared folder from other roles to EditorWithVersions
224
+ Given the administrator has enabled the permissions role 'Editor With Versions'
225
+ And user "Alice" has created folder "folderToShare"
226
+ And user "Alice" has uploaded file with content "to share" to "folderToShare/textfile.txt"
227
+ And we save it into "FILEID"
228
+ And user "Alice" has sent the following resource share invitation:
229
+ | resource | folderToShare |
230
+ | space | Personal |
231
+ | sharee | Brian |
232
+ | shareType | user |
233
+ | permissionsRole | <permissions -role > |
234
+ And user "Alice" has updated the last resource share with the following properties:
235
+ | permissionsRole | Editor With Versions |
236
+ | space | Personal |
237
+ | resource | folderToShare |
238
+ And user "Brian" has uploaded file with content "updated content" to "Shares/folderToShare/textfile.txt"
239
+ When user "Brian" gets the number of versions of file "textfile.txt" using file-id "<<FILEID>>"
240
+ Then the HTTP status code should be "207"
241
+ And the number of versions should be "1"
242
+ Examples :
243
+ | permissions -role |
244
+ | Editor |
245
+ | Viewer |
246
+
247
+
248
+ Scenario Outline : sharee tries to check versions after updating the permission role of the shared folder from EditorWithVersions to other roles
249
+ Given the administrator has enabled the permissions role 'Editor With Versions'
250
+ And user "Alice" has created folder "folderToShare"
251
+ And user "Alice" has uploaded file with content "to share" to "folderToShare/textfile.txt"
252
+ And user "Alice" has sent the following resource share invitation:
253
+ | resource | folderToShare |
254
+ | space | Personal |
255
+ | sharee | Brian |
256
+ | shareType | user |
257
+ | permissionsRole | Editor With Versions |
258
+ And user "Brian" has uploaded file with content "updated content" to "Shares/folderToShare/textfile.txt"
259
+ And user "Alice" has updated the last resource share with the following properties:
260
+ | permissionsRole | <permissions -role > |
261
+ | space | Personal |
262
+ | resource | folderToShare |
263
+ When user "Brian" tries to get versions of file "folderToShare/textfile.txt" from "Alice"
264
+ Then the HTTP status code should be "403"
265
+ Examples :
266
+ | permissions -role |
267
+ | Editor |
268
+ | Viewer |
0 commit comments