For certain sections of the RFC, the test-suite should simulate a DNS
error. In the pyspf tests, missing names that begin with 'error.' result
in a simulated timeout rather than NXDOMAIN. There could be a more
elegant convention in the YAML format. For instance, a zonedata entry
could be RCODE: 2 (RCODE: n), or TIMEOUT instead of a list of maps.
Here is a proposed example:
# This is the test suite based on RFC4408.
---
comment: |
Initial processing
tests:
longlabel:
spec: 4.3/1
helo: mail.example.net
host: 1.2.3.5
mailfrom: lyme.eater@A12345678901234567890123456789012345678901234567890123.example.com
result: none
nolocalpart:
spec: 4.3/2
helo: mail.example.net
host: 1.2.3.4
mailfrom: @example.net
result: fail
explanation: postmaster
zonedata:
example.com: TIMEOUT
example.net:
- SPF: v=spf1 -all exp=exp.example.net
exp.example.net:
- TXT: %{l}
--
Stuart D. Gathman <stuart@bmsi.com>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.
-------
To unsubscribe, change your address, or temporarily deactivate your subscription,
please go to http://v2.listbox.com/member/?listname=spf-devel@v2.listbox.com
error. In the pyspf tests, missing names that begin with 'error.' result
in a simulated timeout rather than NXDOMAIN. There could be a more
elegant convention in the YAML format. For instance, a zonedata entry
could be RCODE: 2 (RCODE: n), or TIMEOUT instead of a list of maps.
Here is a proposed example:
# This is the test suite based on RFC4408.
---
comment: |
Initial processing
tests:
longlabel:
spec: 4.3/1
helo: mail.example.net
host: 1.2.3.5
mailfrom: lyme.eater@A12345678901234567890123456789012345678901234567890123.example.com
result: none
nolocalpart:
spec: 4.3/2
helo: mail.example.net
host: 1.2.3.4
mailfrom: @example.net
result: fail
explanation: postmaster
zonedata:
example.com: TIMEOUT
example.net:
- SPF: v=spf1 -all exp=exp.example.net
exp.example.net:
- TXT: %{l}
--
Stuart D. Gathman <stuart@bmsi.com>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.
-------
To unsubscribe, change your address, or temporarily deactivate your subscription,
please go to http://v2.listbox.com/member/?listname=spf-devel@v2.listbox.com