From 69bc12454ecb95a7e5a25fdb385290c93f2f6fd5 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 21 Mar 2020 22:25:44 +0100 Subject: [PATCH] Reorder DNS tests to avoid random order in rendering --- data/hooks/diagnosis/12-dnsrecords.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/data/hooks/diagnosis/12-dnsrecords.py b/data/hooks/diagnosis/12-dnsrecords.py index e2f7bcc2d..96ac31d55 100644 --- a/data/hooks/diagnosis/12-dnsrecords.py +++ b/data/hooks/diagnosis/12-dnsrecords.py @@ -42,8 +42,10 @@ class DNSRecordsDiagnoser(Diagnoser): # Here if there are no AAAA record, we should add something to expect "no" AAAA record # to properly diagnose situations where people have a AAAA record but no IPv6 - for category, records in expected_configuration.items(): + categories = ["basic", "mail", "xmpp", "extra"] + for category in categories: + records = expected_configuration[category] discrepancies = [] for r in records: