Use test-specific temp path for keys during SSL test
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Tue, 30 Nov 2021 10:21:27 +0000 (11:21 +0100)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Tue, 30 Nov 2021 10:21:27 +0000 (11:21 +0100)
commitc113d8ad50d62bfcc16bbd5ceec91122e0046ede
treed4031b62663d1e3c05968486bd90bfd4540dec38
parentae81776a23f78babc9707e22f95dea15aa2dbcd2
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
src/test/ssl/ssl/.gitignore
src/test/ssl/t/001_ssltests.pl
src/test/ssl/t/002_scram.pl