adjust tests expectation
This commit is contained in:
+18
-18
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user