'Normal case: Initialize connection in multipath environment.'

@mock.patch.object(utils, 'brick_get_connector_properties', side_effect=_brick_get_connector_properties)
@mock.patch.object(vsp_utils, 'execute', side_effect=_execute)
@mock.patch.object(db, 'volume_admin_metadata_get', side_effect=_volume_admin_metadata_get)
def test_initialize_connection_multipath(self, volume_admin_metadata_get, execute, brick_get_connector_properties):

    drv = vsp_iscsi.VSPISCSIDriver(configuration=self.configuration, db=db)
    self._setup_config()
    self.configuration.vsp_target_ports = ['CL1-A', 'CL1-B']
    drv.do_setup(None)
    multipath_connector = copy.copy(DEFAULT_CONNECTOR)
    multipath_connector['multipath'] = True
    ret = drv.initialize_connection(TEST_VOLUME[0], multipath_connector)
    self.assertEqual('iscsi', ret['driver_volume_type'])
    self.assertEqual(['11.22.33.44:3260', '11.22.33.44:3260'], ret['data']['target_portals'])
    self.assertEqual(['iqn-initiator.hbsd-target', 'iqn-initiator.hbsd-target'], ret['data']['target_iqns'])
    self.assertEqual('CHAP', ret['data']['auth_method'])
    self.assertEqual('auth_user', ret['data']['auth_username'])
    self.assertEqual('auth_password', ret['data']['auth_password'])
    self.assertEqual([0, 0], ret['data']['target_luns'])
