'Test initialize_connection
Ensure that initialize connection returns,
all the correct connection values'

def test_initialize_connection(self):

    p = self.proxy(self.default_storage_info, mock.MagicMock(), test_mock.cinder.exception)
    p.ibm_storage_iqn = 'BLAIQN'
    p.ibm_storage_portal = 'BLAPORTAL'
    p.ibm_storage_cli = mock.MagicMock()
    p.ibm_storage_cli.cmd.vol_list.return_value.as_list = ['aa']
    host = self._get_test_host()
    setattr(p, '_get_host_and_fc_targets', mock.MagicMock(return_value=([], host)))
    setattr(p, '_vol_map_and_get_lun_id', mock.MagicMock(return_value=100))
    p.volume_exists = mock.MagicMock(return_value=True)
    info = p.initialize_connection(TEST_VOLUME, {})
    self.assertEqual(p.meta.get('ibm_storage_portal'), info['data']['target_portal'])
    self.assertEqual(p.meta.get('ibm_storage_iqn'), info['data']['target_iqn'])
    self.assertEqual(100, info['data']['target_lun'])
