From 6faeab6fa4b48ebfe05d8399dd86bf24b055777f Mon Sep 17 00:00:00 2001 From: Juliano Solanho Date: Wed, 29 May 2024 18:44:25 -0300 Subject: [PATCH] Unblock local run of ObservabilitySpec.hs In CI I think the postgres user gets created somehow. Locally it doesn't --- nri-postgresql/setup-postgres.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nri-postgresql/setup-postgres.sh b/nri-postgresql/setup-postgres.sh index ae7130b3..eb3b1231 100755 --- a/nri-postgresql/setup-postgres.sh +++ b/nri-postgresql/setup-postgres.sh @@ -23,3 +23,7 @@ psql -c "CREATE TABLE test_table2 (enum_array_col test_enum[] NOT NULL)" || true ## Setup for test/Test.hs psql -c "CREATE TABLE constraints_table (user_id int PRIMARY KEY)" || true + +## Setup for test/ObservabilitySpec.hs +createuser -s postgres +psql -c "GRANT ALL PRIVILEGES ON DATABASE testdb TO postgres;" || true