Skip to content

Commit

Permalink
the tests were modified
Browse files Browse the repository at this point in the history
  • Loading branch information
2403905 committed Dec 4, 2023
1 parent f5f2354 commit 219fbce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ Feature: changing a public link share
| path | /PARENT |
| password | |
Then the HTTP status code should be "200"
And the OCS status code should be "400"
And the OCS status message should be "missing required password"
And the OCS status code should be "104"
And the OCS status message should be "user is not allowed to delete the password from the public link"


Scenario: administrator removes password of a read-only public link
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,25 +101,6 @@ Feature: update a public link share
| 2 | 200 |


Scenario Outline: creating a new public link share with password and removing (updating) it to make the resources accessible without password using public API
Given using OCS API version "<ocs_api_version>"
And user "Alice" has uploaded file with content "Random data" to "/randomfile.txt"
And user "Alice" has created a public link share with settings
| path | randomfile.txt |
| password | %public% |
When user "Alice" updates the last public link share using the sharing API with
#removing password is basically making password empty
| password | %remove% |
Then the OCS status code should be "<ocs_status_code>"
And the HTTP status code should be "200"
And the public should be able to download the last publicly shared file using the old public WebDAV API without a password and the content should be "Random data"
And the public should be able to download the last publicly shared file using the new public WebDAV API without a password and the content should be "Random data"
Examples:
| ocs_api_version | ocs_status_code |
| 1 | 100 |
| 2 | 200 |


Scenario Outline: creating a new public link share, updating its password and getting its info
Given using OCS API version "<ocs_api_version>"
And user "Alice" has created folder "FOLDER"
Expand Down

0 comments on commit 219fbce

Please sign in to comment.