From 905f442e997a3a0c264484397c787d8381bdf873 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Wed, 16 Dec 2015 14:37:19 +0100 Subject: [PATCH] make pdnsconfdist test POSIXLY_CORRECT and update pdns.conf-dist --- pdns/pdns.conf-dist | 16 ++++++++-------- .../pdnsconfdist/.gitignore | 1 + regression-tests.nobackend/pdnsconfdist/command | 3 ++- 3 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 regression-tests.nobackend/pdnsconfdist/.gitignore diff --git a/pdns/pdns.conf-dist b/pdns/pdns.conf-dist index d1b7d2a2aa..2a94a305bc 100644 --- a/pdns/pdns.conf-dist +++ b/pdns/pdns.conf-dist @@ -30,17 +30,22 @@ # any-to-tcp=no ################################# -# api-key REST API Static authentication key (required for API use) +# api Enable/disable the REST API +# +# api=no + +################################# +# api-key Static pre-shared authentication key for access to the REST API # # api-key= ################################# -# api-logfile Filename of the log file for JSON parser +# api-logfile Location of the server logfile (used by the REST API) # # api-logfile=/var/log/pdns.log ################################# -# api-readonly If the JSON API should disallow data modification +# api-readonly Disallow data modification through the REST API when set # # api-readonly=no @@ -204,11 +209,6 @@ # # include-dir= -################################# -# json-interface If the webserver should serve JSON data -# -# json-interface=no - ################################# # launch Which backends to launch and order to query them in # diff --git a/regression-tests.nobackend/pdnsconfdist/.gitignore b/regression-tests.nobackend/pdnsconfdist/.gitignore new file mode 100644 index 0000000000..298010b4e4 --- /dev/null +++ b/regression-tests.nobackend/pdnsconfdist/.gitignore @@ -0,0 +1 @@ +pdns.conf-dist.out diff --git a/regression-tests.nobackend/pdnsconfdist/command b/regression-tests.nobackend/pdnsconfdist/command index df122a5d1d..21965410e8 100755 --- a/regression-tests.nobackend/pdnsconfdist/command +++ b/regression-tests.nobackend/pdnsconfdist/command @@ -1,3 +1,4 @@ #!/usr/bin/env bash -diff -u ../pdns/pdns.conf-dist <($PDNS --config) +$PDNS --config > pdnsconfdist/pdns.conf-dist.out +diff -u ../pdns/pdns.conf-dist ./pdnsconfdist/pdns.conf-dist.out -- 2.47.2