pulp_2_tests.tests.rpm.cli.test_character_encoding¶
Location: Pulp 2 Tests → Tests → pulp_2_tests.tests.rpm.cli.test_character_encoding
Tests for Pulp’s character encoding handling.
RPM files have metadata embedded in their headers. This metadata should be encoded as utf-8, and Pulp should gracefully handle cases where invalid byte sequences are encountered.
-
class
pulp_2_tests.tests.rpm.cli.test_character_encoding.
UploadNonAsciiTestCase
(methodName='runTest')¶ Bases:
unittest.case.TestCase
Test whether one can upload an RPM with non-ascii metadata.
Specifically, do the following:
- Create an RPM repository.
- Upload and import
pulp_2_tests.constants.RPM_WITH_NON_ASCII_URL
into the repository.
-
test_all
()¶ Test whether one can upload an RPM with non-ascii metadata.
-
class
pulp_2_tests.tests.rpm.cli.test_character_encoding.
UploadNonUtf8TestCase
(methodName='runTest')¶ Bases:
unittest.case.TestCase
Test whether one can upload an RPM with non-utf-8 metadata.
Specifically, do the following:
- Create an RPM repository.
- Upload and import
pulp_2_tests.constants.RPM_WITH_NON_UTF_8_URL
into the repository.
This test case targets Pulp #1903.
-
test_all
()¶ Test whether one can upload an RPM with non-utf-8 metadata.
-
pulp_2_tests.tests.rpm.cli.test_character_encoding.
setUpModule
()¶ Execute
pulp-admin login
.