本文整理汇总了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']
示例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']
示例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")
示例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")
示例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")
示例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")
示例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")
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)