File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
tests/acceptance/features/apiSharingNgLinkSharePermission Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff 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+ """
You can’t perform that action at this time.
0 commit comments