[full-ci]Enforce pass by default. changed api tests (#7706)
* set enforce pass by default. change tests * fix tests * fix test
This commit is contained in:
@@ -41,16 +41,27 @@ Feature: Share spaces via link
|
||||
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:
|
||||
| permissions | expectedPermissions | password | linkName | expireDate |
|
||||
| 1 | read | 123234 | link | 2042-03-25T23:59:59+0100 |
|
||||
| 5 | read,create | qwerty 123 | | 2042-03-25T23:59:59+0100 |
|
||||
| 15 | read,update,create,delete | d*V^o*Y03R9n8Z | link | |
|
||||
| permissions | expectedPermissions | password | linkName | expireDate |
|
||||
| 1 | read | %public% | link | 2042-03-25T23:59:59+0100 |
|
||||
| 5 | read,create | %public% | | 2042-03-25T23:59:59+0100 |
|
||||
| 15 | read,update,create,delete | %public% | link | |
|
||||
|
||||
|
||||
Scenario: manager can create internal link without password
|
||||
When user "Alice" creates a public link share of the space "share space" with settings:
|
||||
| permissions | 0 |
|
||||
Then the HTTP status code should be "200"
|
||||
And the OCS status code should be "200"
|
||||
And the OCS status message should be "OK"
|
||||
And the fields of the last response to user "Alice" should include
|
||||
| permissions | 0 |
|
||||
| share_type | public_link |
|
||||
|
||||
|
||||
Scenario: uploader should be able to upload a file
|
||||
When user "Alice" creates a public link share of the space "share space" with settings:
|
||||
| permissions | 4 |
|
||||
| password | 123 |
|
||||
| password | %public% |
|
||||
| name | forUpload |
|
||||
| expireDate | 2042-03-25T23:59:59+0100 |
|
||||
Then the HTTP status code should be "200"
|
||||
@@ -66,7 +77,7 @@ Feature: Share spaces via link
|
||||
| displayname_owner | %displayname% |
|
||||
| uid_owner | %username% |
|
||||
| name | forUpload |
|
||||
And the public should be able to upload file "lorem.txt" into the last public link shared folder using the new public WebDAV API with password "123"
|
||||
And the public should be able to upload file "lorem.txt" into the last public link shared folder using the new public WebDAV API with password "%public%"
|
||||
And for user "Alice" the space "share space" should contain these entries:
|
||||
| lorem.txt |
|
||||
|
||||
@@ -92,7 +103,8 @@ Feature: Share spaces via link
|
||||
| shareWith | Brian |
|
||||
| role | manager |
|
||||
When user "Brian" creates a public link share of the space "share space" with settings:
|
||||
| permissions | 1 |
|
||||
| permissions | 1 |
|
||||
| password | %public% |
|
||||
Then the HTTP status code should be "200"
|
||||
And the OCS status code should be "200"
|
||||
And for user "Alice" the space "share space" should contain the last created public link
|
||||
@@ -101,7 +113,8 @@ Feature: Share spaces via link
|
||||
Scenario: user cannot share a disabled space to public via link
|
||||
Given user "Alice" has disabled a space "share space"
|
||||
When user "Alice" creates a public link share of the space "share space" with settings:
|
||||
| permissions | 1 |
|
||||
| permissions | 1 |
|
||||
| password | %public% |
|
||||
Then the HTTP status code should be "404"
|
||||
And the OCS status code should be "404"
|
||||
And the OCS status message should be "Wrong path, file/folder doesn't exist"
|
||||
@@ -110,7 +123,8 @@ Feature: Share spaces via link
|
||||
|
||||
Scenario: user cannot create a public link from the personal space
|
||||
When user "Alice" creates a public link share of the space "Alice Hansen" with settings:
|
||||
| permissions | 1 |
|
||||
| permissions | 1 |
|
||||
| password | %public% |
|
||||
Then the HTTP status code should be "400"
|
||||
And the OCS status message should be "Can not share space root"
|
||||
And for user "Alice" the space "Alice Hansen" should not contain the last created public link
|
||||
|
||||
Reference in New Issue
Block a user