mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Fixed coverage.
This commit is contained in:
@@ -129,6 +129,7 @@ class MXTestCase(ModoTestCase):
|
||||
get_domain_mx_list("no-ns-servers.example.com")
|
||||
get_domain_mx_list("timeout.example.com")
|
||||
get_domain_mx_list("no-lookup.example.com")
|
||||
get_domain_mx_list("no-answer.example.Com")
|
||||
get_domain_mx_list("bad-response.example.com")
|
||||
log.check(
|
||||
("modoboa.admin", "ERROR",
|
||||
|
||||
@@ -45,12 +45,14 @@ _POSSIBLE_DNS_RESULTS = {
|
||||
"no-ns-servers.example.com": NoNameservers(),
|
||||
"bad-response.example.com": [_BAD_MX_RECORD],
|
||||
"no-lookup.example.com": [_DNE_MX_RECORD],
|
||||
"no-answer.example.com": [_DNE_MX_RECORD],
|
||||
}
|
||||
|
||||
_POSSIBLE_DNS_RESULTS_NO_MX = {
|
||||
"does-not-exist.example.com": NXDOMAIN(),
|
||||
"mx2.example.com": NXDOMAIN(),
|
||||
"no-lookup.example.com": NXDOMAIN(),
|
||||
"no-answer.example.com": NoAnswer(),
|
||||
"bad-response.example.com": [RRsetInvalid()],
|
||||
}
|
||||
_POSSIBLE_IP_RESULTS = {
|
||||
|
||||
Reference in New Issue
Block a user