pulp_2_tests.tests.puppet.api_v2.test_install_distributor¶
Location: Pulp 2 Tests → Tests → pulp_2_tests.tests.puppet.api_v2.test_install_distributor
Tests for puppet_install_distributor.
For more information check puppet_install_distributor
-
class
pulp_2_tests.tests.puppet.api_v2.test_install_distributor.
InstallDistributorTestCase
(*args, **kwargs)¶ Bases:
pulp_smash.pulp2.utils.BaseAPITestCase
Test Puppet install distributor.
-
test_all
()¶ Test puppet_install_distributor.
Do the following:
- Create a puppet repository with a puppet_install_distributor
- Upload a puppet module
- Publish the repository
- Check if the puppet_install_distributor config was properly used
-
-
class
pulp_2_tests.tests.puppet.api_v2.test_install_distributor.
InstallDistributorThrowsOnErrorTestCase
(*args, **kwargs)¶ Bases:
pulp_smash.pulp2.utils.BaseAPITestCase
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:
- Create a puppet repo
- Make an API call to create a distributor WITHOUT non-optional
- install_path
- Assert that an error is thrown
- Assert that no repo is created
-