pulp_smash.tests.pulp3.file.api_v3.test_publish

Location: Pulp SmashAPI Documentationpulp_smash.tests.pulp3.file.api_v3.test_publish

Tests that publish file plugin repositories.

class pulp_smash.tests.pulp3.file.api_v3.test_publish.PublishAnyRepoVersionTestCase(methodName='runTest')

Test whether a particular repository version can be published.

This test targets the following issues:

test_all()

Test whether a particular repository version can be published.

  1. Create a repository with at least 2 repository versions.
  2. Create a publication by supplying the latest repository_version.
  3. Assert that the publication repository_version attribute points to the latest repository version.
  4. Create a publication by supplying the non-latest repository_version.
  5. Assert that the publication repository_version attribute points to the supplied repository version.
  6. Assert that an exception is raised when providing two different repository versions to be published at same time.