本文整理汇总了Python中cfme.common.provider.BaseProvider.clear_provider_by_type方法的典型用法代码示例。如果您正苦于以下问题:Python BaseProvider.clear_provider_by_type方法的具体用法?Python BaseProvider.clear_provider_by_type怎么用?Python BaseProvider.clear_provider_by_type使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cfme.common.provider.BaseProvider
的用法示例。
在下文中一共展示了BaseProvider.clear_provider_by_type方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: has_no_container_providers
# 需要导入模块: from cfme.common.provider import BaseProvider [as 别名]
# 或者: from cfme.common.provider.BaseProvider import clear_provider_by_type [as 别名]
def has_no_container_providers():
""" Clears all container providers from an appliance
This is a destructive fixture. It will clear all container managements systems from
the current appliance.
"""
BaseProvider.clear_provider_by_type(BaseProvider.type_mapping['container'], validate=True)
示例2: test_providers_discovery
# 需要导入模块: from cfme.common.provider import BaseProvider [as 别名]
# 或者: from cfme.common.provider.BaseProvider import clear_provider_by_type [as 别名]
def test_providers_discovery(request, provider):
"""Tests provider discovery
Metadata:
test_flag: crud
"""
provider.discover()
flash.assert_message_match('Infrastructure Providers: Discovery successfully initiated')
request.addfinalizer(lambda: BaseProvider.clear_provider_by_type(InfraProvider))
wait_for_a_provider()
示例3: has_no_middleware_providers
# 需要导入模块: from cfme.common.provider import BaseProvider [as 别名]
# 或者: from cfme.common.provider.BaseProvider import clear_provider_by_type [as 别名]
def has_no_middleware_providers():
"""Clear all middleware providers."""
BaseProvider.clear_provider_by_type(BaseProvider.type_mapping['middleware'], validate=True)
示例4: delete_providers_after_test
# 需要导入模块: from cfme.common.provider import BaseProvider [as 别名]
# 或者: from cfme.common.provider.BaseProvider import clear_provider_by_type [as 别名]
def delete_providers_after_test():
yield
BaseProvider.clear_provider_by_type(InfraProvider)