'Exception raised when passing invalid `region(_id)` in request.'

def test_validate_endpoint_update_fails_with_invalid_region_id(self):

    request_to_validate = {'interface': 'admin', 'region_id': 1234, 'service_id': uuid.uuid4().hex, 'url': 'https://service.example.com:5000/'}
    self.assertRaises(exception.SchemaValidationError, self.update_endpoint_validator.validate, request_to_validate)
    request_to_validate = {'interface': 'admin', 'region': 1234, 'service_id': uuid.uuid4().hex, 'url': 'https://service.example.com:5000/'}
    self.assertRaises(exception.SchemaValidationError, self.update_endpoint_validator.validate, request_to_validate)
