'Test attachment_create no connector.'

@mock.patch('cinder.volume.api.check_policy')
def test_additional_attachment_create_no_connector(self, mock_policy):

    volume_params = {'status': 'available'}
    vref = tests_utils.create_volume(self.context, **volume_params)
    aref = self.volume_api.attachment_create(self.context, vref, fake.UUID2)
    self.assertEqual(fake.UUID2, aref.instance_uuid)
    self.assertIsNone(aref.attach_time)
    self.assertEqual('reserved', aref.attach_status)
    self.assertIsNone(aref.attach_mode)
    self.assertEqual(vref.id, aref.volume_id)
    self.assertEqual({}, aref.connection_info)
    self.assertRaises(exception.InvalidVolume, self.volume_api.attachment_create, self.context, vref, fake.UUID1)
    self.volume_api.attachment_create(self.context, vref, fake.UUID2)
    vref = objects.Volume.get_by_id(self.context, vref.id)
    self.assertEqual(2, len(vref.volume_attachment))
