pulp_2_tests.tests.docker.api_v2.test_upload¶
Location: Pulp 2 Tests → Tests → pulp_2_tests.tests.docker.api_v2.test_upload
Tests for uploading content to docker repositories.
-
class
pulp_2_tests.tests.docker.api_v2.test_upload.UploadManifestListV2TestCase(methodName='runTest')¶ Bases:
pulp_2_tests.tests.docker.api_v2.utils.SyncPublishMixin,unittest.case.TestCaseTest upload of manifest list V2 without perform a sync.
-
classmethod
setUpClass()¶ Create class-wide variables.
-
test_all()¶ Upload a V2 manifest list.
Do the following:
- Create, sync and publish a repository. Read the repository and the repository’s manifest list.
- Upload a modified version of the manifest list to the repository. Re-read the repository and the repository’s manifest list.
- Assert that:
- The repository’s manifest list hasn’t been changed. (After all, the repository hasn’t been published since the new manifest list was uploaded.)
- The repository’s
docker_manifest_listattribute has increased by the appropriate number.
This test targets the following issues:
-
classmethod
-
pulp_2_tests.tests.docker.api_v2.test_upload.setUpModule()¶ Execute
pulp-admin login.