Skip to content

Commit cb94e0b

Browse files
author
Vincent Petry
committed
Improve tests
1 parent 2b29079 commit cb94e0b

File tree

2 files changed

+31
-19
lines changed

2 files changed

+31
-19
lines changed

tests/integration/features/webdav-related-new-endpoint.feature

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,6 @@ Feature: webdav-related-new-endpoint
544544
When user "user0" moves new chunk file with id "chunking-42" to "/existingFile.txt"
545545
Then User "user0" checks id of file "/existingFile.txt"
546546

547-
548547
Scenario: Checking file id after a move between received shares
549548
Given using new dav path
550549
And user "user0" exists
@@ -554,22 +553,14 @@ Feature: webdav-related-new-endpoint
554553
And folder "/folderA" of user "user0" is shared with user "user1"
555554
And folder "/folderB" of user "user0" is shared with user "user1"
556555
And user "user1" created a folder "/folderA/ONE"
557-
And user "user1" created a folder "/folderA/ONE/TWO"
558556
And User "user1" stores id of file "/folderA/ONE"
559-
And User "user1" moves folder "/folderA/ONE" to "/folderB"
560-
When user "user1" created a folder "/folderB/ONE/TWO/THREE"
561-
And using old dav path
562-
Then user "user1" should see following elements
563-
| /FOLDER/ |
564-
| /PARENT/ |
565-
| /PARENT/parent.txt |
566-
| /textfile0.txt |
567-
| /textfile1.txt |
568-
| /textfile2.txt |
569-
| /textfile3.txt |
570-
| /textfile4.txt |
571-
| /folderA |
572-
| /folderB |
573-
| /folderB/ONE |
574-
| /folderB/ONE/TWO |
575-
| /folderB/ONE/TWO/THREE |
557+
And user "user1" created a folder "/folderA/ONE/TWO"
558+
When User "user1" moves folder "/folderA/ONE" to "/folderB/ONE"
559+
Then as "user1" the folder "/folderA" exists
560+
And as "user1" the folder "/folderA/ONE" does not exist
561+
# yes, a weird bug used to make this one fail
562+
And as "user1" the folder "/folderA/ONE/TWO" does not exist
563+
And as "user1" the folder "/folderB/ONE" exists
564+
And as "user1" the folder "/folderB/ONE/TWO" exists
565+
And User "user1" checks id of file "/folderB/ONE"
566+

tests/integration/features/webdav-related-old-endpoint.feature

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,3 +486,24 @@ Feature: webdav-related-old-endpoint
486486
When As an "user0"
487487
And Downloading file "/myChunkedFile.txt"
488488
Then Downloaded content should be "AAAAABBBBBCCCCC"
489+
490+
Scenario: Checking file id after a move between received shares
491+
Given using old dav path
492+
And user "user0" exists
493+
And user "user1" exists
494+
And user "user0" created a folder "/folderA"
495+
And user "user0" created a folder "/folderB"
496+
And folder "/folderA" of user "user0" is shared with user "user1"
497+
And folder "/folderB" of user "user0" is shared with user "user1"
498+
And user "user1" created a folder "/folderA/ONE"
499+
And User "user1" stores id of file "/folderA/ONE"
500+
And user "user1" created a folder "/folderA/ONE/TWO"
501+
When User "user1" moves folder "/folderA/ONE" to "/folderB/ONE"
502+
Then as "user1" the folder "/folderA" exists
503+
And as "user1" the folder "/folderA/ONE" does not exist
504+
# yes, a weird bug used to make this one fail
505+
And as "user1" the folder "/folderA/ONE/TWO" does not exist
506+
And as "user1" the folder "/folderB/ONE" exists
507+
And as "user1" the folder "/folderB/ONE/TWO" exists
508+
And User "user1" checks id of file "/folderB/ONE"
509+

0 commit comments

Comments
 (0)