Обсуждение: pgsql: Use more verbose matching patterns for errors in SSL TAP tests

Поиск
Список
Период
Сортировка

pgsql: Use more verbose matching patterns for errors in SSL TAP tests

От
Michael Paquier
Дата:
Use more verbose matching patterns for errors in SSL TAP tests

The TAP tests of src/test/ssl/ have been using rather generic matching
patterns to check some failure scenarios, like "SSL error" or just
"FATAL".  These have been introduced in 081bfc1.

Those messages are not wrong per se, but when working on the integration
of new SSL libraries it becomes hard to know if those errors are legit
or not, and existing scenarios may fail in incorrect ways.  This commit
makes all those messages more verbose by adding the information
generated by OpenSSL.  Fortunately, the same error messages are used for
all the versions supported on HEAD (checked that after running the tests
from 1.0.1 to 1.1.1), so the change is straight-forward.

Reported-by: Jacob Champion, Álvaro Herrera
Discussion: https://postgr.es/m/YGU3AxQh0zBMMW8m@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8d3a4c3eae5367fba60ab77c159814defba784fe

Modified Files
--------------
src/test/ssl/t/001_ssltests.pl | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)