pulp_2_tests.tests.docker.api_v2.test_sync¶
Location: Pulp 2 Tests → Tests → pulp_2_tests.tests.docker.api_v2.test_sync
Tests that sync docker repositories.
-
class
pulp_2_tests.tests.docker.api_v2.test_sync.UpstreamNameTestCase(methodName='runTest')¶ Bases:
unittest.case.TestCaseSync 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:
- Create a v1 Docker repository.
- Sync the repository with an invalid upstream name, and assert it succeeds.
In addition, verify its
last_override_configattribute 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:
- Create a v1 Docker repository.
- Sync the repository with a valid upstream name, and assert it succeeds.
In addition, verify its
last_override_configattribute 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.
-
classmethod
-
pulp_2_tests.tests.docker.api_v2.test_sync.setUpModule()¶ Skip tests on Pulp versions lower than 2.8.