本文整理汇总了Python中utils.providers._setup_a_provider函数的典型用法代码示例。如果您正苦于以下问题:Python _setup_a_provider函数的具体用法?Python _setup_a_provider怎么用?Python _setup_a_provider使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了_setup_a_provider函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: a_provider
def a_provider():
return _setup_a_provider("infra")
示例2: setup_a_provider
def setup_a_provider():
_setup_a_provider("infra")
示例3: vmware_provider
def vmware_provider():
return _setup_a_provider("infra", "virtualcenter")
示例4: setup_a_provider
def setup_a_provider():
_setup_a_provider(prov_class="infra", validate=True, check_existing=True)
示例5: a_container_provider
def a_container_provider():
prov = _setup_a_provider("container")
yield prov
prov.delete_if_exists(cancel=False)
示例6: a_container_provider
def a_container_provider():
return _setup_a_provider("container")
示例7: setup_a_provider
def setup_a_provider():
_setup_a_provider(prov_class="cloud", prov_type="openstack", validate=True, check_existing=True)
示例8: setup_a_provider
def setup_a_provider():
try:
pf = ProviderFilter(classes=[InfraProvider], required_fields=['large'])
_setup_a_provider(filters=[pf])
except Exception:
pytest.skip("It's not possible to set up any providers, therefore skipping")