Add TAP tests for contrib/sslinfo
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Tue, 30 Nov 2021 10:19:59 +0000 (11:19 +0100)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Tue, 30 Nov 2021 10:19:59 +0000 (11:19 +0100)
commitae81776a23f78babc9707e22f95dea15aa2dbcd2
treef6e949d6f966aa6323e3a14d0a1507f71efe6c36
parent879fc1a579cc2e2e1dbb79686668b4de2071ab83
Add TAP tests for contrib/sslinfo

This adds rudimentary coverage of the sslinfo extension into the SSL
test harness.  The output is validated by comparing with pg_stat_ssl
to provide some level of test stability should the underlying certs
be slightly altered.  A new cert is added to provide an extension to
test against.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Andrew Dunstan <andrew@dunslane.net>
Reviewed-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Discussion: https://postgr.es/m/E23F9811-0C77-45DA-912F-D809AB140741@yesql.se
src/test/ssl/Makefile
src/test/ssl/README
src/test/ssl/conf/client_ext.config [new file with mode: 0644]
src/test/ssl/ssl/client_ext.crt [new file with mode: 0644]
src/test/ssl/ssl/client_ext.key [new file with mode: 0644]
src/test/ssl/sslfiles.mk
src/test/ssl/t/003_sslinfo.pl [new file with mode: 0644]