'Exception raised when `service_id` isn\'t in endpoint request.'

def test_validate_endpoint_create_fails_without_service_id(self):

    request_to_validate = {'interface': 'public', 'url': 'https://service.example.com:5000/'}
    self.assertRaises(exception.SchemaValidationError, self.create_endpoint_validator.validate, request_to_validate)
