code stringlengths 3 6.57k |
|---|
self.assertTrue(self.driver.client.terminateFlag) |
test_terminate_connection_portgroup_associated(self) |
self.driver.terminate_connection(self.volume, FakeConnector) |
test_terminate_connection_fc_initiators_exist_in_host(self) |
self.driver.terminate_connection(self.volume, FakeConnector) |
test_terminate_connection_hypermetro_in_metadata(self) |
self.driver.terminate_connection(self.hyper_volume, FakeConnector) |
test_get_volume_status(self) |
self.driver.get_volume_stats() |
self.assertEqual(self.driver.VERSION, data['driver_version']) |
self.assertTrue(data['pools'][0]['replication_enabled']) |
self.driver.get_volume_stats() |
self.assertNotIn('replication_enabled', data['pools'][0]) |
self.driver.get_volume_stats() |
self.assertEqual(self.driver.VERSION, data['driver_version']) |
self.assertNotIn('replication_enabled', data['pools'][0]) |
test_get_volume_disk_type(self, disk_type_value) |
json.loads(FAKE_STORAGE_POOL_RESPONSE) |
copy.deepcopy(response_dict) |
FakeISCSIStorage(configuration=self.configuration) |
driver.do_setup() |
driver.get_volume_stats() |
self.assertIsNone(data['pools'][0].get('disk_type') |
test_get_disk_type_pool_info_none(self) |
FakeISCSIStorage(configuration=self.configuration) |
driver.do_setup() |
driver.get_volume_stats() |
self.assertIsNone(data['pools'][0].get('disk_type') |
test_extend_volume(self) |
self.driver.extend_volume(self.volume, 3) |
test_login_fail(self) |
test_create_snapshot_fail(self) |
test_create_volume_fail(self) |
test_delete_volume_fail(self) |
self.driver.delete_volume(self.volume) |
test_delete_snapshot_fail(self) |
self.driver.delete_snapshot(self.snapshot) |
test_initialize_connection_fail(self) |
test_lun_is_associated_to_lungroup(self) |
self.driver.client.associate_lun_to_lungroup('11', '11') |
self.assertTrue(result) |
test_lun_is_not_associated_to_lun_group(self) |
self.driver.client.associate_lun_to_lungroup('12', '12') |
self.driver.client.remove_lun_from_lungroup('12', '12') |
self.assertFalse(result) |
unittest.skip("Skip until bug #1578986 is fixed") |
ddt.data(FAKE_POOLS_UNSUPPORT_REPORT, FAKE_POOLS_SUPPORT_REPORT) |
mock.patch.object(rest_client, 'RestClient') |
self.assertTrue(moved) |
self.assertEqual(empty_dict, model_update) |
self.assertTrue(moved) |
self.assertEqual(empty_dict, model_update) |
test_migrate_volume_fail(self) |
test_check_migration_valid(self) |
self.assertTrue(is_valid) |
self.assertFalse(is_valid) |
self.assertFalse(is_valid) |
self.assertFalse(is_valid) |
self.assertFalse(is_valid) |
mock.patch.object(rest_client.RestClient, 'rename_lun') |
test_update_migrated_volume_success(self, mock_rename_lun) |
self.assertEqual({'_name_id': None}, model_update) |
mock.patch.object(rest_client.RestClient, 'rename_lun') |
test_update_migrated_volume_fail(self, mock_rename_lun) |
mock.patch.object(rest_client.RestClient, 'add_lun_to_partition') |
test_retype_volume_success(self, mock_add_lun_to_partition) |
self.assertTrue(retype) |
unittest.skip("Skip until bug #1578986 is fixed") |
ddt.data(FAKE_POOLS_UNSUPPORT_REPORT, FAKE_POOLS_SUPPORT_REPORT) |
mock.patch.object(rest_client, 'RestClient') |
self.assertTrue(retype) |
self.mock_object(mock_module, mock_func, side_effect=side_effect) |
self.mock_object(rest_client.RestClient, 'add_lun_to_partition') |
self.assertFalse(retype) |
ddt.data(FAKE_POOLS_UNSUPPORT_REPORT, FAKE_POOLS_SUPPORT_REPORT) |
test_retype_volume_cache_fail(self, pool_data) |
ddt.data(FAKE_POOLS_UNSUPPORT_REPORT, FAKE_POOLS_SUPPORT_REPORT) |
test_retype_volume_partition_fail(self, pool_data) |
mock.patch.object(rest_client.RestClient, 'add_lun_to_partition') |
test_retype_volume_fail(self, mock_add_lun_to_partition) |
exception.VolumeBackendAPIException(data='Error occurred.') |
self.assertFalse(retype) |
test_build_ini_targ_map_engie_recorded(self, mock_engines) |
FCSanLookupService() |
self.assertEqual(target_port_wwns, tgt_wwns) |
self.assertEqual({}, init_targ_map) |
ddt.data(fake_fabric_mapping_no_ports, fake_fabric_mapping_no_wwn) |
test_filter_by_fabric_fail(self, ddt_map) |
FCSanLookupService() |
test_build_ini_targ_map_engie_not_recorded(self, mock_engines, map) |
FCSanLookupService() |
self.assertEqual(expected_wwns, tgt_wwns) |
self.assertEqual(expected_map, init_targ_map) |
test_build_ini_targ_map_no_map(self, mock_engines) |
FCSanLookupService() |
array.
(tgt_wwns, portg_id, init_targ_map) |
self.assertEqual(expected_wwns, tgt_wwns) |
self.assertEqual(expected_map, init_targ_map) |
mock.patch.object(rest_client.RestClient, 'delete_portgroup') |
test_build_ini_targ_map_exist_portg(self, delete, engines, portg) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.