Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QA] Test for concurrent ocm sharing #11035

Open
1 task
saw-jan opened this issue Feb 19, 2025 · 0 comments
Open
1 task

[QA] Test for concurrent ocm sharing #11035

saw-jan opened this issue Feb 19, 2025 · 0 comments
Assignees
Labels

Comments

@saw-jan
Copy link
Member

saw-jan commented Feb 19, 2025

Original: #10971 (comment)

...are there by any chance some concurrency tests already? Something like creating two OCM shares at "the same time" (I'm not sure if we need / can achieve exact same time execution). I'd be curios if we could see something like race condition situations with the current single file JSON backend if we send multiple requests at once.

Similar to owncloud/QA#828 but only do multiple concurrent shares by a user. Currently, our test infrastructure doesn't support parallel requests (at least using scenario steps). But it should be possible to do the parallel requests in php.

Parallel requests example:

$body = GraphHelper::prepareCreateUserPayload(
$attributesToCreateUser['userid'],
$attributesToCreateUser['password'],
$attributesToCreateUser['email'],
$attributesToCreateUser['displayname']
);
$request = GraphHelper::createRequest(
$this->getBaseUrl(),
$this->getStepLineRef(),
"POST",
'users',
$body,
);
// Add the request to the $requests array so that they can be sent in parallel.
$requests[] = $request;

Open Task:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Qualification
Development

No branches or pull requests

2 participants