From: Kees Monshouwer Date: Wed, 3 Feb 2021 13:29:24 +0000 (+0100) Subject: auth: 'fix' gpgsql 'Change the key by PUTing it' api test. Maybe some day all distri... X-Git-Tag: dnsdist-1.6.0-alpha2~23^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bc6f4e68b83e53427e17ce74eebf10b522adfea1;p=thirdparty%2Fpdns.git auth: 'fix' gpgsql 'Change the key by PUTing it' api test. Maybe some day all distributions meet the minimal version requirement to fix this for real. --- diff --git a/regression-tests.api/runtests.py b/regression-tests.api/runtests.py index c807fed8e9..e2fa8bbbfd 100755 --- a/regression-tests.api/runtests.py +++ b/regression-tests.api/runtests.py @@ -54,6 +54,8 @@ launch=gpgsql gpgsql-dnssec=on gpgsql-dbname="""+PGSQL_DB+""" gpgsql-user="""+PGSQL_USER+""" +# on conflict is available in pg 9.5 and up +gpgsql-set-tsig-key-query=insert into tsigkeys (name,algorithm,secret) values($1,$2,$3) on conflict(name, algorithm) do update set secret=Excluded.secret """ AUTH_SQLITE_TPL = """