pulp_2_tests.tests.rpm.api_v2.test_duplicate_uploads¶
Location: Pulp 2 Tests → Tests → pulp_2_tests.tests.rpm.api_v2.test_duplicate_uploads
Tests for how well Pulp can deal with duplicate uploads.
-
class
pulp_2_tests.tests.rpm.api_v2.test_duplicate_uploads.
DuplicateUploadAndCopyTestCase
(methodName='runTest')¶ Bases:
unittest.case.TestCase
Test same-name content uploads do not duplicate in PULP_MANIFEST.
-
test_upload_copy_manifest
()¶ Test same-name content uploads do not duplicate in PULP_MANIFEST.
Steps:
- Create two new feed-less iso-repo repositories.
- Upload content and import it into the source repository. Assert the upload and import was successful.
- Copy the content to a target repo. Assert the copy was successful.
- Upload identically named but different content and import it into the source repository. Assert the upload and import was successful.
- Copy the content to the target repo.
- Assert the target manifest only has one entry for the content.
-
-
class
pulp_2_tests.tests.rpm.api_v2.test_duplicate_uploads.
DuplicateUploadsTestCase
(methodName='runTest')¶ Bases:
unittest.case.TestCase
Test how well Pulp can deal with duplicate unit uploads.
-
do_test
(feed, type_id, body, unit_key=None)¶ Test how well Pulp can deal with duplicate unit uploads.
Do the following:
- Create a new feed-less repository.
- Upload content and import it into the repository. Assert the upload and import was successful.
- Upload identical content and import it into the repository.
The second upload should silently fail for all Pulp releases in the 2.x series.
-
classmethod
setUpClass
()¶ Set a class-wide variable.
-