pulp_2_tests.tests.rpm.cli.test_upload¶
Location: Pulp 2 Tests → Tests → pulp_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.TestCaseTest 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:
- Create a yum repository.
- Download a DRPM file.
- Upload the DRPM into it. Use
pulp-adminto verify its presence in the repository. - Upload the same DRPM into the same repository, and use the
--skip-existingflag 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:
- Create a yum repository.
- Download a DRPM file.
- Upload the DRPM into it specifying the checksumtype
- Use
pulp-adminto verify its presence in the repository. - Upload the same DRPM into the same repository, and use the
--skip-existingflag during the upload. Verify that Pulp skips the upload.
-
-
pulp_2_tests.tests.rpm.cli.test_upload.setUpModule()¶ Execute
pulp-admin loginon the target Pulp system.