]> granicus.if.org Git - postgresql/commit
Make SSL tests more robust
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 29 Jan 2019 09:29:07 +0000 (10:29 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 29 Jan 2019 12:04:35 +0000 (13:04 +0100)
commitbdd6e9ba171765ae34d320e1be17717620cb491c
treef52a48dbf12e760befeb001467102b0e2adb4d6b
parent9745b528f7cb03be3afad0f91a634072c13ea91f
Make SSL tests more robust

Someone running these test could have key or certificate files in
their ~/.postgresql/, which would interfere with the tests.  The way
to override that is to specify sslcert=invalid and/or
sslrootcert=invalid if no actual certificate is used for a particular
test.  Document that and fix up one test that had a risk of failing in
these circumstances.

Discussion: https://www.postgresql.org/message-id/flat/398754d8-6bb5-c5cf-e7b8-22e5f0983caf@2ndquadrant.com/
src/test/ssl/ServerSetup.pm
src/test/ssl/t/002_scram.pl