Location: Pulp SmashAPI Documentationpulp_smash.tests.pulp2.platform.api_v2.test_consumer

Test the consumer API endpoints.

class pulp_smash.tests.pulp2.platform.api_v2.test_consumer.BindConsumerTestCase(methodName='runTest')

Show that one can bind a consumer to a repository.


Bind a consumer to a distributor.

Do the following:

  1. Create a repository with a distributor.
  2. Create a consumer.
  3. Bind the consumer to the distributor.

Assert that:

  • The response has an HTTP 200 status code.
  • The response body contains the correct values.