pulp_smash.tests.rpm.cli.test_character_encoding

Location: Pulp SmashAPI Documentationpulp_smash.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_smash.tests.rpm.cli.test_character_encoding.UploadNonAsciiTestCase(methodName='runTest')

Test whether one can upload an RPM with non-ascii metadata.

Specifically, do the following:

  1. Create an RPM repository.
  2. Upload and import pulp_smash.constants.RPM_WITH_NON_ASCII_URL into the repository.
test_all()

Test whether one can upload an RPM with non-ascii metadata.

class pulp_smash.tests.rpm.cli.test_character_encoding.UploadNonUtf8TestCase(methodName='runTest')

Test whether one can upload an RPM with non-utf-8 metadata.

Specifically, do the following:

  1. Create an RPM repository.
  2. Upload and import pulp_smash.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_smash.tests.rpm.cli.test_character_encoding.setUpModule()

Execute pulp-admin login.