当前位置: 首页>>代码示例>>Python>>正文


Python Orphans.delete方法代码示例

本文整理汇总了Python中pulp_auto.units.Orphans.delete方法的典型用法代码示例。如果您正苦于以下问题:Python Orphans.delete方法的具体用法?Python Orphans.delete怎么用?Python Orphans.delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pulp_auto.units.Orphans的用法示例。


在下文中一共展示了Orphans.delete方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: tearDownClass

# 需要导入模块: from pulp_auto.units import Orphans [as 别名]
# 或者: from pulp_auto.units.Orphans import delete [as 别名]
 def tearDownClass(cls):
     for repo_id in ['SimpleRepoCopyTest_repo', 'SimpleRepoCopyTest_copy', 'SimpleRepoCopyTest_copy1']:
         Repo({'id': repo_id}).delete(cls.pulp)
     #orphans also should be deleted in cleanup
     delete_response = Orphans.delete(cls.pulp)
     delete_task = Task.from_response(delete_response)
     delete_task.wait(cls.pulp)
开发者ID:alexxa,项目名称:pulp-automation,代码行数:9,代码来源:test_12_yum_repo_copy.py

示例2: test_03_delete_orphans

# 需要导入模块: from pulp_auto.units import Orphans [as 别名]
# 或者: from pulp_auto.units.Orphans import delete [as 别名]
 def test_03_delete_orphans(self):
     delete_response = Orphans.delete(self.pulp)
     self.assertPulpOK()
     Task.wait_for_report(self.pulp, delete_response)
     info = Orphans.info(self.pulp)
     orphans = Orphans.get(self.pulp)
     self.assertPulpOK()
     for orphan_type_name in info.keys():
         self.assertEqual(len(orphans[orphan_type_name]), info[orphan_type_name]['count'])
         self.assertEqual(orphans[orphan_type_name], [])
开发者ID:CUXIDUMDUM,项目名称:pulp-automation,代码行数:12,代码来源:test_10_orphans.py

示例3: tearDownClass

# 需要导入模块: from pulp_auto.units import Orphans [as 别名]
# 或者: from pulp_auto.units.Orphans import delete [as 别名]
 def tearDownClass(cls):
     with \
         cls.pulp.asserting(True), \
         cls.agent.catching(False), \
         cls.agent.running(cls.qpid_handle, frequency=10) \
     :
         Task.wait_for_report(cls.pulp, cls.repo.delete(cls.pulp))
         Task.wait_for_report(cls.pulp, Orphans.delete(cls.pulp))
         cls.consumer.delete(cls.pulp)
     super(ConsumerAgentPulpTest, cls).tearDownClass()
开发者ID:CUXIDUMDUM,项目名称:pulp-automation,代码行数:12,代码来源:pulp_test.py

示例4: tearDownClass

# 需要导入模块: from pulp_auto.units import Orphans [as 别名]
# 或者: from pulp_auto.units.Orphans import delete [as 别名]
    def tearDownClass(cls):
        # delete repo
        with cls.pulp.asserting(True):
            response = cls.repo.delete(cls.pulp)
        Task.wait_for_report(cls.pulp, response)
        
        # delete orphans
        with cls.pulp.asserting(True):
            response = Orphans.delete(cls.pulp)
        Task.wait_for_report(cls.pulp, response)

        # unregister consumer
        cls.consumer.cli.unregister()
        super(RegRepoNoFeedTest, cls).tearDownClass()
开发者ID:CUXIDUMDUM,项目名称:pulp-automation,代码行数:16,代码来源:test_01_rpm_repo_without_feed.py

示例5: tearDownClass

# 需要导入模块: from pulp_auto.units import Orphans [as 别名]
# 或者: from pulp_auto.units.Orphans import delete [as 别名]
    def tearDownClass(cls):
        with cls.pulp.asserting(True):
            response = cls.repo1.delete(cls.pulp)
        Task.wait_for_report(cls.pulp, response)

        with cls.pulp.asserting(True):
            response = cls.repo2.delete(cls.pulp)
        Task.wait_for_report(cls.pulp, response)

        # delete orphans
        with cls.pulp.asserting(True):
            response = Orphans.delete(cls.pulp)
        Task.wait_for_report(cls.pulp, response)

        super(PackageCategoryTest, cls).tearDownClass()
开发者ID:RedHatQE,项目名称:pulp-automation,代码行数:17,代码来源:test_04_package_category.py

示例6: test_10_delete_orphans

# 需要导入模块: from pulp_auto.units import Orphans [as 别名]
# 或者: from pulp_auto.units.Orphans import delete [as 别名]
 def test_10_delete_orphans(self):
     delete_response = Orphans.delete(self.pulp)
     self.assertPulpOK()
     task = Task.from_response(delete_response)
     task.wait(self.pulp)
开发者ID:alexxa,项目名称:pulp-automation,代码行数:7,代码来源:test_15_iso_repo.py

示例7: test_10_delete_orphans

# 需要导入模块: from pulp_auto.units import Orphans [as 别名]
# 或者: from pulp_auto.units.Orphans import delete [as 别名]
 def test_10_delete_orphans(self):
     delete_response = Orphans.delete(self.pulp)
     self.assertPulpOK()
     Task.wait_for_report(self.pulp, delete_response)
开发者ID:RedHatQE,项目名称:pulp-automation,代码行数:6,代码来源:test_15_iso_repo.py

示例8: test_07_delete_orphans

# 需要导入模块: from pulp_auto.units import Orphans [as 别名]
# 或者: from pulp_auto.units.Orphans import delete [as 别名]
 def test_07_delete_orphans(self):
     response = Orphans.delete(self.pulp)
     task = Task.from_response(response)
     task.wait(self.pulp)
开发者ID:alexxa,项目名称:pulp-automation,代码行数:6,代码来源:test_16_unit_search.py

示例9: test_07_delete_orphans

# 需要导入模块: from pulp_auto.units import Orphans [as 别名]
# 或者: from pulp_auto.units.Orphans import delete [as 别名]
 def test_07_delete_orphans(self):
     response = Orphans.delete(self.pulp)
     Task.wait_for_report(self.pulp, response)
开发者ID:preethit,项目名称:pulp-automation,代码行数:5,代码来源:test_16_unit_search.py


注:本文中的pulp_auto.units.Orphans.delete方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。