Skip to content

Commit

Permalink
Merge pull request #10961 from owncloud/add-test-for-filtering-permis…
Browse files Browse the repository at this point in the history
…sion-of-project-drive-resource

[tests-only][full-ci]Add tests for filtering permission of project resource
  • Loading branch information
amrita-shrestha authored Feb 10, 2025
2 parents 7c5a87d + 703b38e commit 2b28907
Show file tree
Hide file tree
Showing 3 changed files with 357 additions and 170 deletions.
25 changes: 0 additions & 25 deletions tests/acceptance/bootstrap/SharingNgContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -2111,31 +2111,6 @@ public function theJsonResponseShouldOrShouldNotContainTheFollowingShares(
}
}

/**
* @When /^user "([^"]*)" gets the allowed roles for federated user of (folder|file) "([^"]*)" from the space "([^"]*)" using the Graph API$/
*
* @param string $user
* @param string $fileOrFolder (file|folder)
* @param string $resource
* @param string $space
*
* @return void
* @throws Exception
*/
public function userGetsFederatedPermissionsListForFileOfTheSpaceUsingTheGraphApi(
string $user,
string $fileOrFolder,
string $resource,
string $space
): void {
$query = '[email protected]'
. '/rolePermissions/any(p:contains(p/condition,+\'@Subject.UserType=="Federated"\'))'
. '&[email protected]';
$this->featureContext->setResponse(
$this->getPermissionsList($user, $fileOrFolder, $space, $resource, $query)
);
}

/**
* @When /^user "([^"]*)" lists permissions with following filters for (folder|file) "([^"]*)" of the space "([^"]*)" using the Graph API:$/
*
Expand Down
Loading

0 comments on commit 2b28907

Please sign in to comment.