pulp_smash.tests.docker.api_v2.test_sync

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

Tests that sync docker repositories.

class pulp_smash.tests.docker.api_v2.test_sync.UpstreamNameTestsMixin

Provides tests that sync a repository and override upstream_name.

Any class inheriting from this mixin must also inherit from pulp_smash.utils.BaseAPITestCase.

test_invalid_upstream_name()

Sync the repository and pass an invalid upstream_name.

Verify the sync request is rejected with an HTTP 400 status code.

test_valid_upstream_name()

Sync the repository and pass a valid upstream_name.

Verify the sync succeeds.

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

Sync a v1 docker repository with various upstream_name options.

This test targets Pulp #2230.

classmethod setUpClass()

Create a docker repository with an importer.

The importer has no upstream_name set. it must be passed via override_config when a sync is requested.

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

Sync a v2 docker repository with various upstream_name options.

This test targets Pulp #2230.

classmethod setUpClass()

Create a docker repository with an importer.

The importer has no upstream_name set. it must be passed via override_config when a sync is requested.

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

Skip tests on Pulp versions lower than 2.8.