pulp_smash.tests.rpm.api_v2.test_repoview

Location: Pulp SmashAPI Documentationpulp_smash.tests.rpm.api_v2.test_repoview

Tests that exercise Pulp’s repoview feature.

For more information, see:

class pulp_smash.tests.rpm.api_v2.test_repoview.RepoviewTestCase(methodName='runTest')

Publish a repository with the repoview feature on and off.

Do the following:

  1. Create an RPM repository, and add some content to it.
  2. Publish the repository. Get /pulp/repos/{rel_url}/, and verify that no redirects occur.
  3. Publish the repository with the repoview and generate_sqlite options set to true. Get /pulp/repos/{rel_url}/, and verify that a redirect to /pulp/repos/{rel_url}/repoview/index.html occurs.
  4. Repeat step 2.
test_all()

Publish a repository with the repoview feature on and off.