def test_05_upload_packages(self): ''' upload packages to the custom repo ''' RHUIManagerRepo.upload_content( RHUA, [self.test["repo_name"]], "/tmp/extra_rhui_files/%s" % self.test["repo_id"])
def test_05_upload_to_custom_repo(): ''' upload an unsigned and two differently signed packages to the custom repo ''' avail_rpm_names = [ pkg.rsplit('-', 2)[0] for pkg in Util.get_rpms_in_dir(RHUA, CUSTOM_RPMS_DIR) ] nose.tools.eq_( avail_rpm_names, sorted([SIGNED_PACKAGE, UNSIGNED_PACKAGE, SIGNED_PACKAGE_SIG2]), msg="Failed to find the packages to upload. Got: %s" % avail_rpm_names) RHUIManagerRepo.upload_content(RHUA, [REPO], CUSTOM_RPMS_DIR)
def test_05_add_upload_sync_stuff(self): ''' add a custom and RH content repos to protect by a cli entitlement cert, upload rpm, sync ''' RHUIManagerRepo.add_custom_repo(RHUA, CUSTOM_REPO, "", CUSTOM_PATH, "1", "y") RHUIManagerRepo.upload_content( RHUA, [CUSTOM_REPO], "%s/%s" % (CUSTOM_RPMS_DIR, self.custom_rpm)) RHUIManagerRepo.add_rh_repo_by_repo(RHUA, [ Util.format_repo(self.yum_repo_name, self.yum_repo_version, self.yum_repo_kind) ]) RHUIManagerSync.sync_repo( RHUA, [Util.format_repo(self.yum_repo_name, self.yum_repo_version)])
def test_05_upload_one_rpm(self): '''upload one rpm to the custom repo''' RHUIManagerRepo.upload_content( RHUA, [CUSTOM_REPOS[0]], "%s/%s" % (CUSTOM_RPMS_DIR, self.custom_rpms[0]))
def test_06_upload_several_rpms(): '''upload several rpms to the custom repo from a directory''' RHUIManagerRepo.upload_content(RHUA, [CUSTOM_REPOS[0]], CUSTOM_RPMS_DIR)