1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-22 07:17:05 +00:00

test_dns: DNSSEC signing inserts empty text string components

This commit is contained in:
Joshua Tauberer 2014-06-17 17:34:26 -04:00
parent 85169dc960
commit 87b0608f15

View File

@ -59,6 +59,7 @@ def test2(tests, server, description):
response = ["[no value]"]
response = ";".join(str(r) for r in response)
response = re.sub(r"(\"p=).*(\")", r"\1__KEY__\2", response) # normalize DKIM key
response = response.replace("\"\" ", "") # normalize TXT records (DNSSEC signing inserts empty text string components)
# is it right?
if response == expected_answer: