本文整理匯總了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)