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.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:
- Create a yum repository.
- Download a DRPM file.
- Upload the DRPM into it. Use
pulp-admin
to verify its presence in the repository. - 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:
- Create a yum repository.
- Download a DRPM file.
- Upload the DRPM into it specifying the checksumtype
- Use
pulp-admin
to verify its presence in the repository. - 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.