]> granicus.if.org Git - postgresql/commit
Check error messages in SSL tests
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 23 Feb 2018 18:54:45 +0000 (13:54 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Sat, 24 Feb 2018 15:07:45 +0000 (10:07 -0500)
commit081bfc19b3b7914b78eb44e00af9dd45325dda3e
tree4401d7e9f0a78f538ba4cc99849fe8521f4514ee
parentbc1adc651b8e60680aea144d51ae8bc78ea6b2fb
Check error messages in SSL tests

In tests that check whether a connection fails, also check the error
message.  That makes sure that the connection was rejected for the right
reason.

This discovered that two tests had their connection failing for the
wrong reason.  One test failed because pg_hba.conf was not set up to
allow that user, one test failed because the client key file did not
have the right permissions.  Fix those tests and add a new one that is
really supposed to check the file permission issue.

Reviewed-by: Michael Paquier <michael@paquier.xyz>
src/test/ssl/ServerSetup.pm
src/test/ssl/ssl/.gitignore
src/test/ssl/t/001_ssltests.pl
src/test/ssl/t/002_scram.pl