'attach a ECKD volume to host.'

def test_initialize_connection_of_eckd_volume(self):

    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)
    vol_type = volume_types.create(self.ctxt, 'VOL_TYPE', {})
    location = six.text_type({'vol_hex_id': TEST_ECKD_VOLUME_ID})
    volume = self._create_volume(volume_type_id=vol_type.id, provider_location=location)
    map_data = self.driver.initialize_connection(volume, {})
    self.assertEqual(int('C4', 16), map_data['data']['cula'])
    self.assertEqual(int(TEST_ECKD_VOLUME_ID[2:4], 16), map_data['data']['unit_address'])
