pulp_2_tests.tests.rpm.api_v2.test_copy

Location: Pulp 2 TestsTestspulp_2_tests.tests.rpm.api_v2.test_copy

Test cases that copy content units.

class pulp_2_tests.tests.rpm.api_v2.test_copy.CopyErrataRecursiveTestCase(methodName='runTest')

Bases: unittest.case.TestCase

Test that recursive copy of erratas copies RPM packages.

test_all()

Test that recursive copy of erratas copies RPM packages.

This test targets the following issues:

Do the following:

  1. Create and sync a repository with errata, and RPM packages.
  2. Create second repository.
  3. Copy units from from first repository to second repository using recursive as true, and filter type_id as erratum.
  4. Assert that RPM packages were copied.
class pulp_2_tests.tests.rpm.api_v2.test_copy.MtimeTestCase(methodName='runTest')

Bases: unittest.case.TestCase

Test whether copied files retain their original mtime.

test_all()

Test whether copied files retain their original mtime.

This test targets the following issues:

Do the following:

  1. Create, sync and publish a repository, with generate_sqlite set to true.
  2. Get the mtime of the sqlite files.
  3. Upload an RPM package into the repository, and sync the repository.
  4. Get the mtime of the sqlite files again. Verify that the mtimes are the same.