pulp_smash.tests.docker.api_v2.test_crud

Location: Pulp SmashAPI Documentationpulp_smash.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_smash.tests.docker.api_v2.test_crud.CrudTestCase(methodName='runTest')

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.

class pulp_smash.tests.docker.api_v2.test_crud.CrudWithFeedTestCase(methodName='runTest')

CRUD a Docker repository with a feed.

static create_body()

Return a dict, with a feed, for creating a repository.

class pulp_smash.tests.docker.api_v2.test_crud.UpdateTestCase(methodName='runTest')

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:

  1. Create a docker repository and add a distributor.
  2. Update the distributor. Use the distributor’s href in the request.
  3. 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.

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

Skip tests on Pulp versions lower than 2.8.