pgsql: Use test-specific temp path for keys during SSL test - Mailing list pgsql-committers

From Daniel Gustafsson
Subject pgsql: Use test-specific temp path for keys during SSL test
Date
Msg-id E1ms0iG-00050S-1f@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Use test-specific temp path for keys during SSL test

The SSL and SCRAM TAP test suites both use temporary copies of the
supplied test keys in order to ensure correct permissions.  These
were however copied inside the tree using temporary filenames rather
than a true temporary folder.  Fix by using tmp_check supplied by
PostgreSQL::Test::Utils. Spotted by Tom Lane during review of the
nearby sslinfo TAP test patch.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/599244.1638041239@sss.pgh.pa.us

Branch
------
master

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

Modified Files
--------------
src/test/ssl/ssl/.gitignore    |  1 -
src/test/ssl/t/001_ssltests.pl | 85 ++++++++++++++++++++----------------------
src/test/ssl/t/002_scram.pl    |  5 +--
3 files changed, 42 insertions(+), 49 deletions(-)


pgsql-committers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: pgsql: Add a view to show the stats of subscription workers.
Next
From: Daniel Gustafsson
Date:
Subject: pgsql: Remove PF_USED_FOR_ASSERTS_ONLY from variables in general use