adjust tests expectation

This commit is contained in:
Saw-jan
2023-07-31 12:57:00 +05:45
parent 8f7c6e165a
commit a2ee62bde1
10 changed files with 90 additions and 90 deletions
@@ -19,12 +19,12 @@ Feature: reshare as public link
When user "Brian" creates a public link share using the sharing API with settings
| path | /Shares/test |
| publicUpload | false |
Then the OCS status code should be "404"
Then the OCS status code should be "403"
And the HTTP status code should be "<http_status_code>"
Examples:
| ocs_api_version | http_status_code |
| 1 | 200 |
| 2 | 404 |
| 2 | 403 |
Scenario Outline: creating a public link from a share with share+read only permissions is allowed
@@ -56,12 +56,12 @@ Feature: reshare as public link
| path | /Shares/test |
| permissions | read,update,create,delete |
| publicUpload | true |
Then the OCS status code should be "404"
Then the OCS status code should be "403"
And the HTTP status code should be "<http_status_code>"
Examples:
| ocs_api_version | http_status_code |
| 1 | 200 |
| 2 | 404 |
| 2 | 403 |
Scenario Outline: creating a public link from a share with read+write permissions only is not allowed
@@ -72,12 +72,12 @@ Feature: reshare as public link
When user "Brian" creates a public link share using the sharing API with settings
| path | /Shares/test |
| publicUpload | true |
Then the OCS status code should be "404"
Then the OCS status code should be "403"
And the HTTP status code should be "<http_status_code>"
Examples:
| ocs_api_version | http_status_code |
| 1 | 200 |
| 2 | 404 |
| 2 | 403 |
Scenario Outline: creating a public link from a share with share+read+write permissions is allowed
@@ -131,12 +131,12 @@ Feature: reshare as public link
| path | /Shares/test/sub |
| permissions | read,update,create,delete |
| publicUpload | true |
Then the OCS status code should be "404"
Then the OCS status code should be "403"
And the HTTP status code should be "<http_status_code>"
Examples:
| ocs_api_version | http_status_code |
| 1 | 200 |
| 2 | 404 |
| 2 | 403 |
Scenario Outline: increasing permissions of a public link of a share with share+read only permissions is not allowed
@@ -151,13 +151,13 @@ Feature: reshare as public link
| publicUpload | false |
When user "Brian" updates the last public link share using the sharing API with
| permissions | read,update,create,delete |
Then the OCS status code should be "404" or "403"
And the HTTP status code should be "<http_status_code1>" or "<http_status_code2>"
Then the OCS status code should be "403"
And the HTTP status code should be "<http_status_code>"
And uploading a file should not work using the new public WebDAV API
Examples:
| ocs_api_version | http_status_code1 | http_status_code2 |
| 1 | 200 | 200 |
| 2 | 404 | 403 |
| ocs_api_version | http_status_code |
| 1 | 200 |
| 2 | 403 |
Scenario Outline: increasing permissions of a public link from a sub-folder of a share with share+read only permissions is not allowed
@@ -173,10 +173,10 @@ Feature: reshare as public link
And uploading a file should not work using the new public WebDAV API
When user "Brian" updates the last public link share using the sharing API with
| permissions | read,update,create,delete |
Then the OCS status code should be "404" or "403"
And the HTTP status code should be "<http_status_code1>" or "<http_status_code2>"
Then the OCS status code should be "403"
And the HTTP status code should be "<http_status_code>"
And uploading a file should not work using the new public WebDAV API
Examples:
| ocs_api_version | http_status_code1 | http_status_code2 |
| 1 | 200 | 200 |
| 2 | 404 | 403 |
| ocs_api_version | http_status_code |
| 1 | 200 |
| 2 | 403 |