pulp_smash.tests.pulp2.python.api_v2.test_sync_publish¶
Location: Pulp Smash → API Documentation → pulp_smash.tests.pulp2.python.api_v2.test_sync_publish
Test the sync and publish API endpoints for Python repositories.
-
class
pulp_smash.tests.pulp2.python.api_v2.test_sync_publish.
BaseTestCase
(methodName='runTest')¶ A base class for the test cases in this module.
Test cases derived from this class (should) do the following:
- Create and populate a Python repository. The procedure for populating the repository varies in each child class.
- Create a second Python repository, and sync it from the first.
In each step, the
verify_*
methods are used if appropriate.-
classmethod
setUpClass
()¶ Create class-wide variables.
-
classmethod
tearDownClass
()¶ Delete fixtures and orphans.
-
test_01_first_repo
()¶ Create, populate and publish a Python repository.
Subclasses must override this method.
-
test_02_second_repo
()¶ Create a second Python repository, and sync it from the first.
See:
Note that, for Pulp #140 to be fully tested, an additional test case should be created wherein one Pulp application syncs from another completely independent Pulp application.
-
verify_package_types
(cfg, repo)¶ Assert sdist and bdist_wheel shelf-reader packages were synced.
This test targets Pulp #1883.
-
verify_sync
(cfg, call_report)¶ Verify the call to sync a Python repository succeeded.
Assert that:
- The call report has an HTTP 202 status code.
- None of the tasks spawned by the “sync” request contain errors.
-
class
pulp_smash.tests.pulp2.python.api_v2.test_sync_publish.
SyncTestCase
(methodName='runTest')¶ Test whether content can be synced into a Python repository.
-
test_01_first_repo
()¶ Create, sync content into and publish a Python repository.
See:
-
-
class
pulp_smash.tests.pulp2.python.api_v2.test_sync_publish.
UploadTestCase
(methodName='runTest')¶ Test whether content can be uploaded to a Python repository.
-
test_01_first_repo
()¶ Create, upload content into and publish a Python repository.
See:
-
-
pulp_smash.tests.pulp2.python.api_v2.test_sync_publish.
get_details
(cfg, repo)¶ Return detailed information about a Python repository.
-
pulp_smash.tests.pulp2.python.api_v2.test_sync_publish.
get_repo_path
(cfg, repo)¶ Return the root path to a published Python repository.