apiTest. listpermissionswithCountFilter (#1010)

This commit is contained in:
Viktor Scharf
2025-06-10 09:28:24 +02:00
committed by GitHub
parent 5aa62bff7a
commit f8bbc0e0d0

View File

@@ -2741,4 +2741,32 @@ Feature: List a sharing permissions
}
}
}
"""
Scenario: user lists permissions of a project space with count filter
Given using spaces DAV path
And user "Brian" has been created with default attributes
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "new-space" with the default quota using the Graph API
And user "Alice" has sent the following space share invitation:
| space | new-space |
| sharee | Brian |
| shareType | user |
| permissionsRole | Space Viewer |
When user "Alice" gets the drive permittion list of the space "new-space" using the Graph API with query "$count=true&$top=0"
Then the HTTP status code should be "200"
And the JSON data of the response should match
"""
{
"type": "object",
"required": [
"@odata.count"
],
"properties": {
"@odata.count": {
"const": 2
}
}
}
"""