def setUpClass(cls):
     super(PuppetSearchRepoTest, cls).setUpClass()
     repo_id = cls.__name__
     queries = ['tomcat']
     cls.repo, _, _ = create_puppet_repo(cls.pulp, repo_id, queries)
     cls.repo1, _, _ = create_puppet_repo(cls.pulp, repo_id + '1', queries)
     Task.wait_for_report(cls.pulp, cls.repo.sync(cls.pulp))
 def setUpClass(cls):
     super(PuppetSearchRepoTest, cls).setUpClass()
     repo_id = cls.__name__
     queries = ['tomcat']
     cls.repo, _, _ = create_puppet_repo(cls.pulp, repo_id, queries)
     cls.repo1, _, _ = create_puppet_repo(cls.pulp, repo_id + '1', queries)
     Task.wait_for_report(cls.pulp, cls.repo.sync(cls.pulp))
 def setUpClass(cls):
     super(PuppetSearchRepoTest, cls).setUpClass()
     repo_id = cls.__name__
     queries = ['tomcat']
     cls.repo, _, _ = create_puppet_repo(cls.pulp, repo_id, queries)
     cls.repo1, _, _ = create_puppet_repo(cls.pulp, repo_id + '1', queries)
     sync_task = Task.from_response(cls.repo.sync(cls.pulp))[0]
     sync_task.wait(cls.pulp)
 def setUpClass(cls):
     super(PuppetCopyRepoTest, cls).setUpClass()
     repo_id = cls.__name__
     queries = ['tomcat']
     # create source repo and sync it to have modules fetched
     cls.source_repo, _, _ = create_puppet_repo(cls.pulp, repo_id, queries)
     Task.wait_for_report(cls.pulp, cls.source_repo.sync(cls.pulp))
     # create two destinations repos for copy purpose
     cls.dest_repo1, _, _ = create_puppet_repo(cls.pulp, repo_id + '1', feed=None)
     cls.dest_repo2, _, _ = create_puppet_repo(cls.pulp, repo_id + '2', feed=None)
 def setUpClass(cls):
     super(PuppetCopyRepoTest, cls).setUpClass()
     repo_id = cls.__name__
     queries = ["tomcat"]
     # create source repo and sync it to have modules fetched
     cls.source_repo, _, _ = create_puppet_repo(cls.pulp, repo_id, queries)
     Task.wait_for_report(cls.pulp, cls.source_repo.sync(cls.pulp))
     # create two destinations repos for copy purpose
     cls.dest_repo1, _, _ = create_puppet_repo(cls.pulp, repo_id + "1", feed=None)
     cls.dest_repo2, _, _ = create_puppet_repo(cls.pulp, repo_id + "2", feed=None)
     # create data for repo
     cls.invalid_repo = Repo(data={"id": cls.__name__ + "_invalidrepo"})
     # create yum repo
     cls.yumrepo, _, _ = create_yum_repo(cls.pulp, repo_id + "yum", feed=None)
Esempio n. 6
0
 def setUpClass(cls):
     super(PuppetCopyRepoTest, cls).setUpClass()
     repo_id = cls.__name__
     queries = ['tomcat']
     # create source repo and sync it to have modules fetched
     cls.source_repo, _, _ = create_puppet_repo(cls.pulp, repo_id, queries)
     Task.wait_for_report(cls.pulp, cls.source_repo.sync(cls.pulp))
     # create two destinations repos for copy purpose
     cls.dest_repo1, _, _ = create_puppet_repo(cls.pulp, repo_id + '1', feed=None)
     cls.dest_repo2, _, _ = create_puppet_repo(cls.pulp, repo_id + '2', feed=None)
     # create data for repo
     cls.invalid_repo = Repo(data={'id': cls.__name__ + "_invalidrepo"})
     # create yum repo
     cls.yumrepo, _, _ = create_yum_repo(cls.pulp, repo_id + 'yum', feed=None)
 def setUpClass(cls):
     super(UnitSearchTest, cls).setUpClass()
     #create and sync puppet repo
     repo_id = cls.__name__
     queries = ['tomcat']
     cls.repo1, _, _ = create_puppet_repo(cls.pulp, repo_id, queries)
     sync_task = Task.from_response(cls.repo1.sync(cls.pulp))[0]
     sync_task.wait(cls.pulp)
     # create and sync rpm repo
     repo_config = [repo for repo in ROLES.repos if repo.type == 'rpm'][0]
     cls.repo2, _, _ = create_yum_repo(cls.pulp, **repo_config)
     sync_task = Task.from_response(cls.repo2.sync(cls.pulp))[0]
     sync_task.wait(cls.pulp)
 def setUpClass(cls):
     super(UnitSearchTest, cls).setUpClass()
     # create and sync puppet repo
     repo_id = cls.__name__
     queries = ["jenkins"]
     # make sure we run clean
     response = Repo({"id": repo_id}).delete(cls.pulp)
     if response == ResponseLike(202):
         Task.wait_for_report(cls.pulp, response)
     cls.repo1, _, _ = create_puppet_repo(cls.pulp, repo_id, queries)
     Task.wait_for_report(cls.pulp, cls.repo1.sync(cls.pulp))
     # create and sync rpm repo
     repo_config = [repo for repo in ROLES.repos if repo.type == "rpm"][0]
     cls.repo2, _, _ = create_yum_repo(cls.pulp, **repo_config)
     Task.wait_for_report(cls.pulp, cls.repo2.sync(cls.pulp))
Esempio n. 9
0
 def setUpClass(cls):
     super(UnitSearchTest, cls).setUpClass()
     #create and sync puppet repo
     repo_id = cls.__name__
     queries = ['jenkins']
     # make sure we run clean
     response = Repo({'id': repo_id}).delete(cls.pulp)
     if response == ResponseLike(202):
         Task.wait_for_report(cls.pulp, response)
     cls.repo1, _, _ = create_puppet_repo(cls.pulp, repo_id, queries)
     Task.wait_for_report(cls.pulp, cls.repo1.sync(cls.pulp))
     # create and sync rpm repo
     repo_config = [repo for repo in ROLES.repos if repo.type == 'rpm'][0]
     cls.repo2, _, _ = create_yum_repo(cls.pulp, **repo_config)
     Task.wait_for_report(cls.pulp, cls.repo2.sync(cls.pulp))