mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-08 13:19:58 -06:00
[tests-only][full-ci]Added test for server getting panic when adding password to a public link (#7233)
* Added test for server getting panic when adding password to a link * Change test case
This commit is contained in:
@@ -413,3 +413,21 @@ Feature: create a public link share
|
||||
| d:href |
|
||||
Then the HTTP status code should be "207"
|
||||
And the value of the item "//d:href" in the response should match "/%base_path%\/remote.php\/dav\/public-files\/%public_token%\/file.txt$/"
|
||||
|
||||
@issue-6929
|
||||
Scenario Outline: create a password-protected public link on a file with the name same to the previously deleted one
|
||||
Given using OCS API version "<ocs-api-version>"
|
||||
And user "Alice" has uploaded file with content "test data 1" to "/test.txt"
|
||||
And user "Alice" has created a public link share with settings
|
||||
| path | test.txt |
|
||||
| permissions | read |
|
||||
And user "Alice" has deleted file "test.txt"
|
||||
When user "Alice" updates the last public link share using the sharing API with
|
||||
| password | testpassword |
|
||||
Then the OCS status code should be "998"
|
||||
And the HTTP status code should be "<http-code>"
|
||||
And the OCS status message should be "update public share: resource not found"
|
||||
Examples:
|
||||
| ocs-api-version | http-code |
|
||||
| 1 | 200 |
|
||||
| 2 | 404 |
|
||||
|
||||
Reference in New Issue
Block a user