code stringlengths 3 6.57k |
|---|
replication.PairOp(self.driver.client) |
replication.ReplicaCommonDriver(self.configuration, op) |
ddt.data(constants.REPLICA_SECOND_RW, constants.REPLICA_SECOND_RO) |
test_replication_driver_protect_second(self, mock_access) |
replication.PairOp(self.driver.client) |
replication.ReplicaCommonDriver(self.configuration, op) |
self.mock_object(replication.ReplicaCommonDriver, 'wait_second_access') |
common_driver.protect_second(replica_id) |
common_driver.unprotect_second(replica_id) |
unittest.skip("Skip until bug #1578986 is fixed") |
test_replication_driver_sync(self) |
replication.PairOp(self.driver.client) |
replication.ReplicaCommonDriver(self.configuration, op) |
self.mock_object(replication.ReplicaCommonDriver, 'protect_second') |
common_driver.sync(replica_id, True) |
common_driver.sync(replica_id, False) |
test_replication_driver_split(self) |
replication.PairOp(self.driver.client) |
replication.ReplicaCommonDriver(self.configuration, op) |
self.mock_object(replication.ReplicaCommonDriver, 'wait_expect_state') |
exception.VolumeBackendAPIException(data='err') |
common_driver.split(replica_id) |
mock.patch.object(replication.PairOp, 'split') |
replication.PairOp(self.driver.client) |
replication.ReplicaCommonDriver(self.configuration, op) |
json.loads(FAKE_GET_PAIR_NORMAL_RESPONSE) |
common_driver.split(replica_id) |
self.assertFalse(mock_op_split.called) |
test_replication_base_op(self) |
replication.AbsReplicaOp(None) |
op.create() |
op.delete(replica_id) |
op.protect_second(replica_id) |
op.unprotect_second(replica_id) |
op.sync(replica_id) |
op.split(replica_id) |
op.switch(replica_id) |
op.is_primary({}) |
op.get_replica_info(replica_id) |
op._is_status(None, {'key': 'volue'}, None) |
test_get_tgt_port_group_no_portg_exist(self, mock_call) |
self.driver.client.get_tgt_port_group('test_portg') |
self.assertIsNone(portg) |
test_get_tgt_iqn_from_rest_match(self) |
self.driver.client._get_tgt_iqn_from_rest(ip) |
self.assertEqual(expected_iqn, iqn) |
test_get_tgt_iqn_from_rest_mismatch(self) |
self.driver.client._get_tgt_iqn_from_rest(ip) |
self.assertIsNone(iqn) |
test_create_cgsnapshot(self) |
context.get_admin_context() |
self.assertEqual(snapshots_model_update, snapshots) |
self.assertEqual('available', model['status']) |
test_create_cgsnapshot_create_snapshot_fail(self) |
context.get_admin_context() |
exception.VolumeBackendAPIException(data='err') |
test_create_cgsnapshot_active_snapshot_fail(self) |
context.get_admin_context() |
exception.VolumeBackendAPIException(data='err') |
test_delete_cgsnapshot(self) |
context.get_admin_context() |
FCSanLookupService(object) |
HuaweiFCDriverTestCase(HuaweiTestBase) |
setUp(self) |
super(HuaweiFCDriverTestCase, self) |
setUp() |
mock.Mock(spec=conf.Configuration) |
self.flags(rpc_backend='oslo_messaging._drivers.impl_fake') |
FakeHuaweiConf(self.configuration, 'FC') |
FakeFCStorage(configuration=self.configuration) |
self.driver.do_setup() |
self.driver.client.login() |
test_login_success(self) |
self.driver.client.login() |
self.assertEqual('210235G7J20000000000', device_id) |
test_create_volume_success(self) |
self.driver.create_volume(self.volume) |
self.assertEqual('1', lun_info['provider_location']) |
ddt.data(FAKE_POOLS_UNSUPPORT_REPORT, FAKE_POOLS_SUPPORT_REPORT) |
test_delete_volume_success(self, pool_data) |
self.driver.delete_volume(self.volume) |
test_delete_snapshot_success(self) |
self.driver.delete_snapshot(self.snapshot) |
unittest.skip("Skip until bug #1578986 is fixed") |
test_create_volume_from_snapsuccess(self) |
self.assertEqual('1', lun_info['provider_location']) |
test_initialize_connection_snapshot_success(self, mock_fc_init) |
self.assertEqual(1, iscsi_properties['data']['target_lun']) |
mock_fc_init.assert_called_with(volume, FakeConnector) |
test_initialize_connection_success(self) |
self.assertEqual(1, iscsi_properties['data']['target_lun']) |
test_initialize_connection_fail_no_online_wwns_in_host(self) |
test_initialize_connection_no_local_ini_tgt_map(self) |
self.driver.initialize_connection(self.hyper_volume, FakeConnector) |
test_hypermetro_connection_success(self) |
self.assertEqual(1, fc_properties['data']['target_lun']) |
test_terminate_connection_snapshot_success(self, mock_fc_term) |
mock_fc_term.assert_called_with(volume, FakeConnector) |
test_terminate_connection_success(self) |
self.driver.terminate_connection(self.volume, FakeConnector) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.