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

Tests that verify download of content served by Pulp.

class pulp_smash.tests.pulp3.file.api_v3.test_download_content.DownloadContentTestCase(methodName='runTest')

Verify whether content served by pulp can be downloaded.


Verify whether content served by pulp can be downloaded.

The process of publishing content is more involved in Pulp 3 than it was under Pulp 2. Given a repository, the process is as follows:

  1. Create a publication from the repository. (The latest repository version is selected if no version is specified.) A publication is a repository version plus metadata.
  2. Create a distribution from the publication. The distribution defines at which URLs a publication is available, e.g. http://example.com/content/pub-name/ and https://example.com/content/pub-name/.

Do the following:

  1. Create, populate, publish, and distribute a repository.
  2. Select a random content unit in the distribution. Download that content unit from Pulp, and verify that the content unit has the same checksum when fetched directly from Pulp-Fixtures.

This test targets the following issues: