From 1ee0c36e79bfac3470f5cfe9f5d93faae6d5d9ff Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 25 Jun 2024 09:42:28 +0200 Subject: [PATCH] Note the privs required by PostgreSQL user sourcing test init scripts --- tests/README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/README.md b/tests/README.md index 22dbd028b14..387d42970f2 100644 --- a/tests/README.md +++ b/tests/README.md @@ -40,16 +40,18 @@ The test database must be initialized using the sql-scripts: tests/testdata/provider/testdata_pg*.sql -They take care of activating PostGIS and creating some tables containing -test data. +They take care of creating database test users, activating PostGIS +and creating some tables containing test data. For this reason the +database role running them needs to have privileges to perform +those operations. For convenience, a shell script is provided to create the database and initialize it as needed: tests/testdata/provider/testdata_pg.sh -Some tests will attempt to create database users too and expect them to -be allowed to connect using a password. +Some tests will attempt to create database users too and expect them +to be allowed to connect using a password. Most PostgreSQL installation by default use "ident" authentication model when connecting via unix sockets. Make sure the `qgis_test` service (or your `QGIS_PGTEST_DB` connection string) uses a connection