From f8bbc0e0d019ed42c64d6251ad02389273290cac Mon Sep 17 00:00:00 2001 From: Viktor Scharf Date: Tue, 10 Jun 2025 09:28:24 +0200 Subject: [PATCH] apiTest. listpermissionswithCountFilter (#1010) --- .../apiSharingNg1/listPermissions.feature | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/tests/acceptance/features/apiSharingNg1/listPermissions.feature b/tests/acceptance/features/apiSharingNg1/listPermissions.feature index 8e2b09f91a..1e1c62ea73 100644 --- a/tests/acceptance/features/apiSharingNg1/listPermissions.feature +++ b/tests/acceptance/features/apiSharingNg1/listPermissions.feature @@ -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 + } + } + } """ \ No newline at end of file