From 41c848e3aed4ea58034911fc9f76be64943ff329 Mon Sep 17 00:00:00 2001 From: Alessandro Pasotti Date: Tue, 2 Feb 2021 09:11:24 +0100 Subject: [PATCH] Re-enable tests and update docs --- .ci/test_blocklist.txt | 1 - tests/src/python/test_authmanager_password_postgres.py | 2 ++ tests/src/python/test_authmanager_pki_postgres.py | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.ci/test_blocklist.txt b/.ci/test_blocklist.txt index c9158f48aff..e6c3e7d88d2 100644 --- a/.ci/test_blocklist.txt +++ b/.ci/test_blocklist.txt @@ -11,7 +11,6 @@ qgis_sip_include qgis_sip_uptodate # Need a local postgres installation -PyQgsAuthManagerPKIPostgresTest PyQgsAuthManagerOgrPostgresTest PyQgsDbManagerPostgis diff --git a/tests/src/python/test_authmanager_password_postgres.py b/tests/src/python/test_authmanager_password_postgres.py index 296ae6963ac..10ba30413f0 100644 --- a/tests/src/python/test_authmanager_password_postgres.py +++ b/tests/src/python/test_authmanager_password_postgres.py @@ -6,6 +6,8 @@ This is an integration test for QGIS Desktop Auth Manager postgres provider that checks if QGIS can use a stored auth manager auth configuration to access a Password protected postgres. +From build dir, run: ctest -R PyQgsAuthManagerPasswordPostgresTest -V + It uses a docker container as postgres/postgis server with certificates from tests/testdata/auth_system/certs_keys_2048 Use docker-compose -f .ci/travis/linux/docker-compose.travis.yml up postgres to start the server. diff --git a/tests/src/python/test_authmanager_pki_postgres.py b/tests/src/python/test_authmanager_pki_postgres.py index 6a2cde83dbb..9ddd4f343a2 100644 --- a/tests/src/python/test_authmanager_pki_postgres.py +++ b/tests/src/python/test_authmanager_pki_postgres.py @@ -6,6 +6,8 @@ This is an integration test for QGIS Desktop Auth Manager postgres provider that checks if QGIS can use a stored auth manager auth configuration to access a PKI protected postgres. +From build dir, run: ctest -R PyQgsAuthManagerPKIPostgresTest -V + It uses a docker container as postgres/postgis server with certificates from tests/testdata/auth_system/certs_keys_2048 Use docker-compose -f .ci/travis/linux/docker-compose.travis.yml up postgres to start the server. @@ -81,7 +83,6 @@ class TestAuthManager(unittest.TestCase): assert (authm.storeAuthenticationConfig(cls.auth_config)[0]) assert cls.auth_config.isValid() - @classmethod def setUpClass(cls): """Run before all tests: