]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
add hugettl test 8225/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 22 Aug 2019 22:17:40 +0000 (00:17 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 30 Oct 2019 09:35:41 +0000 (10:35 +0100)
modules/tinydnsbackend/data
modules/tinydnsbackend/data.cdb
regression-tests.nobackend/tinydns-data-check/expected_result
regression-tests/tests/largettl/command [new file with mode: 0755]
regression-tests/tests/largettl/description [new file with mode: 0644]
regression-tests/tests/largettl/expected_result [new file with mode: 0644]
regression-tests/zones/example.com

index 8f76c113b8a222e6442b3184f15e9fd944d05c32..aa5b363b5f7aab0dd031346428d4cb37427f70e3 100644 (file)
 :hightype.example.com:65534:\007\355\046\000\001:120
 :host-0.example.com:108:\000PV\233\000\347:120
 :host-1.example.com:109:\000PV\233\000\347\176W:120
-:hostmaster.mb.example.com:8:\004phil\303\263:120
-:hostmaster.mb.example.com:8:\006sheila\303\263:120
+:hostmaster.mb.example.com:8:\004phil\303\343:120
+:hostmaster.mb.example.com:8:\006sheila\303\343:120
 :hwinfo.example.com:13:\003abc\003def:120
 :ipv6.example.com:28:\040\001\006\250\000\000\000\001\002\020K\377\376KLa:120
+:largettl.example.com:16:\032this\040record\040has\040a\040huge\040TTL:1073741724
 :location.example.com:29:\0002\026\023\213\044\323e\176\273\347\100\000\230\230\020:120
 :location.example.com:29:\000B\026\023t\333\053\274\176\273\347\100\000\230\230\020:120
 :location.example.com:29:\000\022\026\023\213\044\310\373\201D\030\300\000\230\230\020:120
 :location.example.com:29:\000\042\026\023t\3331\320\201D\030\300\000\230\230\020:120
 :multitext.example.com:16:\015text\040part\040one\015text\040part\040two\017text\040part\040three:120
-:phil.mb.example.com:7:\002pc\303\263:120
-:philip.mb.example.com:9:\303\302:120
-:sheila.mb.example.com:7:\004bill\303\263:120
+:phil.mb.example.com:7:\002pc\303\343:120
+:philip.mb.example.com:9:\303\362:120
+:sheila.mb.example.com:7:\004bill\303\343:120
 :text.example.com:16:\025Hi\054\040this\040is\040some\040text:120
 :text0.example.com:16:\014k\075rsa\073\040p\075one:120
 :text1.example.com:16:\014k\075rsa\073\040p\075one:120
index 317ffaddf2e5134561b0f843acf398475de742c4..b52b7674718e2f30e50b8bdb73958efe129585e3 100644 (file)
Binary files a/modules/tinydnsbackend/data.cdb and b/modules/tinydnsbackend/data.cdb differ
index 6dee487ae9b4c39b514d097c73f46c85b1ca7efa..d0086b5e1bf14dc394e1bfb1df98c357f09ae90d 100644 (file)
@@ -1,4 +1,4 @@
-db93ba72fcc30da0f775183ee9126edf  ../regression-tests/zones/example.com
+9964df6538f0d181c151548e44d045c3  ../regression-tests/zones/example.com
 fe49d2784b1bcc3b91ddd5619f0b6cc1  ../regression-tests/zones/test.com
 f0df67fa656d33fd85098cbe43893395  ../regression-tests/zones/test.dyndns
 dee3e8b568549d9450134b555ca73990  ../regression-tests/zones/sub.test.dyndns
@@ -13,4 +13,4 @@ a63dc120391d9df0003f2ec4f461a6af  ../regression-tests/zones/secure-delegated.dns
 b1f775045fa2cf0a3b91aa834af06e49  ../regression-tests/zones/stest.com
 a98864b315f16bcf49ce577426063c42  ../regression-tests/zones/cdnskey-cds-test.com
 9aeed2c26d0c3ba3baf22dfa9568c451  ../regression-tests/zones/2.0.192.in-addr.arpa
-8fa20d959485419535d0406fd4df2a56  ../modules/tinydnsbackend/data.cdb
+52a95993ada0b4ed986a2fe6463a27e0  ../modules/tinydnsbackend/data.cdb
diff --git a/regression-tests/tests/largettl/command b/regression-tests/tests/largettl/command
new file mode 100755 (executable)
index 0000000..e145be3
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+cleandig largettl.example.com TXT
+
diff --git a/regression-tests/tests/largettl/description b/regression-tests/tests/largettl/description
new file mode 100644 (file)
index 0000000..181be94
--- /dev/null
@@ -0,0 +1 @@
+Test a record with a huge TTL (2^30-100).
diff --git a/regression-tests/tests/largettl/expected_result b/regression-tests/tests/largettl/expected_result
new file mode 100644 (file)
index 0000000..60a9f86
--- /dev/null
@@ -0,0 +1,3 @@
+0      largettl.example.com.   IN      TXT     1073741724      "this record has a huge TTL"
+Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
+Reply to question for qname='largettl.example.com.', qtype=TXT
index 2657323450d1594fd0d7768f6d990bad18254808..ad67b9da23cd905e809b53d4ccf1e0c8ffadeafd 100644 (file)
@@ -20205,3 +20205,6 @@ _imap._tcp IN SRV 0 1 143 blah.test.com.
 
 ;
 cname-to-insecure  IN      CNAME   www.insecure.dnssec-parent.com.
+
+;
+largettl       1073741724 IN TXT "this record has a huge TTL"