From: Chris Hofstaedtler Date: Tue, 27 Aug 2024 18:47:28 +0000 (+0200) Subject: regression-tests.auth-py: actually test ALIAS AAAA cases X-Git-Tag: rec-5.2.0-alpha1~114^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F14599%2Fhead;p=thirdparty%2Fpdns.git regression-tests.auth-py: actually test ALIAS AAAA cases --- diff --git a/regression-tests.auth-py/test_ALIAS.py b/regression-tests.auth-py/test_ALIAS.py index 3016053a20..8cd7f4f3de 100644 --- a/regression-tests.auth-py/test_ALIAS.py +++ b/regression-tests.auth-py/test_ALIAS.py @@ -194,10 +194,10 @@ subnetwrong.example.org. 3600 IN ALIAS subnetwrong.example.com. ecso = clientsubnetoption.ClientSubnetOption('2001:db8:db6:db5::', 64) ecso2 = clientsubnetoption.ClientSubnetOption('2001:db8:db6:db5::', 64, 48) - query = dns.message.make_query('subnet.example.org', 'A', use_edns=True, options=[ecso]) + query = dns.message.make_query('subnet.example.org', 'AAAA', use_edns=True, options=[ecso]) res = self.sendUDPQuery(query) self.assertRcodeEqual(res, dns.rcode.NOERROR) - self.assertAnyRRsetInAnswer(res, expected_a) + self.assertAnyRRsetInAnswer(res, expected_aaaa) self.assertEqual(res.options[0], ecso2) def testECSWrong(self): @@ -218,10 +218,10 @@ subnetwrong.example.org. 3600 IN ALIAS subnetwrong.example.com. ecso = clientsubnetoption.ClientSubnetOption('2001:db8:db6:db5::', 64) ecso2 = clientsubnetoption.ClientSubnetOption('2001:db8:db6:db5::', 64, 48) - query = dns.message.make_query('subnetwrong.example.org', 'A', use_edns=True, options=[ecso]) + query = dns.message.make_query('subnetwrong.example.org', 'AAAA', use_edns=True, options=[ecso]) res = self.sendUDPQuery(query) self.assertRcodeEqual(res, dns.rcode.NOERROR) - self.assertAnyRRsetInAnswer(res, expected_a) + self.assertAnyRRsetInAnswer(res, expected_aaaa) self.assertEqual(res.options[0], ecso2) def testECSNone(self): @@ -242,10 +242,10 @@ subnetwrong.example.org. 3600 IN ALIAS subnetwrong.example.com. ecso = clientsubnetoption.ClientSubnetOption('2001:db8:db6:db5::', 64) ecso2 = clientsubnetoption.ClientSubnetOption('2001:db8:db6:db5::', 64, 0) - query = dns.message.make_query('noerror.example.org', 'A', use_edns=True, options=[ecso]) + query = dns.message.make_query('noerror.example.org', 'AAAA', use_edns=True, options=[ecso]) res = self.sendUDPQuery(query) self.assertRcodeEqual(res, dns.rcode.NOERROR) - self.assertAnyRRsetInAnswer(res, expected_a) + self.assertAnyRRsetInAnswer(res, expected_aaaa) self.assertEqual(res.options[0], ecso2) class AliasUDPResponder(DatagramProtocol):