From 267af0fbc3cdda20aa397f243e1de7ba57e54d1a Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Wed, 12 Dec 2012 20:15:34 +0000 Subject: [PATCH] import Ruben d'Arco's mydns updates, including test suite setup\! git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2988 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- modules/mydnsbackend/mydnsbackend.cc | 6 ++-- modules/mydnsbackend/mydnsbackend.hh | 1 + modules/mydnsbackend/schema.sql | 6 ++-- pdns/backends/bind/zone2sql.cc | 36 +++++++++++++++++-- regression-tests/basic-loc/skip.mydns | 1 + regression-tests/double/skip.mydns | 0 .../ds-at-secure-delegation/skip.mydns | 0 regression-tests/start-test-stop | 34 ++++++++++++++++++ regression-tests/very-long-txt/skip.mydns | 1 + 9 files changed, 77 insertions(+), 8 deletions(-) create mode 100644 regression-tests/basic-loc/skip.mydns create mode 100644 regression-tests/double/skip.mydns create mode 100644 regression-tests/ds-at-secure-delegation/skip.mydns create mode 100644 regression-tests/very-long-txt/skip.mydns diff --git a/modules/mydnsbackend/mydnsbackend.cc b/modules/mydnsbackend/mydnsbackend.cc index 18ee7bdf41..3f409100a9 100644 --- a/modules/mydnsbackend/mydnsbackend.cc +++ b/modules/mydnsbackend/mydnsbackend.cc @@ -61,6 +61,7 @@ MyDNSBackend::MyDNSBackend(const string &suffix) { d_soatable=getArg("soa-table"); d_rrwhere=(mustDo("rr-active")?"active = 1 and ":"")+getArg("rr-where"); d_soawhere=(mustDo("soa-active")?"active = 1 and ":"")+getArg("soa-where"); + d_useminimalttl=mustDo("use-minimal-ttl"); L< parts; + stringtok(parts, content); + + cout<<"INSERT INTO soa(origin, ns, mbox, serial, refresh, retry, expire, minimum, ttl) VALUES("<< + sqlstr(toLower(zoneNameDot))<<", "< pdns-mydns.conf << __EOF__ +launch=mydns +mydns-dbname=$MYDNSDB +mydns-user=$MYDNSUSER +mydns-host=$MYDNSHOST +mydns-password=$MYDNSPASSWD +__EOF__ + $RUNWRAPPER ../pdns/pdns_server --daemon=no --local-port=$port --socket-dir=./ \ + --no-shuffle --launch=mydns --loglevel=99999 --query-logging=yes \ + --master --send-root-referral \ + --cache-ttl=0 --no-config \ + --mydns-rr-active=no --mydns-soa-active=no --mydns-use-minimal-ttl=no \ + --mydns-dbname="$MYDNSDB" \ + --mydns-user="$MYDNSUSER" \ + --mydns-host="$MYDNSHOST" \ + --mydns-password="$MYDNSPASSWD" & + skipreasons="nodnssec noent" + ;; gmysql | gmysql-nsec3 | gmysql-nsec3-narrow) [ -z "$GMYSQLDB" ] && GMYSQLDB=pdnstest diff --git a/regression-tests/very-long-txt/skip.mydns b/regression-tests/very-long-txt/skip.mydns new file mode 100644 index 0000000000..919c014496 --- /dev/null +++ b/regression-tests/very-long-txt/skip.mydns @@ -0,0 +1 @@ +MYDNS has only 128 chars of data. -- 2.47.3