summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHeiko Schlittermann (HS12) <hs@schlittermann.de>2015-05-20 23:08:21 +0200
committerHeiko Schlittermann (HS12) <hs@schlittermann.de>2015-05-20 23:28:02 +0200
commitda830d08f8803b3871bd84f33a09b01c8be1e902 (patch)
treea5d81443cbba0e1b70772c045f2739ad86dfdd32 /test
parent589b317958399c195bd143ecf408afb8dc91bb3b (diff)
Testsuite: Check debug message if we requested AD but got AA
Diffstat (limited to 'test')
l---------test/confs/48021
-rw-r--r--test/dnszones-src/db.test.ex5
-rw-r--r--test/scripts/4800-dnssec-dnslookup/48024
-rw-r--r--test/stderr/480218
-rw-r--r--test/stdout/48026
5 files changed, 33 insertions, 1 deletions
diff --git a/test/confs/4802 b/test/confs/4802
new file mode 120000
index 000000000..739f0db1f
--- /dev/null
+++ b/test/confs/4802
@@ -0,0 +1 @@
+4800 \ No newline at end of file
diff --git a/test/dnszones-src/db.test.ex b/test/dnszones-src/db.test.ex
index 9cc709ecc..4acadce4d 100644
--- a/test/dnszones-src/db.test.ex
+++ b/test/dnszones-src/db.test.ex
@@ -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
index 000000000..4926972a6
--- /dev/null
+++ b/test/scripts/4800-dnssec-dnslookup/4802
@@ -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
index 000000000..d10887dde
--- /dev/null
+++ b/test/stderr/4802
@@ -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
index 000000000..308629d57
--- /dev/null
+++ b/test/stdout/4802
@@ -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