本文整理汇总了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)
示例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], [])
示例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()
示例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()
示例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()
示例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)
示例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)
示例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)
示例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)