[exim-cvs] Testsuite: DNS lookup notes

Top Page
Delete this message
Reply to this message
Author: Exim Git Commits Mailing List
Date:  
To: exim-cvs
Subject: [exim-cvs] Testsuite: DNS lookup notes
Gitweb: https://git.exim.org/exim.git/commitdiff/4f6bbb37e87d83d62840a53763d1273f9737a601
Commit:     4f6bbb37e87d83d62840a53763d1273f9737a601
Parent:     d81d33cfe0fbf91fc8f87f8ed9cb92e60f23212c
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Mon Aug 19 14:23:11 2019 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Mon Aug 19 14:23:11 2019 +0100


    Testsuite: DNS lookup notes
---
 test/scripts/4600-SPF/4600   | 4 ++++
 test/scripts/4650-DMARC/4650 | 9 ++++-----
 2 files changed, 8 insertions(+), 5 deletions(-)


diff --git a/test/scripts/4600-SPF/4600 b/test/scripts/4600-SPF/4600
index 5823948..8490288 100644
--- a/test/scripts/4600-SPF/4600
+++ b/test/scripts/4600-SPF/4600
@@ -3,6 +3,10 @@
# The 127.0.0.1 source addr seems to be a builtin in the spf library; no dns lookup is done.
# HOSTIPV4 does get a series of lookups (see server debug output to verify that).
#
+# The libspf2 object stack is built with an exim-specific DNS lookup base object,
+# so the testsuite intercept to fakedns works. Be careful of names and addresses
+# used, as nonhandled lookups are passed on to real DNS.
+#
exim -bd -DSERVER=server -oX PORT_D:PORT_S:PORT_N
****
client 127.0.0.1 PORT_S
diff --git a/test/scripts/4650-DMARC/4650 b/test/scripts/4650-DMARC/4650
index 85d9e51..5526a8b 100644
--- a/test/scripts/4650-DMARC/4650
+++ b/test/scripts/4650-DMARC/4650
@@ -1,11 +1,10 @@
# acl variables and authresults
#
-# SPF is a problem. We use libspf2 to do the work, and it
-# does the DNS lookups, so we cannot intercept them in the testsuite's usual fashion
-# to provide values for testcases.
-#
# For now just check that what should be working syntax does not cause us to fall over.
-# Be careful with envelope-domains used for testcases, as real DNS lookups will be done.
+#
+# SPF and DMARC lookups in DNS are diverted into the testsuite fakedns handling.
+# Be careful with envelope-domains used for testcases, as real DNS lookups will be done
+# for names not provided for in fakedns.
#
exim -bd -DSERVER=server -oX PORT_D
****