@@ -184,10 +184,10 @@ Feature: transfer-ownership
184184 And As an "user2"
185185 Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
186186 And using old dav path
187- And as "user0" the folder "/test" exists
187+ And as "user0" the folder "/test" does not exist
188188 And using received transfer folder of "user1" as dav path
189- And as "user1" the folder "/test" does not exist
190- And As an "user0 "
189+ And as "user1" the folder "/test" exists
190+ And As an "user1 "
191191 And Getting info of last share
192192 And the OCS status code should be "100"
193193 And Share fields of last share match with
@@ -210,13 +210,12 @@ Feature: transfer-ownership
210210 And user "user1" accepts last share
211211 When transferring ownership from "user0" to "user1"
212212 And the command was successful
213- And As an "user1"
214- Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
215213 And using old dav path
216- And as "user0" the folder "/test" exists
214+ Then as "user0" the folder "/test" does not exist
215+ When As an "user1"
217216 And using received transfer folder of "user1" as dav path
218- And as "user1" the folder "/test" does not exist
219- And As an "user1 "
217+ Then as "user1" the folder "/test" exists
218+ And Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is "
220219 And Getting info of last share
221220 And the OCS status code should be "100"
222221 And Share fields of last share match with
@@ -242,18 +241,18 @@ Feature: transfer-ownership
242241 And As an "user2"
243242 Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
244243 And using old dav path
245- And as "user0" the folder "/test" exists
244+ And as "user0" the folder "/test" does not exist
246245 And using received transfer folder of "user1" as dav path
247- And as "user1" the folder "/test" does not exist
248- And As an "user0 "
246+ And as "user1" the folder "/test" exists
247+ And As an "user1 "
249248 And Getting info of last share
250249 And the OCS status code should be "100"
251250 And Share fields of last share match with
252251 | uid_owner | user0 |
253252 | uid_file_owner | user3 |
254253 | share_with | group1 |
255254
256- Scenario : transferring ownership does not transfer received shares
255+ Scenario : transferring ownership transfers received shares
257256 Given user "user0" exists
258257 And user "user1" exists
259258 And user "user2" exists
@@ -264,16 +263,16 @@ Feature: transfer-ownership
264263 And the command was successful
265264 And As an "user1"
266265 And using received transfer folder of "user1" as dav path
267- Then as "user1" the folder "/test" does not exist
266+ Then as "user1" the folder "/test" exists
268267 And using old dav path
269- And as "user0" the folder "/test" exists
268+ And as "user0" the folder "/test" does not exist
270269 And As an "user2"
271270 And Getting info of last share
272271 And the OCS status code should be "100"
273272 And Share fields of last share match with
274273 | uid_owner | user2 |
275274 | uid_file_owner | user2 |
276- | share_with | user0 |
275+ | share_with | user1 |
277276
278277 @local_storage
279278 Scenario : transferring ownership does not transfer external storage
@@ -516,26 +515,6 @@ Feature: transfer-ownership
516515 Then the command failed with exit code 1
517516 And the command error output contains the text "Moving a storage (user0/files/test) into another storage (user1) is not allowed"
518517
519- Scenario : transferring ownership does not transfer received shares
520- Given user "user0" exists
521- And user "user1" exists
522- And user "user2" exists
523- And User "user2" created a folder "/test"
524- And User "user0" created a folder "/sub"
525- And folder "/test" of user "user2" is shared with user "user0" with permissions 31
526- And user "user0" accepts last share
527- And User "user0" moved folder "/test" to "/sub/test"
528- When transferring ownership of path "sub" from "user0" to "user1"
529- And the command was successful
530- And As an "user1"
531- And using received transfer folder of "user1" as dav path
532- Then as "user1" the folder "/sub" exists
533- And as "user1" the folder "/sub/test" does not exist
534- And using old dav path
535- And as "user0" the folder "/sub" does not exist
536- And Getting info of last share
537- And the OCS status code should be "404"
538-
539518 Scenario : transferring ownership transfers received shares into subdir when requested
540519 Given user "user0" exists
541520 And user "user1" exists
@@ -548,7 +527,7 @@ Feature: transfer-ownership
548527 And User "user0" moved folder "/transfer-share" to "/sub/transfer-share"
549528 And folder "/do-not-transfer" of user "user2" is shared with user "user0" with permissions 31
550529 And user "user0" accepts last share
551- When transferring ownership of path "sub" from "user0" to "user1" with received shares
530+ When transferring ownership of path "sub" from "user0" to "user1"
552531 And the command was successful
553532 And As an "user1"
554533 And using received transfer folder of "user1" as dav path
0 commit comments