Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tests-Only] Have separate scenarios for public link share of root folder on oC10 and OCIS #37943

Merged
merged 1 commit into from
Sep 25, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,8 @@ Feature: create a public link share
| 1 | 100 |
| 2 | 200 |

@issue-ocis-reva-283
Scenario Outline: Do not allow public sharing of the root
@issue-ocis-reva-283 @notToImplementOnOCIS
Scenario Outline: Do not allow public sharing of the root on ownCloud10
Given using OCS API version "<ocs_api_version>"
When user "Alice" creates a public link share using the sharing API with settings
| path | / |
Expand All @@ -620,6 +620,37 @@ Feature: create a public link share
| 1 | 403 | 200 |
| 2 | 403 | 403 |

@issue-ocis-reva-283 @skipOnOcV10
Scenario Outline: Allow public sharing of the root on OCIS, the default is read permission
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 shared folder using the old public WebDAV API
And the downloaded content should be "Random data"
And the public should be able to download file "/randomfile.txt" from inside the last public shared folder using the new public WebDAV API
And the downloaded content should be "Random data"
And the public upload to the last publicly shared folder using the old public WebDAV API should fail with HTTP status code "403"
And the public upload to the last publicly shared folder using the new public WebDAV API should fail with HTTP status code "403"
Examples:
| ocs_api_version | ocs_status_code |
| 1 | 100 |
| 2 | 200 |


Scenario Outline: user creates a public link share of a file with file name longer than 64 chars using the old public WebDAV API
Given using OCS API version "<ocs_api_version>"
Expand Down