pulp_2_tests.tests.rpm.api_v2.test_copy¶
Location: Pulp 2 Tests → Tests → pulp_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:
- Create and sync a repository with errata, and RPM packages.
- Create second repository.
- Copy units from from first repository to second repository
using
recursive
as true, and filtertype_id
aserratum
. - 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:
- Create, sync and publish a repository, with
generate_sqlite
set to true. - Get the
mtime
of the sqlite files. - Upload an RPM package into the repository, and sync the repository.
- Get the
mtime
of the sqlite files again. Verify that the mtimes are the same.
- Create, sync and publish a repository, with
-