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