Add tests for libpq gssencmode and sslmode options
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sun, 7 Apr 2024 23:49:32 +0000 (02:49 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sun, 7 Apr 2024 23:49:32 +0000 (02:49 +0300)
commit1169920ff77025550718b90a5cafc6849875f43f
tree29e07fafe1a9d535b971a3d906c605d7823b6d83
parent9f899562d420fe36305badc169550673914389b7
Add tests for libpq gssencmode and sslmode options

Test all combinations of gssencmode, sslmode, whether the server
supports SSL and/or GSSAPI encryption, and whether they are accepted
by pg_hba.conf. This is in preparation for refactoring that code in
libpq, and for adding a new option for "direct SSL" connections, which
adds another dimension to the logic.

If we add even more options in the future, testing all combinations
will become unwieldy and we'll need to rethink this, but for now an
exhaustive test is nice.

Author: Heikki Linnakangas, Matthias van de Meent
Reviewed-by: Jacob Champion
Discussion: https://www.postgresql.org/message-id/a3af4070-3556-461d-aec8-a8d794f94894@iki.fi
.cirrus.tasks.yml
src/test/libpq_encryption/Makefile [new file with mode: 0644]
src/test/libpq_encryption/README [new file with mode: 0644]
src/test/libpq_encryption/meson.build [new file with mode: 0644]
src/test/libpq_encryption/t/001_negotiate_encryption.pl [new file with mode: 0644]
src/test/meson.build