Orphan finder: drop the per-project finding

Overall finding is much faster, at the expense of a bit more RAM.
This commit is contained in:
2017-09-13 17:27:32 +02:00
parent be6746f7ab
commit 3be47056a0
2 changed files with 18 additions and 47 deletions

View File

@@ -91,6 +91,6 @@ class OrphanFilesTest(AbstractPillarTest):
from pillar.cli.maintenance import _find_orphan_files
for pid in project_ids:
orphans = _find_orphan_files(pid)
self.assertEqual({file_ids[pid][3]}, orphans)
expect_orphans = {file_ids[pid][3] for pid in project_ids}
found_orphans = _find_orphan_files()
self.assertEqual(expect_orphans, found_orphans)