pulp_2_tests.tests.docker.api_v2.test_crud¶
Location: Pulp 2 Tests → Tests → pulp_2_tests.tests.docker.api_v2.test_crud
Test CRUD for Docker repositories.
This module contains tests for creating Docker repositories. It is intended to also contain read, update, and delete tests.
-
class
pulp_2_tests.tests.docker.api_v2.test_crud.
CrudTestCase
(*args, **kwargs)¶ Bases:
pulp_smash.pulp2.utils.BaseAPICrudTestCase
CRUD a minimal Docker repository.
-
static
create_body
()¶ Return a dict for creating a repository.
-
static
update_body
()¶ Return a dict for creating a repository.
-
static
-
class
pulp_2_tests.tests.docker.api_v2.test_crud.
CrudWithFeedTestCase
(*args, **kwargs)¶ Bases:
pulp_2_tests.tests.docker.api_v2.test_crud.CrudTestCase
CRUD a Docker repository with a feed.
-
static
create_body
()¶ Return a dict, with a feed, for creating a repository.
-
static
-
class
pulp_2_tests.tests.docker.api_v2.test_crud.
UpdateTestCase
(*args, **kwargs)¶ Bases:
pulp_smash.pulp2.utils.BaseAPITestCase
Show it is possible to update a distributor for a docker repository.
-
classmethod
setUpClass
()¶ Create a docker repo with a distributor, and update the distributor.
Do the following:
- Create a docker repository and add a distributor.
- Update the distributor. Use the distributor’s href in the request.
- Update the distributor. Use the repository’s href in the request, and ensure the distributor is updated by packing certain data in the request body.
-
test_status_codes
()¶ Verify each of the server’s responses has a correct status code.
-
test_update_accepted
()¶ Verify the information sent to the server can be read back.
-
classmethod
-
pulp_2_tests.tests.docker.api_v2.test_crud.
setUpModule
()¶ Skip tests on Pulp versions lower than 2.8.