Skip to content

Commit aff5ee0

Browse files
committed
Adapt integration tests
Signed-off-by: Louis Chemineau <[email protected]>
1 parent e8cbbf4 commit aff5ee0

File tree

1 file changed

+47
-43
lines changed

1 file changed

+47
-43
lines changed

build/integration/features/transfer-ownership.feature

Lines changed: 47 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Feature: transfer-ownership
1010
And using received transfer folder of "user1" as dav path
1111
Then Downloaded content when downloading file "/somefile.txt" with range "bytes=0-6" should be "This is"
1212
And using old dav path
13-
And as "user0" the file "/somefile.txt" does not exist
13+
And as "user0" the file "/somefile.txt" exists
1414
And using received transfer folder of "user1" as dav path
1515
And as "user1" the file "/somefile.txt" exists
1616

@@ -25,7 +25,7 @@ Feature: transfer-ownership
2525
And using received transfer folder of "user1" as dav path
2626
Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
2727
And using old dav path
28-
And as "user0" the folder "/test" does not exist
28+
And as "user0" the folder "/test" exists
2929
And using received transfer folder of "user1" as dav path
3030
And as "user1" the folder "/test" exists
3131

@@ -41,7 +41,7 @@ Feature: transfer-ownership
4141
Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
4242
And transfer folder name contains "transferred from user0 -risky- ヂspḷay -na|-|e- on"
4343
And using old dav path
44-
And as "user0" the folder "/test" does not exist
44+
And as "user0" the folder "/test" exists
4545
And using received transfer folder of "user1" as dav path
4646
And as "user1" the folder "/test" exists
4747

@@ -57,16 +57,16 @@ Feature: transfer-ownership
5757
And As an "user2"
5858
Then Downloaded content when downloading file "/somefile.txt" with range "bytes=0-6" should be "This is"
5959
And using old dav path
60-
And as "user0" the file "/somefile.txt" does not exist
60+
And as "user0" the file "/somefile.txt" exists
6161
And using received transfer folder of "user1" as dav path
6262
And as "user1" the file "/somefile.txt" exists
6363
And As an "user1"
6464
And Getting info of last share
6565
And the OCS status code should be "100"
6666
And Share fields of last share match with
67-
| uid_owner | user1 |
67+
| uid_owner | user1 |
6868
| uid_file_owner | user1 |
69-
| share_with | user2 |
69+
| share_with | user2 |
7070

7171
Scenario: transferring ownership of folder shared with third user
7272
Given user "user0" exists
@@ -81,16 +81,16 @@ Feature: transfer-ownership
8181
And As an "user2"
8282
Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
8383
And using old dav path
84-
And as "user0" the folder "/test" does not exist
84+
And as "user0" the folder "/test" exists
8585
And using received transfer folder of "user1" as dav path
8686
And as "user1" the folder "/test" exists
8787
And As an "user1"
8888
And Getting info of last share
8989
And the OCS status code should be "100"
9090
And Share fields of last share match with
91-
| uid_owner | user1 |
91+
| uid_owner | user1 |
9292
| uid_file_owner | user1 |
93-
| share_with | user2 |
93+
| share_with | user2 |
9494

9595
Scenario: transferring ownership of folder shared with transfer recipient
9696
Given user "user0" exists
@@ -106,7 +106,7 @@ Feature: transfer-ownership
106106
And using received transfer folder of "user1" as dav path
107107
And Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
108108
And using old dav path
109-
And as "user0" the folder "/test" does not exist
109+
And as "user0" the folder "/test" exists
110110
And using received transfer folder of "user1" as dav path
111111
And as "user1" the folder "/test" exists
112112
And Getting info of last share
@@ -117,7 +117,7 @@ Feature: transfer-ownership
117117
And user "user0" exists
118118
And user "user1" exists
119119
And user "user2" exists
120-
And user "user2" belongs to group "group1"
120+
And user "user2" belongs to group "group1"
121121
And User "user0" created a folder "/test"
122122
And User "user0" uploads file "data/textfile.txt" to "/test/somefile.txt"
123123
And folder "/test" of user "user0" is shared with group "group1" with permissions 31
@@ -129,16 +129,16 @@ Feature: transfer-ownership
129129
And As an "user2"
130130
Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
131131
And using old dav path
132-
And as "user0" the folder "/test" does not exist
132+
And as "user0" the folder "/test" exists
133133
And using received transfer folder of "user1" as dav path
134134
And as "user1" the folder "/test" exists
135135
And As an "user1"
136136
And Getting info of last share
137137
And the OCS status code should be "100"
138138
And Share fields of last share match with
139-
| uid_owner | user1 |
139+
| uid_owner | user1 |
140140
| uid_file_owner | user1 |
141-
| share_with | user2 |
141+
| share_with | user2 |
142142

143143
Scenario: transferring ownership of file shares to user with the same id as the group
144144
Given user "user0" exists
@@ -154,16 +154,16 @@ Feature: transfer-ownership
154154
And As an "user2"
155155
Then Downloaded content when downloading file "/somefile.txt" with range "bytes=0-6" should be "This is"
156156
And using old dav path
157-
And as "user0" the file "/somefile.txt" does not exist
157+
And as "user0" the file "/somefile.txt" exists
158158
And using received transfer folder of "user1" as dav path
159159
And as "test" the file "/somefile.txt" exists
160160
And As an "test"
161161
And Getting info of last share
162162
And the OCS status code should be "100"
163163
And Share fields of last share match with
164-
| uid_owner | test |
164+
| uid_owner | test |
165165
| uid_file_owner | test |
166-
| share_with | test |
166+
| share_with | test |
167167

168168
Scenario: transferring ownership of folder reshared with another user
169169
Given user "user0" exists
@@ -182,15 +182,17 @@ Feature: transfer-ownership
182182
Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
183183
And using old dav path
184184
And as "user0" the folder "/test" exists
185+
# And user "user1" accepts last share
186+
# And as "user1" the folder "/test" exists
185187
And using received transfer folder of "user1" as dav path
186188
And as "user1" the folder "/test" does not exist
187189
And As an "user0"
188190
And Getting info of last share
189191
And the OCS status code should be "100"
190192
And Share fields of last share match with
191-
| uid_owner | user0 |
193+
| uid_owner | user0 |
192194
| uid_file_owner | user3 |
193-
| share_with | user2 |
195+
| share_with | user2 |
194196

195197
Scenario: transferring ownership of folder reshared with group to a user in the group
196198
Given user "user0" exists
@@ -211,15 +213,17 @@ Feature: transfer-ownership
211213
Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
212214
And using old dav path
213215
And as "user0" the folder "/test" exists
216+
# And user "user1" accepts last share
217+
# And as "user1" the folder "/test" exists
214218
And using received transfer folder of "user1" as dav path
215219
And as "user1" the folder "/test" does not exist
216220
And As an "user1"
217221
And Getting info of last share
218222
And the OCS status code should be "100"
219223
And Share fields of last share match with
220-
| uid_owner | user1 |
221-
| uid_file_owner | user3 |
222-
| share_with | group1 |
224+
| uid_owner | user1 |
225+
| uid_file_owner | user3 |
226+
| share_with | group1 |
223227

224228
Scenario: transferring ownership of folder reshared with group to a user not in the group
225229
Given user "user0" exists
@@ -246,9 +250,9 @@ Feature: transfer-ownership
246250
And Getting info of last share
247251
And the OCS status code should be "100"
248252
And Share fields of last share match with
249-
| uid_owner | user0 |
250-
| uid_file_owner | user3 |
251-
| share_with | group1 |
253+
| uid_owner | user0 |
254+
| uid_file_owner | user3 |
255+
| share_with | group1 |
252256

253257
Scenario: transferring ownership does not transfer received shares
254258
Given user "user0" exists
@@ -268,9 +272,9 @@ Feature: transfer-ownership
268272
And Getting info of last share
269273
And the OCS status code should be "100"
270274
And Share fields of last share match with
271-
| uid_owner | user2 |
275+
| uid_owner | user2 |
272276
| uid_file_owner | user2 |
273-
| share_with | user0 |
277+
| share_with | user0 |
274278

275279
@local_storage
276280
Scenario: transferring ownership does not transfer external storage
@@ -316,7 +320,7 @@ Feature: transfer-ownership
316320
And using received transfer folder of "user1" as dav path
317321
Then Downloaded content when downloading file "/somefile.txt" with range "bytes=0-6" should be "This is"
318322
And using old dav path
319-
And as "user0" the file "/somefile.txt" does not exist
323+
And as "user0" the file "/somefile.txt" exists
320324
And using received transfer folder of "user1" as dav path
321325
And as "user1" the file "/somefile.txt" exists
322326

@@ -331,7 +335,7 @@ Feature: transfer-ownership
331335
And using received transfer folder of "user1" as dav path
332336
Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
333337
And using old dav path
334-
And as "user0" the folder "/test" does not exist
338+
And as "user0" the folder "/test" exists
335339
And using received transfer folder of "user1" as dav path
336340
And as "user1" the folder "/test" exists
337341

@@ -347,7 +351,7 @@ Feature: transfer-ownership
347351
Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
348352
And transfer folder name contains "transferred from user0 -risky- ヂspḷay -na|-|e- on"
349353
And using old dav path
350-
And as "user0" the folder "/test" does not exist
354+
And as "user0" the folder "/test" exists
351355
And using received transfer folder of "user1" as dav path
352356
And as "user1" the folder "/test" exists
353357

@@ -364,7 +368,7 @@ Feature: transfer-ownership
364368
And using received transfer folder of "user1" as dav path
365369
Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
366370
And using old dav path
367-
And as "user0" the folder "/test" does not exist
371+
And as "user0" the folder "/test" exists
368372
And as "user0" the folder "/test2" exists
369373
And as "user0" the file "/test2/somefile.txt" exists
370374
And using received transfer folder of "user1" as dav path
@@ -386,7 +390,7 @@ Feature: transfer-ownership
386390
And using received transfer folder of "user1" as dav path
387391
Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
388392
And using old dav path
389-
And as "user0" the folder "/test" does not exist
393+
And as "user0" the folder "/test" exists
390394
And as "user0" the folder "/test2" exists
391395
And as "user0" the file "/test2/sharedfile.txt" exists
392396
And using received transfer folder of "user1" as dav path
@@ -398,9 +402,9 @@ Feature: transfer-ownership
398402
And Getting info of last share
399403
And the OCS status code should be "100"
400404
And Share fields of last share match with
401-
| uid_owner | user0 |
405+
| uid_owner | user0 |
402406
| uid_file_owner | user0 |
403-
| share_with | user1 |
407+
| share_with | user1 |
404408

405409
Scenario: transferring ownership of file shares
406410
Given user "user0" exists
@@ -415,16 +419,16 @@ Feature: transfer-ownership
415419
And As an "user2"
416420
Then Downloaded content when downloading file "/somefile.txt" with range "bytes=0-6" should be "This is"
417421
And using old dav path
418-
And as "user0" the folder "/test" does not exist
422+
And as "user0" the folder "/test" exists
419423
And using received transfer folder of "user1" as dav path
420424
And as "user1" the folder "/test" exists
421425
And As an "user1"
422426
And Getting info of last share
423427
And the OCS status code should be "100"
424428
And Share fields of last share match with
425-
| uid_owner | user1 |
429+
| uid_owner | user1 |
426430
| uid_file_owner | user1 |
427-
| share_with | user2 |
431+
| share_with | user2 |
428432

429433
Scenario: transferring ownership of folder shared with third user
430434
Given user "user0" exists
@@ -439,16 +443,16 @@ Feature: transfer-ownership
439443
And As an "user2"
440444
Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
441445
And using old dav path
442-
And as "user0" the folder "/test" does not exist
446+
And as "user0" the folder "/test" exists
443447
And using received transfer folder of "user1" as dav path
444448
And as "user1" the folder "/test" exists
445449
And As an "user1"
446450
And Getting info of last share
447451
And the OCS status code should be "100"
448452
And Share fields of last share match with
449-
| uid_owner | user1 |
453+
| uid_owner | user1 |
450454
| uid_file_owner | user1 |
451-
| share_with | user2 |
455+
| share_with | user2 |
452456

453457
Scenario: transferring ownership of folder shared with transfer recipient
454458
Given user "user0" exists
@@ -464,7 +468,7 @@ Feature: transfer-ownership
464468
And using received transfer folder of "user1" as dav path
465469
And Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
466470
And using old dav path
467-
And as "user0" the folder "/test" does not exist
471+
And as "user0" the folder "/test" exists
468472
And using received transfer folder of "user1" as dav path
469473
And as "user1" the folder "/test" exists
470474
And Getting info of last share
@@ -494,9 +498,9 @@ Feature: transfer-ownership
494498
And Getting info of last share
495499
And the OCS status code should be "100"
496500
And Share fields of last share match with
497-
| uid_owner | user1 |
501+
| uid_owner | user1 |
498502
| uid_file_owner | user1 |
499-
| share_with | user2 |
503+
| share_with | user2 |
500504

501505
Scenario: transferring ownership of path fails for reshares
502506
Given user "user0" exists

0 commit comments

Comments
 (0)