]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Hook up luabackend minimal example to a regression test.
authortcely <tcely@users.noreply.github.com>
Thu, 3 Aug 2017 03:05:59 +0000 (23:05 -0400)
committertcely <tcely@users.noreply.github.com>
Thu, 24 May 2018 17:33:47 +0000 (13:33 -0400)
For now a single test is good enough to detect if this backend starts
refusing connections because of some future change.

build-scripts/travis.sh
modules/luabackend/test/powerdns-luabackend.lua
regression-tests/backends/common
regression-tests/backends/lua-master [new file with mode: 0644]

index bdaf1060ae32df498f3150601ef29616df0bd728..0e7497e26bbdd680f20f003ffc43c212a84af4f6 100755 (executable)
@@ -454,6 +454,8 @@ test_auth() {
   #travis unbound is too old for this test (unbound 1.6.0 required)
   run "touch tests/ent-asterisk/fail.nsec"
 
+  run "./timestamp ./start-test-stop 5300 lua-minimal nowait 0 apex-level-a-but-no-a"
+
   run "./timestamp ./start-test-stop 5300 ldap-tree"
   run "./timestamp ./start-test-stop 5300 ldap-simple"
   run "./timestamp ./start-test-stop 5300 ldap-strict"
index dbc1336924db1ebb976c442d95a9fa6c89491528..c914b93c3e0439bb22bca3de47a1780187799dcd 100644 (file)
@@ -31,7 +31,7 @@ domains[origin] = {
     domain_id = 1 + #domains,
     name = origin,
     soa = {
-        hostmaster = "ahu."..origin,
+        hostmaster = "ahu.example.com.",
         nameserver = "ns1."..origin,
         serial = 2005092501,
         refresh = 28800,
index 2da721020c10643a69ee5cded248816dc29eb800..2a313a7638a7f7591ea51ed6e76dcf407b2f30c4 100644 (file)
@@ -71,6 +71,10 @@ start_master ()
                                source ./ext/bind-master
                                ;;
 
+                       lua*)
+                               source ./backends/lua-master
+                               ;;
+
                        *)
                                nocontext=yes
        esac
diff --git a/regression-tests/backends/lua-master b/regression-tests/backends/lua-master
new file mode 100644 (file)
index 0000000..b3e0189
--- /dev/null
@@ -0,0 +1,14 @@
+case $context in
+       lua-minimal)
+               $RUNWRAPPER $PDNS --daemon=no --local-port=$port --socket-dir=./ \
+                    --no-config --no-shuffle --launch=lua --cache-ttl=$cachettl \
+                    --lua-filename=../modules/luabackend/test/powerdns-luabackend.lua \
+                    --module-dir=./modules &
+               #skipreasons="nodnssec noent nodyndns nometa noaxfr noalias"
+               skipreasons="dyndns ldap-strict narrow noalias noaxfr nodnssec nodyndns noent nometa nsec3 oracle-slave-nsec presigned"
+               ;;
+
+       *)
+               nocontext=yes
+               ;;
+esac