pulp_2_tests.tests.rpm.cli.test_upload

Location: Pulp 2 TestsTestspulp_2_tests.tests.rpm.cli.test_upload

Tests that upload content units into repositories.

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

Bases: unittest.case.TestCase

Test whether one can upload a DRPM into a repository.

This test case targets Pulp Smash #336 and Pulp Smash #585

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.
test_upload_with_checksumtype()

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 specifying the checksumtype
  4. Use pulp-admin to verify its presence in the repository.
  5. Upload the same DRPM into the same repository, and use the --skip-existing flag during the upload. Verify that Pulp skips the upload.
pulp_2_tests.tests.rpm.cli.test_upload.setUpModule()

Execute pulp-admin login on the target Pulp system.