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.
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.
-