From f9bd469ea9a973f2ab077e57b22e640c2e8e83ba Mon Sep 17 00:00:00 2001 From: Rafa de la Torre Date: Wed, 17 Jul 2019 09:46:49 +0200 Subject: [PATCH] Make oauth tests a bit more robust --- test/CDB_OAuth.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/CDB_OAuth.sql b/test/CDB_OAuth.sql index 4a2b447..c3c14e6 100644 --- a/test/CDB_OAuth.sql +++ b/test/CDB_OAuth.sql @@ -1,7 +1,9 @@ -- Create user and enable OAuth event trigger \set QUIET on SET client_min_messages TO error; +DROP ROLE IF EXISTS "creator_role"; CREATE ROLE "creator_role" LOGIN; +DROP ROLE IF EXISTS "ownership_role"; CREATE ROLE "ownership_role" LOGIN; GRANT ALL ON SCHEMA cartodb TO "creator_role"; SELECT CDB_Conf_SetConf('api_keys_creator_role', '{"username": "creator_role", "permissions":[]}');