Replaces postgrest_authenticator for postgrest_test_authenticator

This commit is contained in:
Diogo Biazus
2015-12-08 11:53:18 -05:00
parent d95aeb15f9
commit 8b4cb4be6e
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ import PostgREST.Error(pgErrResponse)
import PostgREST.DbStructure
dbString :: String
dbString = "postgres://postgrest_authenticator@localhost:5432/postgrest_test"
dbString = "postgres://postgrest_test_authenticator@localhost:5432/postgrest_test"
cfg :: String -> Maybe Int -> AppConfig
cfg conStr = AppConfig conStr 3000 "postgrest_anonymous" "test" (secret "safe") 10
+3 -3
View File
@@ -1,7 +1,7 @@
DROP ROLE IF EXISTS postgrest_authenticator, postgrest_anonymous, test_default_role, postgrest_test_author;
CREATE ROLE postgrest_authenticator WITH login;
DROP ROLE IF EXISTS postgrest_test_authenticator, postgrest_anonymous, test_default_role, postgrest_test_author;
CREATE ROLE postgrest_test_authenticator WITH login;
CREATE ROLE postgrest_anonymous;
CREATE ROLE test_default_role;
CREATE ROLE postgrest_test_author;
GRANT postgrest_anonymous, test_default_role, postgrest_test_author TO postgrest_authenticator;
GRANT postgrest_anonymous, test_default_role, postgrest_test_author TO postgrest_test_authenticator;