'Normal case: target_port is not specified.'

@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_target_port_not_specified(self, volume_admin_metadata_get, execute, brick_get_connector_properties):

    compute_connector = DEFAULT_CONNECTOR.copy()
    compute_connector['ip'] = '127.0.0.2'
    drv = vsp_iscsi.VSPISCSIDriver(configuration=self.configuration, db=db)
    self._setup_config()
    self.configuration.vsp_target_ports = None
    drv.do_setup(None)
    ret = drv.initialize_connection(TEST_VOLUME[0], compute_connector)
    self.assertEqual('iscsi', ret['driver_volume_type'])
    self.assertEqual('11.22.33.44:3260', ret['data']['target_portal'])
    self.assertEqual('iqn-initiator.hbsd-target', ret['data']['target_iqn'])
    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, ret['data']['target_lun'])
