Fixed client tests

This commit is contained in:
antoniocarlon
2018-09-10 13:40:15 +02:00
parent b4123625f7
commit 01f145ab69
18 changed files with 72 additions and 72 deletions
@@ -38,7 +38,7 @@ SELECT * FROM _cdb_route_point_to_point_exception_safe('POINT(-3.70237112 40.417
ERROR: Routing is not allowed
-- No permissions granted but conf created
SET ROLE postgres;
SELECT CDB_Conf_SetConf('api_keys_postgres', '{"application": "testing_app", "permissions": []}');
SELECT CDB_Conf_SetConf('api_keys_postgres', '{"permissions": []}');
cdb_conf_setconf
------------------
@@ -53,7 +53,7 @@ SELECT * FROM _cdb_route_point_to_point_exception_safe('POINT(-3.70237112 40.417
ERROR: Routing is not allowed
-- Grant geocoding permissions
SET ROLE postgres;
SELECT CDB_Conf_SetConf('api_keys_postgres', '{"application": "testing_app", "permissions": ["geocoding", "routing", "isolines"]}');
SELECT CDB_Conf_SetConf('api_keys_postgres', '{"permissions": ["geocoding", "routing", "isolines"]}');
cdb_conf_setconf
------------------