From da830d08f8803b3871bd84f33a09b01c8be1e902 Mon Sep 17 00:00:00 2001 From: "Heiko Schlittermann (HS12)" Date: Wed, 20 May 2015 23:08:21 +0200 Subject: [PATCH] Testsuite: Check debug message if we requested AD but got AA --- test/confs/4802 | 1 + test/dnszones-src/db.test.ex | 5 ++++- test/scripts/4800-dnssec-dnslookup/4802 | 4 ++++ test/stderr/4802 | 18 ++++++++++++++++++ test/stdout/4802 | 6 ++++++ 5 files changed, 33 insertions(+), 1 deletion(-) create mode 120000 test/confs/4802 create mode 100644 test/scripts/4800-dnssec-dnslookup/4802 create mode 100644 test/stderr/4802 create mode 100644 test/stdout/4802 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 -- 2.30.2