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] added spaces examples in the suite apiSharePublicLink2 #39792

Merged
Merged
Show file tree
Hide file tree
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 @@ -108,8 +108,9 @@ Feature: multilinksharing
| 1 | 100 |
| 2 | 200 |

Scenario: Deleting a file deletes also its public links
Scenario Outline: Deleting a file deletes also its public links
Given using OCS API version "1"
And using <dav-path> DAV path
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/textfile0.txt"
And user "Alice" has created a public link share with settings
| path | textfile0.txt |
Expand All @@ -128,6 +129,16 @@ Feature: multilinksharing
When user "Alice" uploads file "filesForUpload/textfile.txt" to "/textfile0.txt" using the WebDAV API
Then the HTTP status code should be "201"
And as user "Alice" the file "/textfile0.txt" should not have any shares
Examples:
| dav-path |
| old |
| new |

@personalSpace @skipOnOcV10
Examples:
| dav-path |
| spaces |


Scenario Outline: Deleting one public link share of a file doesn't affect the rest
Given using OCS API version "<ocs_api_version>"
Expand Down Expand Up @@ -162,8 +173,9 @@ Feature: multilinksharing
| 1 | 100 |
| 2 | 200 |

Scenario: Overwriting a file doesn't remove its public shares
Scenario Outline: Overwriting a file doesn't remove its public shares
Given using OCS API version "1"
And using <dav-path> DAV path
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/textfile0.txt"
And user "Alice" has created a public link share with settings
| path | textfile0.txt |
Expand All @@ -182,10 +194,20 @@ Feature: multilinksharing
| path | permissions | name |
| /textfile0.txt | 1 | sharedlink1 |
| /textfile0.txt | 1 | sharedlink2 |
Examples:
| dav-path |
| old |
| new |

@personalSpace @skipOnOcV10
Examples:
| dav-path |
| spaces |

@issue-ocis-reva-335
Scenario: Renaming a folder doesn't remove its public shares
Scenario Outline: Renaming a folder doesn't remove its public shares
Given using OCS API version "1"
And using <dav-path> DAV path
And user "Alice" has created folder "FOLDER"
And user "Alice" has created a public link share with settings
| path | FOLDER |
Expand All @@ -206,3 +228,12 @@ Feature: multilinksharing
| path | permissions | name |
| /FOLDER_RENAMED | 15 | sharedlink1 |
| /FOLDER_RENAMED | 15 | sharedlink2 |
Examples:
| dav-path |
| old |
| new |

@personalSpace @skipOnOcV10
Examples:
| dav-path |
| spaces |
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ Feature: update a public link share
@issue-product-295 @skipOnOcV10
Scenario Outline: API responds with a full set of parameters when owner renames the file with a public link
Given using OCS API version "<ocs_api_version>"
And using <dav-path> DAV path
And user "Alice" has created folder "FOLDER"
When user "Alice" creates a public link share using the sharing API with settings
| path | FOLDER |
Expand Down Expand Up @@ -113,9 +114,18 @@ Feature: update a public link share
| mail_send | 0 |
| name | |
Examples:
| ocs_api_version | ocs_status_code |
| 1 | 100 |
| 2 | 200 |
| dav-path | ocs_api_version | ocs_status_code |
| old | 1 | 100 |
| old | 2 | 200 |
| new | 1 | 100 |
| new | 2 | 200 |

@personalSpace
Examples:
| dav-path | ocs_api_version | ocs_status_code |
| spaces | 1 | 100 |
| spaces | 2 | 200 |


Scenario Outline: Creating a new public link share with password and adding an expiration date using public API
Given using OCS API version "<ocs_api_version>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ Feature: upload to a public link share
| path | FOLDER |
| permissions | create |
When user "Alice" deletes file "/FOLDER" using the WebDAV API
Then uploading a file should not work using the <webdav_api_version> public WebDAV API
Then the HTTP status code should be "204"
And uploading a file should not work using the <webdav_api_version> public WebDAV API
And the HTTP status code should be "404"

@notToImplementOnOCIS @issue-ocis-2079
Expand All @@ -56,6 +57,11 @@ Feature: upload to a public link share
| old | new |
| new | new |

@personalSpace @skipOnOcV10
Examples:
| dav-path | webdav_api_version |
| spaces | new |


Scenario Outline: Uploading file to a public read-only share folder with public API does not work
When user "Alice" creates a public link share using the sharing API with settings
Expand Down