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

[tests-only] Tidy up user cleanup when running on OCIS or reva #38661

Merged
merged 2 commits into from
Apr 29, 2021

Conversation

phil-davis
Copy link
Contributor

@phil-davis phil-davis commented Apr 28, 2021

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:

	$this->deleteAllSharesForUser($user["actualUsername"]);

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:
  • Changelog item, see TEMPLATE

@phil-davis phil-davis marked this pull request as ready for review April 28, 2021 16:53
@sonarcloud
Copy link

sonarcloud bot commented Apr 28, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants