pulp_smash.tests.pulp2.docker.api_v2.test_sync

Location: Pulp SmashAPI Documentationpulp_smash.tests.pulp2.docker.api_v2.test_sync

Tests that sync docker repositories.

class pulp_smash.tests.pulp2.docker.api_v2.test_sync.UpstreamNameTestCase(methodName='runTest')

Sync v1 and Docker repositories with varying upstream_name.

classmethod setUpClass()

Create shared variables.

test_v1_invalid_upstream_name()

Sync a v1 Docker repository with a invalid upstream_name.

Do the following:

  1. Create a v1 Docker repository.
  2. Sync the repository with an invalid upstream name, and assert it succeeds.

In addition, verify its last_override_config attribute is an empty dict after each step.

test_v1_valid_upstream_name()

Sync a v1 Docker repository with a valid upstream_name.

Do the following:

  1. Create a v1 Docker repository.
  2. Sync the repository with a valid upstream name, and assert it succeeds.

In addition, verify its last_override_config attribute is an empty dict after each step.

test_v2_invalid_upstream_name()

Sync a v2 Docker repository with a invalid upstream_name.

Do the same as test_v1_invalid_upstream_name(), but with a v2 repository.

test_v2_valid_upstream_name()

Sync a v2 Docker repository with a valid upstream_name.

Do the same as test_v1_valid_upstream_name(), but with a v2 repository.

pulp_smash.tests.pulp2.docker.api_v2.test_sync.setUpModule()

Skip tests on Pulp versions lower than 2.8.