pulp_smash.tests.rpm.api_v2.test_content_sources

Location: Pulp SmashAPI Documentationpulp_smash.tests.rpm.api_v2.test_content_sources

Tests for Pulp’s content sources feature.

class pulp_smash.tests.rpm.api_v2.test_content_sources.InvalidHeadersTestCase(methodName='runTest')

Define a content source with invalid headers.

See: Pulp Smash #643.

classmethod setUpClass()

Create a content source with invalid headers.

classmethod tearDownClass()

Destroy the created content source.

test_content_sources()

List Pulp’s content sources.

Assert that the list doesn’t include an entry corresponding to the newly defined content source configuration file.

test_refresh_content_sources()

Refresh Pulp’s content sources.

Assert that the refresh completes successfully. It should complete successfully because the broken content source is completely skipped.

class pulp_smash.tests.rpm.api_v2.test_content_sources.ValidHeadersTestCase(methodName='runTest')

Define a content source with valid headers.

See: Pulp Smash #643.

classmethod setUpClass()

Create a content source with valid headers.

classmethod tearDownClass()

Destroy the created content source.

test_list_content_sources()

List Pulp’s content sources.

Assert that:

  1. The list includes an entry corresponding to the newly defined content source configuration file.
  2. This list entry includes the headers defined in the configuration file.
test_refresh_content_sources()

Refresh Pulp’s content sources.

Assert that the refresh completes successfully.