pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Gustafsson <dgustafsson@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add TAP tests for contrib/sslinfo
Date: Tue, 30 Nov 2021 10:50:16 +0000
Message-ID: <E1ms0iG-00050P-1G@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ae81776a23f78babc9707e22f95dea15aa2dbcd2

Modified Files
--------------
src/test/ssl/Makefile               |   2 +
src/test/ssl/README                 |   2 +
src/test/ssl/conf/client_ext.config |  16 +++++
src/test/ssl/ssl/client_ext.crt     |  21 ++++++
src/test/ssl/ssl/client_ext.key     |  28 ++++++++
src/test/ssl/sslfiles.mk            |   2 +-
src/test/ssl/t/003_sslinfo.pl       | 134 ++++++++++++++++++++++++++++++++++++
7 files changed, 204 insertions(+), 1 deletion(-)



view thread (24+ messages)  latest in thread

Message-ID: <E1ms0iG-00050P-1G@gemulon.postgresql.org>
Permalink:  ../E1ms0iG-00050P-1G@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ms0iG-00050P-1G@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: dgustafsson@postgresql.org
  Subject: Re: pgsql: Add TAP tests for contrib/sslinfo
  In-Reply-To: <E1ms0iG-00050P-1G@gemulon.postgresql.org>
  References: <E1ms0iG-00050P-1G@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox