Tests that perform actions over orphan files.
Test whether orphans files can be clean up.
An orphan artifact is an artifact that is not in any content units. An orphan content unit is a content unit that is not in any repository version.
This test targets the following issues:
Create class-wide variables.
Test whether orphan artifacts units can be clean up.
Test whether orphan content units can be clean up.
Do the following:
- Create, and sync a repo.
- Remove a content unit from the repo. This will create a second repository version, and create an orphan content unit.
- Assert that content unit that was removed from the repo and its artifact are present on disk.
- Delete orphans.
- Assert that the orphan content unit was cleaned up, and its artifact is not present on disk.