Re: Add test case for sslinfo - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Add test case for sslinfo
Date
Msg-id 5d4c4245-6cd9-b5d3-29c0-5510e83b869d@2ndquadrant.com
Whole thread Raw
In response to Re: Add test case for sslinfo  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Add test case for sslinfo  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-hackers
On 2019-07-08 10:18, Michael Paquier wrote:
> On Mon, Jul 08, 2019 at 02:11:34PM +0800, Hao Wu wrote:
>> Thank you for your quick response! I work on greenplum, and I didn't see
>> this folder(src/test/ssl/ssl) before.
>> I will add more certificates to test and resend again.
> 
> Not having duplicates would be nice.

I think sslinfo should be tested as an extension of src/test/ssl/
instead of its own test suite.  There are too many complications that we
would otherwise have to solve again.

You might want to review commit f60a0e96778854ed0b7fd4737488ba88022e47bd
and how it adds test cases.  You can't just hardcode a specific output
since different installations might report TLS 1.2 vs 1.3, different
ciphers etc.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS)
Next
From: Konstantin Knizhnik
Date:
Subject: Re: Global temporary tables