diff --git a/Tests/Scripts/CreateTestEnvironment.sql b/Tests/Scripts/CreateTestEnvironment.sql index 52aecb4..1147a60 100644 --- a/Tests/Scripts/CreateTestEnvironment.sql +++ b/Tests/Scripts/CreateTestEnvironment.sql @@ -33,22 +33,28 @@ DROP DATABASE IF EXISTS postgresclientkittest; CREATE DATABASE postgresclientkittest; +\connect postgresclientkittest + DROP USER IF EXISTS terry_postgresclientkittest; CREATE USER terry_postgresclientkittest WITH PASSWORD 'welcome1'; GRANT ALL PRIVILEGES ON DATABASE postgresclientkittest TO terry_postgresclientkittest; +GRANT ALL PRIVILEGES ON SCHEMA public TO terry_postgresclientkittest; DROP USER IF EXISTS charlie_postgresclientkittest; CREATE USER charlie_postgresclientkittest WITH PASSWORD 'welcome1'; GRANT ALL PRIVILEGES ON DATABASE postgresclientkittest TO charlie_postgresclientkittest; +GRANT ALL PRIVILEGES ON SCHEMA public TO charlie_postgresclientkittest; SET password_encryption = 'md5'; -- prevent Postgres from upgrading authn to scram-sha-256 DROP USER IF EXISTS mary_postgresclientkittest; CREATE USER mary_postgresclientkittest WITH PASSWORD 'welcome1'; GRANT ALL PRIVILEGES ON DATABASE postgresclientkittest TO mary_postgresclientkittest; +GRANT ALL PRIVILEGES ON SCHEMA public TO mary_postgresclientkittest; SET password_encryption = 'scram-sha-256'; DROP USER IF EXISTS sally_postgresclientkittest; CREATE USER sally_postgresclientkittest WITH PASSWORD 'welcome1'; GRANT ALL PRIVILEGES ON DATABASE postgresclientkittest TO sally_postgresclientkittest; +GRANT ALL PRIVILEGES ON SCHEMA public TO sally_postgresclientkittest; -- EOF