]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: 'fix' gpgsql 'Change the key by PUTing it' api test. Maybe some day all distri...
authorKees Monshouwer <mind04@monshouwer.org>
Wed, 3 Feb 2021 13:29:24 +0000 (14:29 +0100)
committermind04 <mind04@monshouwer.org>
Wed, 17 Feb 2021 19:34:59 +0000 (20:34 +0100)
regression-tests.api/runtests.py

index c807fed8e9b345cf6e530a2f0ffcbbd9bc1985df..e2fa8bbbfd252a798a911512d8710a63b9b2b09f 100755 (executable)
@@ -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 = """