pulp_2_tests.tests.rpm.api_v2.test_signatures_checked_for_copies¶
Location: Pulp 2 Tests → Tests → pulp_2_tests.tests.rpm.api_v2.test_signatures_checked_for_copies
Tests for repository signature checks when copying packages.
This module mimics
pulp_2_tests.tests.rpm.api_v2.test_signatures_checked_for_uploads
,
except that packages are primarily copied into repositories, instead of being
uploaded.
Note
Pulp’s signature checking logic is subtle. Please read
pulp_2_tests.tests.rpm.api_v2.test_signatures_checked_for_uploads
.
-
class
pulp_2_tests.tests.rpm.api_v2.test_signatures_checked_for_copies.
AllowAnyKeyTestCase
(methodName='runTest')¶ Bases:
pulp_2_tests.tests.rpm.api_v2.test_signatures_checked_for_copies._BaseTestCase
Use an importer that allows unsigned packages and has no key IDs.
The importer should have the following pseudocode configuration:
{"require_signature": false, "allowed_keys": []}
-
test_signed_packages
()¶ Copy signed packages into a repository.
Assert packages are copied in.
-
test_unsigned_packages
()¶ Copy unsigned packages into a repository.
Assert packages are copied in.
-
-
class
pulp_2_tests.tests.rpm.api_v2.test_signatures_checked_for_copies.
AllowInvalidKeyTestCase
(methodName='runTest')¶ Bases:
pulp_2_tests.tests.rpm.api_v2.test_signatures_checked_for_copies._BaseTestCase
Use an importer that allows unsigned packages and has an invalid key ID.
The importer should have the following pseudocode configuration:
{"require_signature": false, "allowed_keys": ["invalid key id"]}
-
test_signed_packages
()¶ Copy signed packages into a repository.
Assert no packages are copied in.
-
test_unsigned_packages
()¶ Copy unsigned packages into a repository.
Assert packages are copied in.
-
-
class
pulp_2_tests.tests.rpm.api_v2.test_signatures_checked_for_copies.
AllowValidKeyTestCase
(methodName='runTest')¶ Bases:
pulp_2_tests.tests.rpm.api_v2.test_signatures_checked_for_copies._BaseTestCase
Use an importer that allows unsigned packages and has a valid key ID.
The importer should have the following pseudocode configuration:
{"require_signature": false, "allowed_keys": ["valid key id"]}
Note
Pulp’s signature checking logic is subtle. Please read
pulp_2_tests.tests.rpm.api_v2.test_signatures_checked_for_uploads
.-
test_signed_packages
()¶ Copy signed packages into a repository.
Assert packages are copied in.
-
test_unsigned_packages
()¶ Copy unsigned packages into a repository.
Assert packages are copied in.
-
-
class
pulp_2_tests.tests.rpm.api_v2.test_signatures_checked_for_copies.
RequireAnyKeyTestCase
(methodName='runTest')¶ Bases:
pulp_2_tests.tests.rpm.api_v2.test_signatures_checked_for_copies._BaseTestCase
Use an importer that requires signatures and has no key IDs.
The importer should have the following pseudocode configuration:
{"require_signature": true, "allowed_keys": []}
-
test_signed_packages
()¶ Copy signed packages into a repository.
Assert packages are copied in.
-
test_unsigned_packages
()¶ Copy unsigned packages into a repository.
Assert no packages are copied in.
-
-
class
pulp_2_tests.tests.rpm.api_v2.test_signatures_checked_for_copies.
RequireInvalidKeyTestCase
(methodName='runTest')¶ Bases:
pulp_2_tests.tests.rpm.api_v2.test_signatures_checked_for_copies._BaseTestCase
Use an importer that requires signatures and has an invalid key ID.
The importer should have the following pseudocode configuration:
{"require_signature": true, "allowed_keys": ["invalid key id"]}
-
test_signed_packages
()¶ Copy signed packages into a repository.
Assert no packages are copied in.
-
test_unsigned_packages
()¶ Copy unsigned packages into a repository.
Assert no packages are copied in.
-
-
class
pulp_2_tests.tests.rpm.api_v2.test_signatures_checked_for_copies.
RequireValidKeyTestCase
(methodName='runTest')¶ Bases:
pulp_2_tests.tests.rpm.api_v2.test_signatures_checked_for_copies._BaseTestCase
Use an importer that requires signatures and has a valid key ID.
The importer should have the following pseudocode configuration:
{"require_signature": true, "allowed_keys": ["valid key id"]}
-
test_signed_packages
()¶ Copy signed packages into a repository.
Assert packages are copied in.
-
test_unsigned_packages
()¶ Copy unsigned packages into a repository.
Assert no packages are copied in.
-
-
pulp_2_tests.tests.rpm.api_v2.test_signatures_checked_for_copies.
setUpModule
()¶ Conditionally skip tests. Create repositories with fixture data.
-
pulp_2_tests.tests.rpm.api_v2.test_signatures_checked_for_copies.
tearDownModule
()¶ Delete repositories with fixture data.