api-test: mark group last-manager removal scenario as flaky (#3194)

This commit is contained in:
Viktor Scharf
2026-07-30 06:05:05 +02:00
committed by GitHub
parent fb387a16b6
commit 0a44bbae9e
2 changed files with 2 additions and 14 deletions

View File

@@ -1031,19 +1031,7 @@ class SharingNgContext implements Context {
$this->featureContext->shareNgAddToCreatedUserGroupShares($this->getDrivePermissionsList($sharer, $space));
$permissionID = $this->featureContext->shareNgGetLastCreatedUserGroupShareID();
} elseif ($shareType == 'group' && !isset($recipient)) {
// https://github.com/opencloud-eu/opencloud/pull/3179#issuecomment-5103212045
$retried = 0;
do {
$response = $this->getDrivePermissionsList($sharer, $space);
$tryAgain = $response->getStatusCode() === 404
&& $retried < HttpRequestHelper::numRetriesOnHttpTooEarly();
if ($tryAgain) {
$retried += 1;
echo "Drive permissions of space '$space' not available for user '$sharer' yet, retrying ($retried)...\n";
// wait 500ms and try again
\usleep(500 * 1000);
}
} while ($tryAgain);
$response = $this->getDrivePermissionsList($sharer, $space);
$permissionID = $this->featureContext->getJsonDecodedResponse($response)['value'][0]['id'];
} else {
$permissionID = match ($shareType) {

View File

@@ -141,7 +141,7 @@ Feature: Remove access to a drive
Then the HTTP status code should be "403"
And the user "Alice" should have a space called "NewSpace"
@flaky @issue-3193
Scenario: user of a group cannot remove own group from project space if it is the last manager using root endpoint
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And group "group1" has been created