]> granicus.if.org Git - pdns/commitdiff
auth: test to make sure ordername is always lower case
authorKees Monshouwer <mind04@monshouwer.org>
Sun, 4 Jun 2017 22:47:05 +0000 (00:47 +0200)
committermind04 <mind04@monshouwer.org>
Sun, 4 Jun 2017 23:21:08 +0000 (01:21 +0200)
regression-tests/backends/gmysql-master
regression-tests/tests/nsec-upcase/command [new file with mode: 0755]
regression-tests/tests/nsec-upcase/description [new file with mode: 0644]
regression-tests/tests/nsec-upcase/expected_result [new file with mode: 0644]
regression-tests/tests/nsec-upcase/expected_result.narrow [new file with mode: 0644]
regression-tests/tests/nsec-upcase/expected_result.nsec3 [new file with mode: 0644]
regression-tests/tests/nsec-upcase/skip.nodnssec [new file with mode: 0644]

index 7ca93a9af39c99d152781ec49e9497a9e7a000db..e85c6d8dcbfb95a6367830099b3d98738e5c222b 100644 (file)
@@ -13,7 +13,7 @@ case $context in
                mysql --user="$GMYSQLUSER" --password="$GMYSQLPASSWD" --host="$GMYSQLHOST" \
                        "$GMYSQLDB" < ../modules/gmysqlbackend/schema.mysql.sql
 
-               tosql gmysql | mysql --user="$GMYSQLUSER" --password="$GMYSQLPASSWD" --host="$GMYSQLHOST" \
+               tosql gmysql | sed -e "s/id ,'ns1.dnssec-parent.com/id ,'NS1.dnssec-parent.com/g" | mysql --user="$GMYSQLUSER" --password="$GMYSQLPASSWD" --host="$GMYSQLHOST" \
                        "$GMYSQLDB"
 
                cat > pdns-gmysql.conf << __EOF__
diff --git a/regression-tests/tests/nsec-upcase/command b/regression-tests/tests/nsec-upcase/command
new file mode 100755 (executable)
index 0000000..6465887
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+cleandig ns1.dnssec-parent.com NSEC dnssec
diff --git a/regression-tests/tests/nsec-upcase/description b/regression-tests/tests/nsec-upcase/description
new file mode 100644 (file)
index 0000000..459be20
--- /dev/null
@@ -0,0 +1 @@
+Make sure an NSEC ordername is always lower case.
diff --git a/regression-tests/tests/nsec-upcase/expected_result b/regression-tests/tests/nsec-upcase/expected_result
new file mode 100644 (file)
index 0000000..bf773a3
--- /dev/null
@@ -0,0 +1,5 @@
+0      ns1.dnssec-parent.com.  IN      NSEC    86400   ns2.dnssec-parent.com. A RRSIG NSEC
+0      ns1.dnssec-parent.com.  IN      RRSIG   86400   NSEC 13 3 86400 [expiry] [inception] [keytag] dnssec-parent.com. ...
+2      .       IN      OPT     32768   
+Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
+Reply to question for qname='ns1.dnssec-parent.com.', qtype=NSEC
diff --git a/regression-tests/tests/nsec-upcase/expected_result.narrow b/regression-tests/tests/nsec-upcase/expected_result.narrow
new file mode 100644 (file)
index 0000000..2a14681
--- /dev/null
@@ -0,0 +1,7 @@
+1      1scaqa30lq0do5eirne4kpjfbebfgr54.dnssec-parent.com.     IN      NSEC3   86400   1 [flags] 1 abcd 1SCAQA30LQ0DO5EIRNE4KPJFBEBFGR55 A RRSIG
+1      1scaqa30lq0do5eirne4kpjfbebfgr54.dnssec-parent.com.     IN      RRSIG   86400   NSEC3 13 3 86400 [expiry] [inception] [keytag] dnssec-parent.com. ...
+1      dnssec-parent.com.      IN      RRSIG   3600    SOA 13 2 3600 [expiry] [inception] [keytag] dnssec-parent.com. ...
+1      dnssec-parent.com.      IN      SOA     3600    ns1.dnssec-parent.com. ahu.example.com. 2005092501 28800 7200 604800 86400
+2      .       IN      OPT     32768   
+Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
+Reply to question for qname='ns1.dnssec-parent.com.', qtype=NSEC
diff --git a/regression-tests/tests/nsec-upcase/expected_result.nsec3 b/regression-tests/tests/nsec-upcase/expected_result.nsec3
new file mode 100644 (file)
index 0000000..c80c014
--- /dev/null
@@ -0,0 +1,7 @@
+1      1scaqa30lq0do5eirne4kpjfbebfgr54.dnssec-parent.com.     IN      NSEC3   86400   1 [flags] 1 abcd 29CEQCF4EKGL2GR9I0VJJTK62H5LQS40 A RRSIG
+1      1scaqa30lq0do5eirne4kpjfbebfgr54.dnssec-parent.com.     IN      RRSIG   86400   NSEC3 13 3 86400 [expiry] [inception] [keytag] dnssec-parent.com. ...
+1      dnssec-parent.com.      IN      RRSIG   3600    SOA 13 2 3600 [expiry] [inception] [keytag] dnssec-parent.com. ...
+1      dnssec-parent.com.      IN      SOA     3600    ns1.dnssec-parent.com. ahu.example.com. 2005092501 28800 7200 604800 86400
+2      .       IN      OPT     32768   
+Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
+Reply to question for qname='ns1.dnssec-parent.com.', qtype=NSEC
diff --git a/regression-tests/tests/nsec-upcase/skip.nodnssec b/regression-tests/tests/nsec-upcase/skip.nodnssec
new file mode 100644 (file)
index 0000000..e69de29