mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-07-18 19:44:24 -04:00
add tests to try creating public link share with denied role
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
This commit is contained in:
@@ -2764,3 +2764,40 @@ Feature: Create a link share for a resource
|
||||
| Space Viewer |
|
||||
| Space Editor |
|
||||
| Manager |
|
||||
|
||||
@env-config
|
||||
Scenario: try to create a public link share of a folder with denied permissions role
|
||||
Given using spaces DAV path
|
||||
And the administrator has enabled the permissions role "Denied"
|
||||
And user "Alice" has created folder "FolderToShare"
|
||||
When user "Alice" creates the following resource link share using the Graph API:
|
||||
| resource | FolderToShare |
|
||||
| space | Personal |
|
||||
| permissionsRole | denied |
|
||||
| password | %public% |
|
||||
Then the HTTP status code should be "400"
|
||||
And the JSON data of the response should match
|
||||
"""
|
||||
{
|
||||
"type": "object",
|
||||
"required": ["error"],
|
||||
"properties": {
|
||||
"error": {
|
||||
"type": "object",
|
||||
"required": [ "code", "innererror", "message" ],
|
||||
"properties": {
|
||||
"code": {
|
||||
"const": "invalidRequest"
|
||||
},
|
||||
"innererror": {
|
||||
"type": "object",
|
||||
"required": [ "date", "request-id" ]
|
||||
},
|
||||
"message": {
|
||||
"const": "invalid body schema definition"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user