Testsuite: Check debug message if we requested AD but got AA
authorHeiko Schlittermann (HS12) <hs@schlittermann.de>
Wed, 20 May 2015 21:08:21 +0000 (23:08 +0200)
committerHeiko Schlittermann (HS12) <hs@schlittermann.de>
Wed, 20 May 2015 21:28:02 +0000 (23:28 +0200)
test/confs/4802 [new symlink]
test/dnszones-src/db.test.ex
test/scripts/4800-dnssec-dnslookup/4802 [new file with mode: 0644]
test/stderr/4802 [new file with mode: 0644]
test/stdout/4802 [new file with mode: 0644]

diff --git a/test/confs/4802 b/test/confs/4802
new file mode 120000 (symlink)
index 0000000..739f0db
--- /dev/null
@@ -0,0 +1 @@
+4800
\ No newline at end of file
index 9cc709eccfc7a2de169b1c4d042d89f0b70cd6d6..4acadce4d114c18d97914ceeb4cace3b11c361a2 100644 (file)
@@ -402,12 +402,15 @@ mx-unsec-a-unsec        MX 5 a-unsec
 mx-unsec-a-sec          MX 5 a-sec
 DNSSEC mx-sec-a-unsec   MX 5 a-unsec
 DNSSEC mx-sec-a-sec     MX 5 a-sec
+DNSSEC mx-sec-a-aa      MX 5 a-aa
+AA mx-aa-a-sec         MX 5 a-sec
 
 a-unsec       A V4NET.0.0.100
 DNSSEC a-sec  A V4NET.0.0.100
-
 DNSSEC l-sec  A 127.0.0.1
 
+AA a-aa A V4NET.0.0.100
+
 ; ------- Testing DANE ------------
 
 ; full suite dns chain, sha512
diff --git a/test/scripts/4800-dnssec-dnslookup/4802 b/test/scripts/4800-dnssec-dnslookup/4802
new file mode 100644 (file)
index 0000000..4926972
--- /dev/null
@@ -0,0 +1,4 @@
+# check debug output if we request AD but get AA
+exim -d-all+dns -bt foo@mx-sec-a-aa.test.ex
+****
+exim -d-all+dns -bt foo@mx-aa-a-sec.test.ex
diff --git a/test/stderr/4802 b/test/stderr/4802
new file mode 100644 (file)
index 0000000..d10887d
--- /dev/null
@@ -0,0 +1,18 @@
+Exim version x.yz ....
+configuration file is TESTSUITE/test-config
+admin user
+DNS lookup of mx-sec-a-aa.test.ex (MX) using fakens
+DNS lookup of mx-sec-a-aa.test.ex (MX) succeeded
+DNS lookup of a-aa.test.ex (A) using fakens
+DNS lookup of a-aa.test.ex (A) succeeded
+DNS lookup of a-aa.test.ex (A/AAA/A6) requested AD, but got AA
+>>>>>>>>>>>>>>>> Exim pid=pppp terminating with rc=0 >>>>>>>>>>>>>>>>
+Exim version x.yz ....
+configuration file is TESTSUITE/test-config
+admin user
+DNS lookup of mx-aa-a-sec.test.ex (MX) using fakens
+DNS lookup of mx-aa-a-sec.test.ex (MX) succeeded
+DNS lookup of mx-aa-a-sec.test.ex (MX) requested AD, but got AA
+DNS lookup of a-sec.test.ex (A) using fakens
+DNS lookup of a-sec.test.ex (A) succeeded
+>>>>>>>>>>>>>>>> Exim pid=pppp terminating with rc=0 >>>>>>>>>>>>>>>>
diff --git a/test/stdout/4802 b/test/stdout/4802
new file mode 100644 (file)
index 0000000..308629d
--- /dev/null
@@ -0,0 +1,6 @@
+foo@mx-sec-a-aa.test.ex
+  router = dnslookup, transport = smtp
+  host a-aa.test.ex [V4NET.0.0.100] MX=5 ad=no
+foo@mx-aa-a-sec.test.ex
+  router = dnslookup, transport = smtp
+  host a-sec.test.ex [V4NET.0.0.100] MX=5 ad=no