pulp_2_tests.tests.python.api_v2.test_duplicate_uploads¶
Location: Pulp 2 Tests → Tests → pulp_2_tests.tests.python.api_v2.test_duplicate_uploads
Tests for how well Pulp can deal with duplicate uploads.
This module targets Pulp #1406 and Pulp Smash #81. The test procedure is as follows:
- 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.
-
class
pulp_2_tests.tests.python.api_v2.test_duplicate_uploads.
DuplicateUploadsTestCase
(*args, **kwargs)¶ Bases:
pulp_smash.pulp2.utils.BaseAPITestCase
,pulp_smash.pulp2.utils.DuplicateUploadsMixin
Test how well Pulp can deal with duplicate content unit uploads.
-
classmethod
setUpClass
()¶ Create a Python repo. Upload a Python package into it twice.
-
classmethod