Test #4738
closedFile repositories shouldn't have duplicate files
Description
Ticket moved to GitHub: "pulp/pulp_file/613":https://github.com/pulp/pulp_file/issues/613
File repositories shouldn't have content units that have the same relative_path. Files are written to the filesystem based on their relative paths so obviously only one file can be written.
Test case 1¶
1. Sync a file remote repo with a file (eg 1.iso)
2. Sync a second remote with a different file with the same name
3. Confirm that there aren't two files with the same in the repo
For step 1, if you don't have two remotes that have different files with the same name, you could upload file instead and then sync for step 2.
Test case 2¶
This is the reproducer in #4028.
1. Upload two files and create two file content units with the same filename (e.g. 1.iso)
2. Add both files to your repo
3. Confirm that there aren't two files with the same in the repo
Related issues