pulp_smash.tests.rpm.cli.test_upload

Location: Pulp SmashAPI Documentationpulp_smash.tests.rpm.cli.test_upload

Tests that upload content units into repositories.

class pulp_smash.tests.rpm.cli.test_upload.UploadDrpmTestCase(methodName='runTest')

Test whether one can upload a DRPM into a repository.

This test case targets Pulp Smash #336

test_upload()

Create a repository and upload DRPMs into it.

Specifically, do the following:

  1. Create a yum repository.
  2. Download a DRPM file.
  3. Upload the DRPM into it. Use pulp-admin to verify its presence in the repository.
  4. Upload the same DRPM into the same repository, and use the --skip-existing flag during the upload. Verify that Pulp skips the upload.
pulp_smash.tests.rpm.cli.test_upload.setUpModule()

Execute pulp-admin login on the target Pulp system.