|
|
|
@ -12,15 +12,15 @@ Feature: dav-v2 |
|
|
|
|
When User "user0" moves file "/textfile0.txt" to "/FOLDER/textfile0.txt" |
|
|
|
|
Then the HTTP status code should be "201" |
|
|
|
|
|
|
|
|
|
Scenario: Moving and overwriting it's parent |
|
|
|
|
Given using new dav path |
|
|
|
|
And As an "admin" |
|
|
|
|
And user "user0" exists |
|
|
|
|
And As an "user0" |
|
|
|
|
And user "user0" created a folder "/test" |
|
|
|
|
And user "user0" created a folder "/test/test" |
|
|
|
|
When User "user0" moves file "/test/test" to "/test" |
|
|
|
|
Then the HTTP status code should be "403" |
|
|
|
|
Scenario: Moving and overwriting it's parent |
|
|
|
|
Given using new dav path |
|
|
|
|
And As an "admin" |
|
|
|
|
And user "user0" exists |
|
|
|
|
And As an "user0" |
|
|
|
|
And user "user0" created a folder "/test" |
|
|
|
|
And user "user0" created a folder "/test/test" |
|
|
|
|
When User "user0" moves file "/test/test" to "/test" |
|
|
|
|
Then the HTTP status code should be "403" |
|
|
|
|
|
|
|
|
|
Scenario: download a file with range using new endpoint |
|
|
|
|
Given using new dav path |
|
|
|
@ -103,7 +103,7 @@ Feature: dav-v2 |
|
|
|
|
| shareType | 0 | |
|
|
|
|
| permissions | 31 | |
|
|
|
|
| shareWith | user0 | |
|
|
|
|
And user "user0" accepts last share |
|
|
|
|
And user "user0" accepts last share |
|
|
|
|
And As an "user0" |
|
|
|
|
When User "user0" uploads file "data/textfile.txt" to "/testquota/asdf.txt" |
|
|
|
|
Then the HTTP status code should be "201" |
|
|
|
@ -111,24 +111,24 @@ Feature: dav-v2 |
|
|
|
|
Scenario: Create a search query on image |
|
|
|
|
Given using new dav path |
|
|
|
|
And As an "admin" |
|
|
|
|
And user "user0" exists |
|
|
|
|
And As an "user0" |
|
|
|
|
When User "user0" uploads file "data/textfile.txt" to "/testquota/asdf.txt" |
|
|
|
|
Then Image search should work |
|
|
|
|
And the response should be empty |
|
|
|
|
When User "user0" uploads file "data/green-square-256.png" to "/image.png" |
|
|
|
|
And user "user0" exists |
|
|
|
|
And As an "user0" |
|
|
|
|
When User "user0" uploads file "data/textfile.txt" to "/testquota/asdf.txt" |
|
|
|
|
Then Image search should work |
|
|
|
|
And the response should be empty |
|
|
|
|
When User "user0" uploads file "data/green-square-256.png" to "/image.png" |
|
|
|
|
Then Image search should work |
|
|
|
|
And the single response should contain a property "{DAV:}getcontenttype" with value "image/png" |
|
|
|
|
And the single response should contain a property "{DAV:}getcontenttype" with value "image/png" |
|
|
|
|
|
|
|
|
|
Scenario: Create a search query on favorite |
|
|
|
|
Given using new dav path |
|
|
|
|
And As an "admin" |
|
|
|
|
And user "user0" exists |
|
|
|
|
And As an "user0" |
|
|
|
|
When User "user0" uploads file "data/green-square-256.png" to "/fav_image.png" |
|
|
|
|
Then Favorite search should work |
|
|
|
|
And the response should be empty |
|
|
|
|
When user "user0" favorites element "/fav_image.png" |
|
|
|
|
Then Favorite search should work |
|
|
|
|
And the single response should contain a property "{http://owncloud.org/ns}favorite" with value "1" |
|
|
|
|
Scenario: Create a search query on favorite |
|
|
|
|
Given using new dav path |
|
|
|
|
And As an "admin" |
|
|
|
|
And user "user0" exists |
|
|
|
|
And As an "user0" |
|
|
|
|
When User "user0" uploads file "data/green-square-256.png" to "/fav_image.png" |
|
|
|
|
Then Favorite search should work |
|
|
|
|
And the response should be empty |
|
|
|
|
When user "user0" favorites element "/fav_image.png" |
|
|
|
|
Then Favorite search should work |
|
|
|
|
And the single response should contain a property "{http://owncloud.org/ns}favorite" with value "1" |
|
|
|
|
|
|
|
|
|