mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-05 02:46:10 +02:00
debian/tests/ssl: Force md5 auth if cl-postmodern is too old.
This commit is contained in:
parent
0925960989
commit
a94a0a3327
1
debian/changelog
vendored
1
debian/changelog
vendored
@ -2,6 +2,7 @@ pgloader (3.6.3-1) unstable; urgency=medium
|
||||
|
||||
* New upstream version.
|
||||
* Remove cl-pgloader, deprecated upstream.
|
||||
* debian/tests/ssl: Force md5 auth if cl-postmodern is too old.
|
||||
|
||||
-- Christoph Berg <myon@debian.org> Tue, 21 Dec 2021 10:09:53 +0100
|
||||
|
||||
|
||||
2
debian/tests/control
vendored
2
debian/tests/control
vendored
@ -1,3 +1,3 @@
|
||||
Depends: pgloader, ca-certificates, postgresql
|
||||
Depends: pgloader, ca-certificates, cl-postmodern, postgresql
|
||||
Tests: ssl
|
||||
Restrictions: allow-stderr, needs-root
|
||||
|
||||
10
debian/tests/ssl
vendored
10
debian/tests/ssl
vendored
@ -4,9 +4,15 @@
|
||||
|
||||
set -eux
|
||||
|
||||
trap "rm -rf /tmp/pgloader" 0 2 3 15
|
||||
trap "rm -rf /tmp/pgloader" EXIT
|
||||
|
||||
pg_virtualenv <<-'EOF'
|
||||
# check if cl-postmodern is new enough to support scram-sha-256
|
||||
postmodern=$(dpkg-query --show --showformat='${Version}' cl-postmodern)
|
||||
if dpkg --compare-versions "$postmodern" lt 20200101; then
|
||||
AUTH="-i--auth-local=trust -i--auth-host=md5"
|
||||
fi
|
||||
|
||||
pg_virtualenv ${AUTH:-} <<-'EOF'
|
||||
set -eux
|
||||
|
||||
# force SSL connection
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user