pulp_smash.tests.puppet.api_v2.test_install_distributor

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

Tests for puppet_install_distributor.

For more information check puppet_install_distributor

class pulp_smash.tests.puppet.api_v2.test_install_distributor.InstallDistributorTestCase(methodName='runTest')

Test Puppet install distributor.

test_all()

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.puppet.api_v2.test_install_distributor.InstallDistributorThrowsOnErrorTestCase(methodName='runTest')

Test Puppet install distributor.

test_all()

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
    install_path
  3. Assert that an error is thrown
  4. Assert that no repo is created