-
Notifications
You must be signed in to change notification settings - Fork 124
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
1183784 - clean hosting directories on repo distributor delete #648
Conversation
|
||
# remove certificates for certificate based auth | ||
configuration.remove_cert_based_auth(repo, config) | ||
|
||
def clean_simple_hosting_directories(self, start_location, containing_dir): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing doc
This PR is missing the detailed unit tests of the logic for the clean_simple_hosted_directories method. All it is doing is ensuring that the method is called. |
@barnabycourt, fixed based on PR comments, read for re-review. |
# remove the directory. It is possible that the concurrent operation created the | ||
# listing file before this operation deleted it, so to be safe, we need to | ||
# regenerate the listing file. | ||
util.generate_listing_files(up_dir, up_dir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does not appear that this code path is covered in the unit test
one other code path that should be covered in the unit tests but otherwise LGTM |
4b585a4
to
f891e20
Compare
1183784 - clean hosting directories on repo distributor delete
When repos are deleted, the simple hosting directory structure that matches their relative url is not cleaned up, which leaves the opportunity to conflict with sub-urls of deleted repos.
BZ-1183784
This patch cleans up this directory structure when a repo is deleted. There is also a migration to clean already existing orphaned directories.