Location: Pulp SmashAPI Documentationpulp_smash.tests.pulp2.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.pulp2.docker.api_v2.test_crud.CrudTestCase(*args, **kwargs)

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.pulp2.docker.api_v2.test_crud.CrudWithFeedTestCase(*args, **kwargs)

CRUD a Docker repository with a feed.

static create_body()

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

class pulp_smash.tests.pulp2.docker.api_v2.test_crud.UpdateTestCase(*args, **kwargs)

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.

Verify each of the server’s responses has a correct status code.


Verify the information sent to the server can be read back.


Skip tests on Pulp versions lower than 2.8.