当前位置: 首页>>代码示例>>Python>>正文


Python FactsParamsTestCase.configure_client_mock方法代码示例

本文整理汇总了Python中hpe_test_utils.FactsParamsTestCase.configure_client_mock方法的典型用法代码示例。如果您正苦于以下问题:Python FactsParamsTestCase.configure_client_mock方法的具体用法?Python FactsParamsTestCase.configure_client_mock怎么用?Python FactsParamsTestCase.configure_client_mock使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在hpe_test_utils.FactsParamsTestCase的用法示例。


在下文中一共展示了FactsParamsTestCase.configure_client_mock方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: setUp

# 需要导入模块: from hpe_test_utils import FactsParamsTestCase [as 别名]
# 或者: from hpe_test_utils.FactsParamsTestCase import configure_client_mock [as 别名]
    def setUp(self):
        self.configure_mocks(self, LogicalSwitchGroupFactsModule)
        self.logical_switch_groups = self.mock_ov_client.logical_switch_groups
        FactsParamsTestCase.configure_client_mock(self, self.logical_switch_groups)

        self.PARAMS_GET_ALL = self.EXAMPLES[0]['oneview_logical_switch_group_facts']
        self.PARAMS_GET_BY_NAME = self.EXAMPLES[4]['oneview_logical_switch_group_facts']
开发者ID:marikrg,项目名称:oneview-ansible,代码行数:9,代码来源:test_oneview_logical_switch_group_facts.py

示例2: setUp

# 需要导入模块: from hpe_test_utils import FactsParamsTestCase [as 别名]
# 或者: from hpe_test_utils.FactsParamsTestCase import configure_client_mock [as 别名]
    def setUp(self):
        self.configure_mocks(self, InterconnectFactsModule)
        self.interconnects = self.mock_ov_client.interconnects
        FactsParamsTestCase.configure_client_mock(self, self.interconnects)

        self.PARAMS_GET_ALL_PORTS = self.EXAMPLES[18]['oneview_interconnect_facts']
        self.PARAMS_GET_PORT = self.EXAMPLES[21]['oneview_interconnect_facts']
开发者ID:marikrg,项目名称:oneview-ansible,代码行数:9,代码来源:test_oneview_interconnect_facts.py

示例3: setUp

# 需要导入模块: from hpe_test_utils import FactsParamsTestCase [as 别名]
# 或者: from hpe_test_utils.FactsParamsTestCase import configure_client_mock [as 别名]
    def setUp(self):
        self.configure_mocks(self, BuildPlanFactsModule)
        self.i3s = self.mock_ov_client.create_image_streamer_client()

        FactsParamsTestCase.configure_client_mock(self, self.i3s.build_plans)

        # Load scenarios from module examples
        self.TASK_GET_ALL = self.EXAMPLES[0]['image_streamer_build_plan_facts']
        self.TASK_GET_BY_NAME = self.EXAMPLES[4]['image_streamer_build_plan_facts']

        self.BUILD_PLAN = dict(
            name="Build Plan name",
            uri="/rest/build-plans/d1c7b09a-6c7b-4ae0-b68e-ed208ccde1b0")
开发者ID:marikrg,项目名称:oneview-ansible,代码行数:15,代码来源:test_image_streamer_build_plan_facts.py

示例4: setUp

# 需要导入模块: from hpe_test_utils import FactsParamsTestCase [as 别名]
# 或者: from hpe_test_utils.FactsParamsTestCase import configure_client_mock [as 别名]
    def setUp(self):
        self.configure_mocks(self, DeploymentGroupFactsModule)
        self.i3s = self.mock_ov_client.create_image_streamer_client()

        FactsParamsTestCase.configure_client_mock(self, self.i3s.deployment_groups)

        # Load scenarios from module examples
        self.TASK_GET_ALL = self.EXAMPLES[0]['image_streamer_deployment_group_facts']
        self.TASK_GET_BY_NAME = self.EXAMPLES[4]['image_streamer_deployment_group_facts']

        self.DEPLOYMENT_GROUP = dict(
            name="OSS",
            uri="/rest/deployment-group/d1c7b09a-6c7b-4ae0-b68e-ed208ccde1b0")
开发者ID:marikrg,项目名称:oneview-ansible,代码行数:15,代码来源:test_image_streamer_deployment_group_facts.py

示例5: setUp

# 需要导入模块: from hpe_test_utils import FactsParamsTestCase [as 别名]
# 或者: from hpe_test_utils.FactsParamsTestCase import configure_client_mock [as 别名]
    def setUp(self):
        self.configure_mocks(self, OsVolumeFactsModule)
        self.i3s = self.mock_ov_client.create_image_streamer_client()

        FactsParamsTestCase.configure_client_mock(self, self.i3s.os_volumes)

        # Load scenarios from module examples
        self.PLAY_GET_ALL = self.EXAMPLES[0]['image_streamer_os_volume_facts']
        self.PLAY_GET_BY_NAME = self.EXAMPLES[4]['image_streamer_os_volume_facts']

        self.OS_VOLUME = dict(
            name="OS Volume Name",
            uri="/rest/os-volumes/a3b3c234-2ei0-b99o-jh778jsdkl2n5")
开发者ID:marikrg,项目名称:oneview-ansible,代码行数:15,代码来源:test_image_streamer_os_volume_facts.py

示例6: setUp

# 需要导入模块: from hpe_test_utils import FactsParamsTestCase [as 别名]
# 或者: from hpe_test_utils.FactsParamsTestCase import configure_client_mock [as 别名]
    def setUp(self):
        self.configure_mocks(self, GoldenImageFactsModule)
        self.i3s = self.mock_ov_client.create_image_streamer_client()

        FactsParamsTestCase.configure_client_mock(self, self.i3s.golden_images)

        # Load scenarios from module examples
        self.TASK_GET_ALL = self.EXAMPLES[0]['image_streamer_golden_image_facts']
        self.TASK_GET_BY_NAME = self.EXAMPLES[4]['image_streamer_golden_image_facts']

        self.GOLDEN_IMAGE = dict(
            name="Golden Image name",
            uri="/rest/golden-image/d1c7b09a-6c7b-4ae0-b68e-ed208ccde1b0")
开发者ID:marikrg,项目名称:oneview-ansible,代码行数:15,代码来源:test_image_streamer_golden_image_facts.py

示例7: setUp

# 需要导入模块: from hpe_test_utils import FactsParamsTestCase [as 别名]
# 或者: from hpe_test_utils.FactsParamsTestCase import configure_client_mock [as 别名]
    def setUp(self):
        self.configure_mocks(self, ArtifactBundleFactsModule)
        self.i3s = self.mock_ov_client.create_image_streamer_client()

        FactsParamsTestCase.configure_client_mock(self, self.i3s.artifact_bundles)

        self.TASK_GET_ALL = self.EXAMPLES[0]['image_streamer_artifact_bundle_facts']
        self.TASK_GET_BY_NAME = self.EXAMPLES[4]['image_streamer_artifact_bundle_facts']
        self.TASK_GET_ALL_BACKUPS = self.EXAMPLES[6]['image_streamer_artifact_bundle_facts']
        self.TASK_GET_BACKUP = self.EXAMPLES[9]['image_streamer_artifact_bundle_facts']

        self.ARTIFACT_BUNDLE = dict(
            name="HPE-ImageStreamer-Developer-2016-09-12",
            uri="/rest/artifact-bundles/a2f97f20-160c-4c78-8185-1f31f86efaf7")
开发者ID:marikrg,项目名称:oneview-ansible,代码行数:16,代码来源:test_image_streamer_artifact_bundle_facts.py

示例8: setUp

# 需要导入模块: from hpe_test_utils import FactsParamsTestCase [as 别名]
# 或者: from hpe_test_utils.FactsParamsTestCase import configure_client_mock [as 别名]
 def setUp(self):
     self.configure_mocks(self, LogicalEnclosureFactsModule)
     self.logical_enclosures = self.mock_ov_client.logical_enclosures
     FactsParamsTestCase.configure_client_mock(self, self.logical_enclosures)
开发者ID:marikrg,项目名称:oneview-ansible,代码行数:6,代码来源:test_oneview_logical_enclosure_facts.py

示例9: setUp

# 需要导入模块: from hpe_test_utils import FactsParamsTestCase [as 别名]
# 或者: from hpe_test_utils.FactsParamsTestCase import configure_client_mock [as 别名]
    def setUp(self):
        self.configure_mocks(self, ServerProfileFactsModule)

        FactsParamsTestCase.configure_client_mock(self, self.mock_ov_client.server_profiles)
开发者ID:marikrg,项目名称:oneview-ansible,代码行数:6,代码来源:test_oneview_server_profile_facts.py

示例10: setUp

# 需要导入模块: from hpe_test_utils import FactsParamsTestCase [as 别名]
# 或者: from hpe_test_utils.FactsParamsTestCase import configure_client_mock [as 别名]
 def setUp(self):
     self.configure_mocks(self, AlertFactsModule)
     self.resource = self.mock_ov_client.alerts
     FactsParamsTestCase.configure_client_mock(self, self.resource)
开发者ID:marikrg,项目名称:oneview-ansible,代码行数:6,代码来源:test_oneview_alert_facts.py

示例11: setUp

# 需要导入模块: from hpe_test_utils import FactsParamsTestCase [as 别名]
# 或者: from hpe_test_utils.FactsParamsTestCase import configure_client_mock [as 别名]
 def setUp(self):
     self.configure_mocks(self, ConnectionTemplateFactsModule)
     self.connection_templates = self.mock_ov_client.connection_templates
     FactsParamsTestCase.configure_client_mock(self, self.connection_templates)
开发者ID:marikrg,项目名称:oneview-ansible,代码行数:6,代码来源:test_oneview_connection_template_facts.py

示例12: setUp

# 需要导入模块: from hpe_test_utils import FactsParamsTestCase [as 别名]
# 或者: from hpe_test_utils.FactsParamsTestCase import configure_client_mock [as 别名]
 def setUp(self):
     self.configure_mocks(self, ServerHardwareTypeFactsModule)
     self.server_hardware_types = self.mock_ov_client.server_hardware_types
     FactsParamsTestCase.configure_client_mock(self, self.server_hardware_types)
开发者ID:marikrg,项目名称:oneview-ansible,代码行数:6,代码来源:test_oneview_server_hardware_type_facts.py

示例13: setUp

# 需要导入模块: from hpe_test_utils import FactsParamsTestCase [as 别名]
# 或者: from hpe_test_utils.FactsParamsTestCase import configure_client_mock [as 别名]
 def setUp(self):
     self.configure_mocks(self, FcoeNetworkFactsModule)
     self.fcoe_networks = self.mock_ov_client.fcoe_networks
     FactsParamsTestCase.configure_client_mock(self, self.fcoe_networks)
开发者ID:marikrg,项目名称:oneview-ansible,代码行数:6,代码来源:test_oneview_fcoe_network_facts.py

示例14: setUp

# 需要导入模块: from hpe_test_utils import FactsParamsTestCase [as 别名]
# 或者: from hpe_test_utils.FactsParamsTestCase import configure_client_mock [as 别名]
 def setUp(self):
     self.configure_mocks(self, InterconnectLinkTopologyFactsModule)
     self.interconnect_link_topologies = self.mock_ov_client.interconnect_link_topologies
     FactsParamsTestCase.configure_client_mock(self, self.interconnect_link_topologies)
开发者ID:marikrg,项目名称:oneview-ansible,代码行数:6,代码来源:test_oneview_interconnect_link_topology_facts.py

示例15: setUp

# 需要导入模块: from hpe_test_utils import FactsParamsTestCase [as 别名]
# 或者: from hpe_test_utils.FactsParamsTestCase import configure_client_mock [as 别名]
 def setUp(self):
     self.configure_mocks(self, EthernetNetworkFactsModule)
     self.ethernet_networks = self.mock_ov_client.ethernet_networks
     FactsParamsTestCase.configure_client_mock(self, self.ethernet_networks)
开发者ID:marikrg,项目名称:oneview-ansible,代码行数:6,代码来源:test_oneview_ethernet_network_facts.py


注:本文中的hpe_test_utils.FactsParamsTestCase.configure_client_mock方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。