File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
tests/acceptance/features/apiSharingNg1 Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -2535,3 +2535,35 @@ Feature: List a sharing permissions
25352535 }
25362536 }
25372537 """
2538+
2539+ @issue-9764
2540+ Scenario : user tries to list permissions of a disabled project space using root endpoint
2541+ Given using spaces DAV path
2542+ And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
2543+ And user "Alice" has created a space "new-space" with the default quota using the Graph API
2544+ And user "Alice" has disabled a space "new-space"
2545+ When user "Alice" tries to list the permissions of space "new-space" using root endpoint of the Graph API
2546+ Then the HTTP status code should be "404"
2547+ And the JSON data of the response should match
2548+ """
2549+ {
2550+ "type": "object",
2551+ "required": ["error"],
2552+ "properties": {
2553+ "error": {
2554+ "type": "object",
2555+ "required": ["code", "innererror", "message"],
2556+ "properties": {
2557+ "code": { "const": "itemNotFound" },
2558+ "innererror": {
2559+ "type": "object",
2560+ "required": ["date", "request-id"]
2561+ },
2562+ "message": {
2563+ "pattern": "stat: error: not found: %user_id_pattern%$"
2564+ }
2565+ }
2566+ }
2567+ }
2568+ }
2569+ """
You can’t perform that action at this time.
0 commit comments