'create volume which type is ECKD.'

@mock.patch.object(helper.DS8KCommonHelper, '_create_lun')
def test_create_eckd_volume(self, mock_create_lun):

    self.configuration.connection_type = storage.XIV_CONNECTION_TYPE_FC_ECKD
    self.configuration.ds8k_devadd_unitadd_mapping = 'C4-10'
    self.configuration.ds8k_ssid_prefix = 'FF'
    self.configuration.san_clustername = TEST_ECKD_POOL_ID
    self.driver = FakeDS8KProxy(self.storage_info, self.logger, self.exception, self)
    self.driver.setup(self.ctxt)
    extra_spec = {'drivers:thin_provision': 'False'}
    vol_type = volume_types.create(self.ctxt, 'VOL_TYPE', extra_spec)
    volume = self._create_volume(volume_type_id=vol_type.id)
    mock_create_lun.return_value = TEST_ECKD_VOLUME_ID
    vol = self.driver.create_volume(volume)
    location = ast.literal_eval(vol['provider_location'])
    self.assertEqual('3390', vol['metadata']['data_type'])
    self.assertEqual(TEST_ECKD_VOLUME_ID, vol['metadata']['vol_hex_id'])
    self.assertEqual(TEST_ECKD_VOLUME_ID, location['vol_hex_id'])
