diff --git a/test/SpecHelper.hs b/test/SpecHelper.hs index d1176ace7..081fff82f 100644 --- a/test/SpecHelper.hs +++ b/test/SpecHelper.hs @@ -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 diff --git a/test/fixtures/roles.sql b/test/fixtures/roles.sql index aa90ae997..eaa4bf7ff 100644 --- a/test/fixtures/roles.sql +++ b/test/fixtures/roles.sql @@ -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;