mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-24 16:41:35 -04:00
Adapt test expectations. We do not allow sharing of the space root.
This commit is contained in:
@@ -20,5 +20,5 @@ Feature: shares are received in the default folder for received shares
|
||||
And the HTTP status code of responses on each endpoint should be "<http_status_code>" respectively
|
||||
Examples:
|
||||
| ocs_api_version | ocs_status_code | http_status_code |
|
||||
| 1 | 100, 100, 404 | 200, 200, 204, 200 |
|
||||
| 2 | 200, 200, 404 | 200, 200, 204, 404 |
|
||||
| 1 | 100, 100, 400 | 200, 200, 204, 200 |
|
||||
| 2 | 200, 200, 400 | 200, 200, 204, 400 |
|
||||
|
||||
@@ -282,31 +282,16 @@ Feature: create a public link share
|
||||
| 2 | 200 |
|
||||
|
||||
@issue-1265 @issue-2079
|
||||
Scenario Outline: allow public sharing of the root on OCIS when the default permission is read and access using the public WebDAV API
|
||||
Scenario Outline: Do not allow public sharing of the root on OCIS when the default permission is read and access using the public WebDAV API
|
||||
Given using OCS API version "<ocs_api_version>"
|
||||
And user "Alice" has uploaded file with content "Random data" to "/randomfile.txt"
|
||||
When user "Alice" creates a public link share using the sharing API with settings
|
||||
| path | / |
|
||||
Then the OCS status code should be "<ocs_status_code>"
|
||||
And the HTTP status code should be "200"
|
||||
And the fields of the last response to user "Alice" should include
|
||||
| item_type | folder |
|
||||
| mimetype | httpd/unix-directory |
|
||||
| file_target | / |
|
||||
| path | / |
|
||||
| permissions | read |
|
||||
| share_type | public_link |
|
||||
| displayname_file_owner | %displayname% |
|
||||
| displayname_owner | %displayname% |
|
||||
| uid_file_owner | %username% |
|
||||
| uid_owner | %username% |
|
||||
| name | |
|
||||
And the public should be able to download file "/randomfile.txt" from inside the last public link shared folder using the new public WebDAV API without password and the content should be "Random data"
|
||||
And the public upload to the last publicly shared folder using the new public WebDAV API should fail with HTTP status code "403"
|
||||
And the HTTP status code should be "<http_status_code>"
|
||||
Examples:
|
||||
| ocs_api_version | ocs_status_code |
|
||||
| 1 | 100 |
|
||||
| 2 | 200 |
|
||||
| ocs_api_version | ocs_status_code | http_status_code |
|
||||
| 1 | 400 | 200 |
|
||||
| 2 | 400 | 400 |
|
||||
|
||||
@issue-2079
|
||||
Scenario Outline: user creates a public link share of a file with file name longer than 64 chars using the public WebDAV API
|
||||
|
||||
Reference in New Issue
Block a user