本文整理汇总了Python中cfme.common.provider.BaseProvider.clear_providers方法的典型用法代码示例。如果您正苦于以下问题:Python BaseProvider.clear_providers方法的具体用法?Python BaseProvider.clear_providers怎么用?Python BaseProvider.clear_providers使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cfme.common.provider.BaseProvider
的用法示例。
在下文中一共展示了BaseProvider.clear_providers方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: has_no_providers
# 需要导入模块: from cfme.common.provider import BaseProvider [as 别名]
# 或者: from cfme.common.provider.BaseProvider import clear_providers [as 别名]
def has_no_providers():
""" Clears all management systems from an applicance
This is a destructive fixture. It will clear all managements systems from
the current appliance.
"""
BaseProvider.clear_providers()
示例2: handle_provider
# 需要导入模块: from cfme.common.provider import BaseProvider [as 别名]
# 或者: from cfme.common.provider.BaseProvider import clear_providers [as 别名]
def handle_provider(provider):
try:
BaseProvider.clear_providers()
providers.setup_provider(provider.key)
except FlashMessageException as e:
e.skip_and_log("Provider failed to set up")
else:
yield
finally:
BaseProvider.clear_providers()
示例3: clean_setup_provider
# 需要导入模块: from cfme.common.provider import BaseProvider [as 别名]
# 或者: from cfme.common.provider.BaseProvider import clear_providers [as 别名]
def clean_setup_provider(request, has_no_providers_modscope, setup_provider_modscope,
provider):
yield
BaseProvider.clear_providers()
示例4: clean_setup_provider
# 需要导入模块: from cfme.common.provider import BaseProvider [as 别名]
# 或者: from cfme.common.provider.BaseProvider import clear_providers [as 别名]
def clean_setup_provider(request, provider):
BaseProvider.clear_providers()
setup_or_skip(request, provider)
yield
BaseProvider.clear_providers()
示例5: has_no_providers_modscope
# 需要导入模块: from cfme.common.provider import BaseProvider [as 别名]
# 或者: from cfme.common.provider.BaseProvider import clear_providers [as 别名]
def has_no_providers_modscope(request):
BaseProvider.clear_providers()
示例6: has_no_providers
# 需要导入模块: from cfme.common.provider import BaseProvider [as 别名]
# 或者: from cfme.common.provider.BaseProvider import clear_providers [as 别名]
def has_no_providers(request):
BaseProvider.clear_providers()
示例7: a_provider
# 需要导入模块: from cfme.common.provider import BaseProvider [as 别名]
# 或者: from cfme.common.provider.BaseProvider import clear_providers [as 别名]
def a_provider(request):
BaseProvider.clear_providers()
not_scvmm = ProviderFilter(classes=[SCVMMProvider],
inverted=True) # scvmm doesn't provide events
all_prov = ProviderFilter(classes=[InfraProvider])
return setup_one_or_skip(request, filters=[not_scvmm, all_prov])
示例8: any_provider_session
# 需要导入模块: from cfme.common.provider import BaseProvider [as 别名]
# 或者: from cfme.common.provider.BaseProvider import clear_providers [as 别名]
def any_provider_session():
BaseProvider.clear_providers() # To make it clean
providers.setup_a_provider(validate=True, check_existing=True)
示例9: a_provider
# 需要导入模块: from cfme.common.provider import BaseProvider [as 别名]
# 或者: from cfme.common.provider.BaseProvider import clear_providers [as 别名]
def a_provider(request):
BaseProvider.clear_providers()
prov_filter = ProviderFilter(classes=[InfraProvider])
return setup_one_or_skip(request, filters=[prov_filter])