Skip to content

Commit b59c71c

Browse files
danxuliuartonge
authored andcommitted
test: Add integration tests for moving a file from and to a shared folder
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
1 parent f5cd0cb commit b59c71c

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

build/integration/dav_features/webdav-related.feature

+27
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,33 @@ Feature: webdav-related
4848
When User "user0" moves file "/test/test" to "/test"
4949
Then the HTTP status code should be "403"
5050

51+
Scenario: Moving a file from shared folder to root folder
52+
Given using old dav path
53+
And user "user0" exists
54+
And user "user1" exists
55+
And user "user0" created a folder "/testshare"
56+
And User "user0" copies file "/welcome.txt" to "/testshare/welcome.txt"
57+
And as "user0" creating a share with
58+
| path | testshare |
59+
| shareType | 0 |
60+
| shareWith | user1 |
61+
When User "user1" moves file "/testshare/welcome.txt" to "/movedwelcome.txt"
62+
Then As an "user1"
63+
And Downloaded content when downloading file "/movedwelcome.txt" with range "bytes=0-6" should be "Welcome"
64+
65+
Scenario: Moving a file from root folder to shared folder
66+
Given using old dav path
67+
And user "user0" exists
68+
And user "user1" exists
69+
And user "user0" created a folder "/testshare"
70+
And as "user0" creating a share with
71+
| path | testshare |
72+
| shareType | 0 |
73+
| shareWith | user1 |
74+
When User "user1" moves file "/welcome.txt" to "/testshare/movedwelcome.txt"
75+
Then As an "user1"
76+
And Downloaded content when downloading file "/testshare/movedwelcome.txt" with range "bytes=0-6" should be "Welcome"
77+
5178
Scenario: Moving a file to a folder with no permissions
5279
Given using old dav path
5380
And As an "admin"

0 commit comments

Comments
 (0)