Skip to content

Commit c73d253

Browse files
Merge pull request #10839 from owncloud/tests-folder-link-denied-role
[tests-only][full-ci] add test to try creating folder link share with denied role
2 parents 423a71e + 9da0f1e commit c73d253

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

tests/acceptance/features/apiSharingNgLinkSharePermission/createLinkShare.feature

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2764,3 +2764,40 @@ Feature: Create a link share for a resource
27642764
| Space Viewer |
27652765
| Space Editor |
27662766
| Manager |
2767+
2768+
@env-config
2769+
Scenario: try to create a public link share of a folder with denied permissions role
2770+
Given using spaces DAV path
2771+
And the administrator has enabled the permissions role "Denied"
2772+
And user "Alice" has created folder "FolderToShare"
2773+
When user "Alice" creates the following resource link share using the Graph API:
2774+
| resource | FolderToShare |
2775+
| space | Personal |
2776+
| permissionsRole | denied |
2777+
| password | %public% |
2778+
Then the HTTP status code should be "400"
2779+
And the JSON data of the response should match
2780+
"""
2781+
{
2782+
"type": "object",
2783+
"required": ["error"],
2784+
"properties": {
2785+
"error": {
2786+
"type": "object",
2787+
"required": [ "code", "innererror", "message" ],
2788+
"properties": {
2789+
"code": {
2790+
"const": "invalidRequest"
2791+
},
2792+
"innererror": {
2793+
"type": "object",
2794+
"required": [ "date", "request-id" ]
2795+
},
2796+
"message": {
2797+
"const": "invalid body schema definition"
2798+
}
2799+
}
2800+
}
2801+
}
2802+
}
2803+
"""

0 commit comments

Comments
 (0)