|
|
@@ -12,7 +12,7 @@ Feature: webdav-related |
|
|
|
Scenario: download a file with range |
|
|
|
Given using dav path "remote.php/webdav" |
|
|
|
And As an "admin" |
|
|
|
When Downloading file "/welcome.txt" with range "bytes=51-77" |
|
|
|
When Downloading file "/welcome.txt" with range "bytes=52-78" |
|
|
|
Then Downloaded content should be "example file for developers" |
|
|
|
|
|
|
|
Scenario: Upload forbidden if quota is 0 |
|
|
@@ -39,7 +39,7 @@ Feature: webdav-related |
|
|
|
When user "user0" has a quota of "10 MB" |
|
|
|
Then as "user0" gets properties of folder "/" with |
|
|
|
|{DAV:}quota-available-bytes| |
|
|
|
And the single response should contain a property "{DAV:}quota-available-bytes" with value "10485429" |
|
|
|
And the single response should contain a property "{DAV:}quota-available-bytes" with value "10485421" |
|
|
|
|
|
|
|
Scenario: Retrieving folder quota of shared folder with quota when no quota is set for recipient |
|
|
|
Given using dav path "remote.php/webdav" |
|
|
@@ -57,7 +57,7 @@ Feature: webdav-related |
|
|
|
| shareWith | user0 | |
|
|
|
Then as "user0" gets properties of folder "/testquota" with |
|
|
|
|{DAV:}quota-available-bytes| |
|
|
|
And the single response should contain a property "{DAV:}quota-available-bytes" with value "10485429" |
|
|
|
And the single response should contain a property "{DAV:}quota-available-bytes" with value "10485421" |
|
|
|
|
|
|
|
Scenario: download a public shared file with range |
|
|
|
Given user "user0" exists |
|
|
@@ -65,7 +65,7 @@ Feature: webdav-related |
|
|
|
When creating a share with |
|
|
|
| path | welcome.txt | |
|
|
|
| shareType | 3 | |
|
|
|
And Downloading last public shared file with range "bytes=51-77" |
|
|
|
And Downloading last public shared file with range "bytes=52-78" |
|
|
|
Then Downloaded content should be "example file for developers" |
|
|
|
|
|
|
|
Scenario: download a public shared file inside a folder with range |
|
|
@@ -74,8 +74,8 @@ Feature: webdav-related |
|
|
|
When creating a share with |
|
|
|
| path | PARENT | |
|
|
|
| shareType | 3 | |
|
|
|
And Downloading last public shared file inside a folder "/parent.txt" with range "bytes=1-7" |
|
|
|
Then Downloaded content should be "wnCloud" |
|
|
|
And Downloading last public shared file inside a folder "/parent.txt" with range "bytes=1-8" |
|
|
|
Then Downloaded content should be "extcloud" |
|
|
|
|
|
|
|
Scenario: Downloading a file on the old endpoint should serve security headers |
|
|
|
Given using dav path "remote.php/webdav" |
|
|
@@ -145,8 +145,8 @@ Feature: webdav-related |
|
|
|
Given user "user0" exists |
|
|
|
And user "user0" created a folder "/test" |
|
|
|
When as "user0" gets properties of folder "/test" with |
|
|
|
|{https://nextcloud.com/ns}share-types| |
|
|
|
Then the response should contain an empty property "{https://nextcloud.com/ns}share-types" |
|
|
|
|{http://owncloud.org/ns}share-types| |
|
|
|
Then the response should contain an empty property "{http://owncloud.org/ns}share-types" |
|
|
|
|
|
|
|
Scenario: A file that is shared to a user has a share-types property |
|
|
|
Given user "user0" exists |
|
|
@@ -158,7 +158,7 @@ Feature: webdav-related |
|
|
|
| permissions | 31 | |
|
|
|
| shareWith | user1 | |
|
|
|
When as "user0" gets properties of folder "/test" with |
|
|
|
|{https://nextcloud.com/ns}share-types| |
|
|
|
|{http://owncloud.org/ns}share-types| |
|
|
|
Then the response should contain a share-types property with |
|
|
|
| 0 | |
|
|
|
|
|
|
@@ -172,7 +172,7 @@ Feature: webdav-related |
|
|
|
| permissions | 31 | |
|
|
|
| shareWith | group1 | |
|
|
|
When as "user0" gets properties of folder "/test" with |
|
|
|
|{https://nextcloud.com/ns}share-types| |
|
|
|
|{http://owncloud.org/ns}share-types| |
|
|
|
Then the response should contain a share-types property with |
|
|
|
| 1 | |
|
|
|
|
|
|
@@ -184,7 +184,7 @@ Feature: webdav-related |
|
|
|
| shareType | 3 | |
|
|
|
| permissions | 31 | |
|
|
|
When as "user0" gets properties of folder "/test" with |
|
|
|
|{https://nextcloud.com/ns}share-types| |
|
|
|
|{http://owncloud.org/ns}share-types| |
|
|
|
Then the response should contain a share-types property with |
|
|
|
| 3 | |
|
|
|
|
|
|
@@ -208,7 +208,7 @@ Feature: webdav-related |
|
|
|
| shareType | 3 | |
|
|
|
| permissions | 31 | |
|
|
|
When as "user0" gets properties of folder "/test" with |
|
|
|
|{https://nextcloud.com/ns}share-types| |
|
|
|
|{http://owncloud.org/ns}share-types| |
|
|
|
Then the response should contain a share-types property with |
|
|
|
| 0 | |
|
|
|
| 1 | |