From: | Michael Paquier <michael(at)paquier(dot)xyz> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Add tests for regex replacement with \1 in pg_ident.conf to 0003 |
Date: | 2023-01-13 01:35:43 |
Message-ID: | E1pG8ys-003NxB-Tq@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Add tests for regex replacement with \1 in pg_ident.conf to 0003_peer.pl
Regexp replacement with \1 in pg_ident.conf is tested in one check of
the kerberos test suite, still it requires a dependency on
--with-gssapi to be triggered. This commit adds to the test suite of
peer authentication two tests to check the replacement of \1 in a
pg-username, coupled with a system-username regexp:
- With a subexpression in system-username, similarly to the kerberos
test suite.
- Without a subexpression in system-username, checking for a failure.
This had no coverage until now, and the error pattern is checked in the
server logs.
Author: Jelte Fennema
Discussion: https://postgr.es/m/CAGECzQRNow4MwkBjgPxywXdJU_K3a9+Pm78JB7De3yQwwkTDew@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/e753ae6397fe16db8e8e5b3e34ca6d53b4eded61
Modified Files
--------------
src/test/authentication/t/003_peer.pl | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Langote | 2023-01-13 02:52:50 | Re: pgsql: Improve handling of inherited GENERATED expressions. |
Previous Message | David G. Johnston | 2023-01-13 01:15:50 | Re: pgsql: Add new GUC createrole_self_grant. |