Location: Pulp SmashAPI Documentationpulp_smash.tests.pulp2.puppet.api_v2.test_install_distributor

Tests for puppet_install_distributor.

For more information check puppet_install_distributor

class pulp_smash.tests.pulp2.puppet.api_v2.test_install_distributor.InstallDistributorTestCase(*args, **kwargs)

Test Puppet install distributor.


Test puppet_install_distributor.

Do the following:

  1. Create a puppet repository with a puppet_install_distributor
  2. Upload a puppet module
  3. Publish the repository
  4. Check if the puppet_install_distributor config was properly used
class pulp_smash.tests.pulp2.puppet.api_v2.test_install_distributor.InstallDistributorThrowsOnErrorTestCase(*args, **kwargs)

Test Puppet install distributor.


Creating a repo with an invalid distributor should throw an error.

This test targets Pulp #1237. Do the following:

  1. Create a puppet repo
  2. Make an API call to create a distributor WITHOUT non-optional
  3. Assert that an error is thrown
  4. Assert that no repo is created