Skip to content

Commit 6c95f19

Browse files
Merge pull request #10829 from owncloud/tests-permissions-list
[tests-only][full-ci] add test to try listing permissions of a disabled project space
2 parents 472f938 + 3de07b4 commit 6c95f19

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

tests/acceptance/features/apiSharingNg1/listPermissions.feature

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
"""

0 commit comments

Comments
 (0)