This repository was archived by the owner on Jan 5, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
This repository was archived by the owner on Jan 5, 2026. It is now read-only.
..._without_api_key_raise_error integration tests failing #495
Copy link
Copy link
Open
Labels
Description
https://ci.cartodb.net/job/CartoDB-DATASERVICES-API-Integration-testing/496/console
Example:
09:52:46 ======================================================================
09:52:46 FAIL: test_if_select_with_routing_point_to_point_without_api_key_raise_error (test.integration.test_routing_functions.TestRoutingFunctions)
09:52:46 ----------------------------------------------------------------------
09:52:46 Traceback (most recent call last):
09:52:46 File "/home/ubuntu/workspace/CartoDB-DATASERVICES-API-Integration-testing/test/integration/test_routing_functions.py", line 35, in test_if_select_with_routing_point_to_point_without_api_key_raise_error
09:52:46 assert_equal(e.message[0], "The api_key must be provided")
09:52:46 AssertionError: u'function cdb_route_point_to_point(geometry, geometry, unknown, text[]) does not exist' != 'The api_key must be provided'
09:52:46 -------------------- >> begin captured stdout << ---------------------
09:52:46 Executing query: https://juanignaciosl10.carto.com/api/v1/sql?q=SELECT duration, length, shape as the_geom FROM cdb_route_point_to_point('POINT(-3.70237112 40.41706163)'::geometry, 'POINT(-3.69909883 40.41236875)'::geometry, 'car', ARRAY['mode_type=shortest']::text[])
09:52:46
09:52:46 --------------------- >> end captured stdout << ----------------------
09:52:46 -------------------- >> begin captured logging << --------------------
09:52:46 requests.packages.urllib3.connectionpool: INFO: Starting new HTTPS connection (1): juanignaciosl10.carto.com
09:52:46 requests.packages.urllib3.connectionpool: DEBUG: "GET /api/v1/sql?q=SELECT%20duration,%20length,%20shape%20as%20the_geom%20FROM%20cdb_route_point_to_point('POINT(-3.70237112%2040.41706163)'::geometry,%20'POINT(-3.69909883%2040.41236875)'::geometry,%20'car',%20ARRAY['mode_type=shortest']::text[]) HTTP/1.1" 400 206
09:52:46 --------------------- >> end captured logging << ---------------------
That can be fixed with alter role publicuser set search_path to "$user",public,cartodb,cdb_dataservices_client;, but either those test expectations are no longer true, or publicuser role settings is missing the right cdb_dataservices_client.
cc @ethervoid @javitonino @ramiroaznar for RT
Reactions are currently unavailable