pulp_2_tests.tests.rpm.api_v2.test_duplicate_uploads

Location: Pulp 2 TestsTestspulp_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:

  1. Create two new feed-less iso-repo repositories.
  2. Upload content and import it into the source repository. Assert the upload and import was successful.
  3. Copy the content to a target repo. Assert the copy was successful.
  4. Upload identically named but different content and import it into the source repository. Assert the upload and import was successful.
  5. Copy the content to the target repo.
  6. 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:

  1. Create a new feed-less repository.
  2. Upload content and import it into the repository. Assert the upload and import was successful.
  3. 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.

test_iso()

Upload duplicate ISO content. See do_test().

This test targets the following issues:

test_rpm()

Upload duplicate RPM content.See do_test().

This test targets the following issues: