當前位置: 首頁>>代碼示例>>Python>>正文


Python provider.BaseProvider類代碼示例

本文整理匯總了Python中cfme.common.provider.BaseProvider的典型用法代碼示例。如果您正苦於以下問題:Python BaseProvider類的具體用法?Python BaseProvider怎麽用?Python BaseProvider使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了BaseProvider類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: has_no_infra_providers

def has_no_infra_providers():
    """ Clears all infrastructure providers from an appliance

    This is a destructive fixture. It will clear all infrastructure managements systems from
    the current appliance.
    """
    BaseProvider.clear_providers_by_class(InfraProvider, validate=True)
開發者ID:rananda,項目名稱:cfme_tests,代碼行數:7,代碼來源:provider.py

示例2: load_details

 def load_details(self, refresh=False):
     """Call super class `load_details` and load `db_id` if not set"""
     BaseProvider.load_details(self, refresh=refresh)
     if not self.db_id or refresh:
         tmp_provider = _db_select_query(
             name=self.name, type='ManageIQ::Providers::Hawkular::MiddlewareManager').first()
         self.db_id = tmp_provider.id
開發者ID:akrzos,項目名稱:cfme_tests,代碼行數:7,代碼來源:provider.py

示例3: has_no_providers

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()
開發者ID:FilipB,項目名稱:cfme_tests,代碼行數:7,代碼來源:mgmt_system.py

示例4: has_no_containers_providers

def has_no_containers_providers():
    """ Clears all containers providers from an appliance

    This is a destructive fixture. It will clear all container managements systems from
    the current appliance.
    """
    BaseProvider.clear_providers_by_class(ContainersProvider, validate=True)
開發者ID:rananda,項目名稱:cfme_tests,代碼行數:7,代碼來源:provider.py

示例5: has_no_container_providers

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)
開發者ID:FilipB,項目名稱:cfme_tests,代碼行數:7,代碼來源:mgmt_system.py

示例6: handle_provider

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()
開發者ID:patchkez,項目名稱:cfme_tests,代碼行數:10,代碼來源:test_utilization_metrics.py

示例7: test_providers_discovery

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()
開發者ID:ManageIQ,項目名稱:integration_tests,代碼行數:10,代碼來源:test_providers.py

示例8: a_provider

def a_provider(request):
    BaseProvider.clear_providers()
    prov_filter = ProviderFilter(classes=[InfraProvider])
    return setup_one_or_skip(request, filters=[prov_filter])
開發者ID:jkandasa,項目名稱:integration_tests,代碼行數:4,代碼來源:test_infra_object_tag_visibility.py

示例9: clean_setup_provider

def clean_setup_provider(request, provider):
    BaseProvider.clear_providers()
    setup_or_skip(request, provider)
    yield
    BaseProvider.clear_providers()
開發者ID:hhovsepy,項目名稱:cfme_tests,代碼行數:5,代碼來源:test_utilization_metrics.py

示例10: clean_setup_provider

def clean_setup_provider(request, has_no_providers_modscope, setup_provider_modscope,
        provider):
    yield
    BaseProvider.clear_providers()
開發者ID:LandoCalrizzian,項目名稱:cfme_tests,代碼行數:4,代碼來源:test_metering_report.py

示例11: has_no_providers_modscope

def has_no_providers_modscope(request):
    BaseProvider.clear_providers()
開發者ID:apagac,項目名稱:cfme_tests,代碼行數:2,代碼來源:provider.py

示例12: has_no_middleware_providers

def has_no_middleware_providers():
    """Clear all middleware providers."""
    BaseProvider.clear_providers_by_class(MiddlewareProvider, validate=True)
開發者ID:rananda,項目名稱:cfme_tests,代碼行數:3,代碼來源:provider.py

示例13: has_no_providers

def has_no_providers(request):
    BaseProvider.clear_providers()
開發者ID:apagac,項目名稱:cfme_tests,代碼行數:2,代碼來源:provider.py

示例14: has_no_middleware_providers

def has_no_middleware_providers():
    """Clear all middleware providers."""
    BaseProvider.clear_provider_by_type(BaseProvider.type_mapping['middleware'], validate=True)
開發者ID:FilipB,項目名稱:cfme_tests,代碼行數:3,代碼來源:mgmt_system.py

示例15: any_provider_session

def any_provider_session():
    BaseProvider.clear_providers()  # To make it clean
    providers.setup_a_provider(validate=True, check_existing=True)
開發者ID:FilipB,項目名稱:cfme_tests,代碼行數:3,代碼來源:provider.py


注:本文中的cfme.common.provider.BaseProvider類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。