Exemplo n.º 1
0
 def test_17_check_package_in_repo(self):
     '''check a random package in the repo'''
     package_list = RHUIManagerCLI.packages_list(RHUA, self.yum_repo_ids[1])
     test_package_list = [
         package for package in package_list if package.startswith(OST_PKG)
     ]
     nose.tools.ok_(test_package_list,
                    msg="no %s* in %s" % (OST_PKG, package_list))
Exemplo n.º 2
0
 def test_07_check_package():
     '''check that the uploaded package is now in the repo'''
     package_list = RHUIManagerCLI.packages_list(RHUA, CUSTOM_REPOS[0])
     nose.tools.ok_(TEST_RPM in package_list,
                    msg="%s not found in %s" % (TEST_RPM, package_list))