[tests-only] Tidy up user cleanup when running on OCIS or reva #38661
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
PR owncloud/ocis#1962 has been merged in OCIS. That has fixed the user delete so that all files of a user are deleted when the user is deleted. But it doesn't seem to have fixed it for
owncloud
storage.We can remove the special code that does a default attempt to delete the user's files, unless the storage driver is
owncloud
Note: there is also cleanup code that does:
That may not be needed any more. I will make a separate PR to remove that and test if it is really needed or not.
How Has This Been Tested?
CI
owncloud/ocis#1982 demonstrates that this works OK when testing with OCIS. You set the env var
STORAGE_DRIVER
in the drone pipeline step that runs the test scenarios, so that it knows which storage driver is being used on the system-under-test. Then the test code can make an informed decision about what extra "manual" cleanup of users it needs to do.Types of changes
Checklist: