pulp_2_tests.tests.rpm.api_v2.test_repoview¶
Location: Pulp 2 Tests → Tests → pulp_2_tests.tests.rpm.api_v2.test_repoview
Tests that exercise Pulp’s repoview feature.
For more information, see:
- Pulp #189: “Repoview-like functionality for browsing repositories via the web interface”
- Yum Plugins → Yum Distributor → Optional Configuration Parameters
-
class
pulp_2_tests.tests.rpm.api_v2.test_repoview.
RepoviewTestCase
(methodName='runTest')¶ Bases:
unittest.case.TestCase
Publish a repository with the repoview feature on and off.
Do the following:
- Create an RPM repository, and add some content to it.
- Publish the repository. Get
/pulp/repos/{rel_url}/
, and verify that no redirects occur. - Publish the repository with the
repoview
andgenerate_sqlite
options set to true. Get/pulp/repos/{rel_url}/
, and verify that a redirect to/pulp/repos/{rel_url}/repoview/index.html
occurs. - Repeat step 2.
-
test_all
()¶ Publish a repository with the repoview feature on and off.