[tests-only] [full-ci] removing the setresponse in given/then step in publicwebdav context (#7439)

* refactored given steps

* refactored some when stepa

* refactored remaining when and then steps

* use of when step for the action

* changed line no in expected failure

* remove and add same kind of steps in the scenario and refactored function names

* adressing reviews
This commit is contained in:
Karun Atreya
2023-10-13 16:59:43 +05:45
committed by GitHub
parent c9ca9a6dcd
commit afcdb7617d
7 changed files with 146 additions and 129 deletions
@@ -36,7 +36,8 @@ Feature: Share spaces via link
| displayname_owner | %displayname% |
| uid_owner | %username% |
| name | <linkName> |
And the public should be able to download file "/test.txt" from inside the last public link shared folder using the new public WebDAV API with password "<password>"
When the public downloads file "/test.txt" from inside the last public link shared folder with password "<password>" using the new public WebDAV API
Then the HTTP status code should be "200"
And the downloaded content should be "some content"
But the public should not be able to download file "/test.txt" from inside the last public link shared folder using the new public WebDAV API with password "wrong pass"
Examples: