From: Remi Gacogne Date: Thu, 11 Feb 2016 14:06:09 +0000 (+0100) Subject: dnsdist: Copy the resp in regression tests instead of fixing it up X-Git-Tag: auth-4.0.0-alpha2~57^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95f0b802544e25732dd859326eb9c2676a5fa9a2;p=pdns dnsdist: Copy the resp in regression tests instead of fixing it up Simply copy the the reponse in the responder threads before altering the ID, instead of having to fix it afterwards in every tests. --- diff --git a/regression-tests.dnsdist/dnsdisttests.py b/regression-tests.dnsdist/dnsdisttests.py index e7833d242..735a1a64f 100644 --- a/regression-tests.dnsdist/dnsdisttests.py +++ b/regression-tests.dnsdist/dnsdisttests.py @@ -1,6 +1,7 @@ #!/usr/bin/env python2 import clientsubnetoption +import copy import dns import dns.message import Queue @@ -149,6 +150,7 @@ class DNSDistTest(unittest.TestCase): if str(request.question[0].name).endswith('tests.powerdns.com.') and not cls._toResponderQueue.empty(): response = cls._toResponderQueue.get(True, cls._queueTimeout) if response: + response = copy.copy(response) response.id = request.id cls._fromResponderQueue.put(request, True, cls._queueTimeout) cls.ResponderIncrementCounter() @@ -204,6 +206,7 @@ class DNSDistTest(unittest.TestCase): if str(request.question[0].name).endswith('tests.powerdns.com.') and not cls._toResponderQueue.empty(): response = cls._toResponderQueue.get(True, cls._queueTimeout) if response: + response = copy.copy(response) response.id = request.id cls._fromResponderQueue.put(request, True, cls._queueTimeout) cls.ResponderIncrementCounter() diff --git a/regression-tests.dnsdist/test_Advanced.py b/regression-tests.dnsdist/test_Advanced.py index e93ea7936..2b07fdb60 100644 --- a/regression-tests.dnsdist/test_Advanced.py +++ b/regression-tests.dnsdist/test_Advanced.py @@ -41,7 +41,6 @@ class TestAdvancedFixupCase(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = query.id - receivedResponse.id = expectedResponse.id self.assertEquals(query, receivedQuery) self.assertEquals(expectedResponse, receivedResponse) @@ -49,7 +48,6 @@ class TestAdvancedFixupCase(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = query.id - receivedResponse.id = expectedResponse.id self.assertEquals(query, receivedQuery) self.assertEquals(expectedResponse, receivedResponse) @@ -85,7 +83,6 @@ class TestAdvancedRemoveRD(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = expectedQuery.id - receivedResponse.id = response.id self.assertEquals(expectedQuery, receivedQuery) self.assertEquals(response, receivedResponse) @@ -93,7 +90,6 @@ class TestAdvancedRemoveRD(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = expectedQuery.id - receivedResponse.id = response.id self.assertEquals(expectedQuery, receivedQuery) self.assertEquals(response, receivedResponse) @@ -119,7 +115,6 @@ class TestAdvancedRemoveRD(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(response, receivedResponse) @@ -127,7 +122,6 @@ class TestAdvancedRemoveRD(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(response, receivedResponse) @@ -163,7 +157,6 @@ class TestAdvancedAddCD(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = expectedQuery.id - receivedResponse.id = response.id self.assertEquals(expectedQuery, receivedQuery) self.assertEquals(response, receivedResponse) @@ -171,7 +164,6 @@ class TestAdvancedAddCD(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = expectedQuery.id - receivedResponse.id = response.id self.assertEquals(expectedQuery, receivedQuery) self.assertEquals(response, receivedResponse) @@ -197,7 +189,6 @@ class TestAdvancedAddCD(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(response, receivedResponse) @@ -205,7 +196,6 @@ class TestAdvancedAddCD(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(response, receivedResponse) @@ -238,12 +228,10 @@ class TestAdvancedSpoof(DNSDistTest): (_, receivedResponse) = self.sendUDPQuery(query, response=None, useQueue=False) self.assertTrue(receivedResponse) - receivedResponse.id = expectedResponse.id self.assertEquals(expectedResponse, receivedResponse) (_, receivedResponse) = self.sendTCPQuery(query, response=None, useQueue=False) self.assertTrue(receivedResponse) - receivedResponse.id = expectedResponse.id self.assertEquals(expectedResponse, receivedResponse) def testSpoofAAAA(self): @@ -267,12 +255,10 @@ class TestAdvancedSpoof(DNSDistTest): (_, receivedResponse) = self.sendUDPQuery(query, response=None, useQueue=False) self.assertTrue(receivedResponse) - receivedResponse.id = expectedResponse.id self.assertEquals(expectedResponse, receivedResponse) (_, receivedResponse) = self.sendTCPQuery(query, response=None, useQueue=False) self.assertTrue(receivedResponse) - receivedResponse.id = expectedResponse.id self.assertEquals(expectedResponse, receivedResponse) def testSpoofCNAME(self): @@ -296,12 +282,10 @@ class TestAdvancedSpoof(DNSDistTest): (_, receivedResponse) = self.sendUDPQuery(query, response=None, useQueue=False) self.assertTrue(receivedResponse) - receivedResponse.id = expectedResponse.id self.assertEquals(expectedResponse, receivedResponse) (_, receivedResponse) = self.sendTCPQuery(query, response=None, useQueue=False) self.assertTrue(receivedResponse) - receivedResponse.id = expectedResponse.id self.assertEquals(expectedResponse, receivedResponse) class TestAdvancedPoolRouting(DNSDistTest): @@ -330,13 +314,11 @@ class TestAdvancedPoolRouting(DNSDistTest): (receivedQuery, receivedResponse) = self.sendUDPQuery(query, response) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(response, receivedResponse) (receivedQuery, receivedResponse) = self.sendTCPQuery(query, response) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(response, receivedResponse) @@ -410,14 +392,12 @@ class TestAdvancedRoundRobinLB(DNSDistTest): for idx in range(numberOfQueries): (receivedQuery, receivedResponse) = self.sendUDPQuery(query, response) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(response, receivedResponse) for idx in range(numberOfQueries): (receivedQuery, receivedResponse) = self.sendTCPQuery(query, response) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(response, receivedResponse) @@ -460,14 +440,12 @@ class TestAdvancedRoundRobinLBOneDown(DNSDistTest): for idx in range(numberOfQueries): (receivedQuery, receivedResponse) = self.sendUDPQuery(query, response) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(response, receivedResponse) for idx in range(numberOfQueries): (receivedQuery, receivedResponse) = self.sendTCPQuery(query, response) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(response, receivedResponse) @@ -532,7 +510,6 @@ class TestAdvancedDelay(DNSDistTest): (receivedQuery, receivedResponse) = self.sendUDPQuery(query, response) end = datetime.now() receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(response, receivedResponse) self.assertTrue((end - begin) > timedelta(0, 1)); @@ -541,7 +518,6 @@ class TestAdvancedDelay(DNSDistTest): (receivedQuery, receivedResponse) = self.sendTCPQuery(query, response) end = datetime.now() receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(response, receivedResponse) self.assertTrue((end - begin) < timedelta(0, 1)); @@ -589,12 +565,10 @@ class TestAdvancedLuaSpoof(DNSDistTest): (_, receivedResponse) = self.sendUDPQuery(query, response=None, useQueue=False) self.assertTrue(receivedResponse) - receivedResponse.id = expectedResponse.id self.assertEquals(expectedResponse, receivedResponse) (_, receivedResponse) = self.sendTCPQuery(query, response=None, useQueue=False) self.assertTrue(receivedResponse) - receivedResponse.id = expectedResponse.id self.assertEquals(expectedResponse, receivedResponse) def testLuaSpoofAAAA(self): @@ -618,12 +592,10 @@ class TestAdvancedLuaSpoof(DNSDistTest): (_, receivedResponse) = self.sendUDPQuery(query, response=None, useQueue=False) self.assertTrue(receivedResponse) - receivedResponse.id = expectedResponse.id self.assertEquals(expectedResponse, receivedResponse) (_, receivedResponse) = self.sendTCPQuery(query, response=None, useQueue=False) self.assertTrue(receivedResponse) - receivedResponse.id = expectedResponse.id self.assertEquals(expectedResponse, receivedResponse) def testLuaSpoofAWithCNAME(self): @@ -647,12 +619,10 @@ class TestAdvancedLuaSpoof(DNSDistTest): (_, receivedResponse) = self.sendUDPQuery(query, response=None, useQueue=False) self.assertTrue(receivedResponse) - receivedResponse.id = expectedResponse.id self.assertEquals(expectedResponse, receivedResponse) (_, receivedResponse) = self.sendTCPQuery(query, response=None, useQueue=False) self.assertTrue(receivedResponse) - receivedResponse.id = expectedResponse.id self.assertEquals(expectedResponse, receivedResponse) def testLuaSpoofAAAAWithCNAME(self): @@ -676,12 +646,10 @@ class TestAdvancedLuaSpoof(DNSDistTest): (_, receivedResponse) = self.sendUDPQuery(query, response=None, useQueue=False) self.assertTrue(receivedResponse) - receivedResponse.id = expectedResponse.id self.assertEquals(expectedResponse, receivedResponse) (_, receivedResponse) = self.sendTCPQuery(query, response=None, useQueue=False) self.assertTrue(receivedResponse) - receivedResponse.id = expectedResponse.id self.assertEquals(expectedResponse, receivedResponse) class TestAdvancedTruncateAnyAndTCP(DNSDistTest): @@ -715,7 +683,6 @@ class TestAdvancedTruncateAnyAndTCP(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(receivedResponse, response) @@ -723,7 +690,6 @@ class TestAdvancedTruncateAnyAndTCP(DNSDistTest): expectedResponse.flags |= dns.flags.TC (_, receivedResponse) = self.sendTCPQuery(query, response=None, useQueue=False) - receivedResponse.id = expectedResponse.id self.assertEquals(receivedResponse, expectedResponse) class TestAdvancedAndNot(DNSDistTest): @@ -755,7 +721,6 @@ class TestAdvancedAndNot(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(receivedResponse, response) @@ -763,7 +728,6 @@ class TestAdvancedAndNot(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(receivedResponse, response) @@ -783,7 +747,6 @@ class TestAdvancedAndNot(DNSDistTest): expectedResponse.set_rcode(dns.rcode.NOTIMP) (_, receivedResponse) = self.sendUDPQuery(query, response=None, useQueue=False) - receivedResponse.id = expectedResponse.id self.assertEquals(receivedResponse, expectedResponse) response = dns.message.make_response(query) @@ -798,7 +761,6 @@ class TestAdvancedAndNot(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(receivedResponse, response) @@ -831,14 +793,12 @@ class TestAdvancedOr(DNSDistTest): expectedResponse.set_rcode(dns.rcode.NOTIMP) (_, receivedResponse) = self.sendUDPQuery(query, response=None, useQueue=False) - receivedResponse.id = expectedResponse.id self.assertEquals(receivedResponse, expectedResponse) (receivedQuery, receivedResponse) = self.sendTCPQuery(query, response) self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(receivedResponse, response) @@ -858,9 +818,7 @@ class TestAdvancedOr(DNSDistTest): expectedResponse.set_rcode(dns.rcode.NOTIMP) (_, receivedResponse) = self.sendUDPQuery(query, response=None, useQueue=False) - receivedResponse.id = expectedResponse.id self.assertEquals(receivedResponse, expectedResponse) (_, receivedResponse) = self.sendTCPQuery(query, response=None, useQueue=False) - receivedResponse.id = expectedResponse.id self.assertEquals(receivedResponse, expectedResponse) diff --git a/regression-tests.dnsdist/test_Basics.py b/regression-tests.dnsdist/test_Basics.py index 68baf8c28..ffda39446 100644 --- a/regression-tests.dnsdist/test_Basics.py +++ b/regression-tests.dnsdist/test_Basics.py @@ -40,13 +40,11 @@ class TestBasics(DNSDistTest): (receivedQuery, receivedResponse) = self.sendUDPQuery(query, response) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(response, receivedResponse) (receivedQuery, receivedResponse) = self.sendTCPQuery(query, response) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(response, receivedResponse) @@ -68,7 +66,6 @@ class TestBasics(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(response, receivedResponse) @@ -76,7 +73,6 @@ class TestBasics(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(response, receivedResponse) @@ -94,7 +90,6 @@ class TestBasics(DNSDistTest): expectedResponse.flags |= dns.flags.TC (_, receivedResponse) = self.sendUDPQuery(query, response=None, useQueue=False) - receivedResponse.id = expectedResponse.id self.assertEquals(receivedResponse, expectedResponse) response = dns.message.make_response(query) @@ -110,7 +105,6 @@ class TestBasics(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(receivedResponse, response) @@ -137,7 +131,6 @@ class TestBasics(DNSDistTest): (receivedQuery, receivedResponse) = self.sendUDPQuery(query, response) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(response.flags, receivedResponse.flags) self.assertEquals(response.question, receivedResponse.question) @@ -161,11 +154,9 @@ class TestBasics(DNSDistTest): expectedResponse.set_rcode(dns.rcode.REFUSED) (_, receivedResponse) = self.sendUDPQuery(query, response=None, useQueue=False) - receivedResponse.id = expectedResponse.id self.assertEquals(receivedResponse, expectedResponse) (_, receivedResponse) = self.sendTCPQuery(query, response=None, useQueue=False) - receivedResponse.id = expectedResponse.id self.assertEquals(receivedResponse, expectedResponse) def testDomainAndQTypeReturnsNotImplemented(self): @@ -183,11 +174,9 @@ class TestBasics(DNSDistTest): expectedResponse.set_rcode(dns.rcode.NOTIMP) (_, receivedResponse) = self.sendUDPQuery(query, response=None, useQueue=False) - receivedResponse.id = expectedResponse.id self.assertEquals(receivedResponse, expectedResponse) (_, receivedResponse) = self.sendTCPQuery(query, response=None, useQueue=False) - receivedResponse.id = expectedResponse.id self.assertEquals(receivedResponse, expectedResponse) def testDomainWithoutQTypeIsNotAffected(self): @@ -213,7 +202,6 @@ class TestBasics(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(response, receivedResponse) @@ -221,7 +209,6 @@ class TestBasics(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(response, receivedResponse) @@ -248,7 +235,6 @@ class TestBasics(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(response, receivedResponse) @@ -256,7 +242,6 @@ class TestBasics(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(response, receivedResponse) diff --git a/regression-tests.dnsdist/test_DNSCrypt.py b/regression-tests.dnsdist/test_DNSCrypt.py index 1b754514f..72d2a0383 100644 --- a/regression-tests.dnsdist/test_DNSCrypt.py +++ b/regression-tests.dnsdist/test_DNSCrypt.py @@ -59,7 +59,6 @@ class TestDNSCrypt(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(response, receivedResponse) diff --git a/regression-tests.dnsdist/test_EdnsClientSubnet.py b/regression-tests.dnsdist/test_EdnsClientSubnet.py index 63c7334cc..32c5aadae 100644 --- a/regression-tests.dnsdist/test_EdnsClientSubnet.py +++ b/regression-tests.dnsdist/test_EdnsClientSubnet.py @@ -55,7 +55,6 @@ class TestEdnsClientSubnetNoOverride(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = expectedQuery.id - receivedResponse.id = expectedResponse.id self.assertEquals(expectedQuery, receivedQuery) self.assertEquals(expectedResponse, receivedResponse) @@ -63,7 +62,6 @@ class TestEdnsClientSubnetNoOverride(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = expectedQuery.id - receivedResponse.id = expectedResponse.id self.assertEquals(expectedQuery, receivedQuery) self.assertEquals(expectedResponse, receivedResponse) @@ -94,7 +92,6 @@ class TestEdnsClientSubnetNoOverride(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = expectedQuery.id - receivedResponse.id = expectedResponse.id self.assertEquals(expectedQuery, receivedQuery) self.assertEquals(expectedResponse, receivedResponse) @@ -102,7 +99,6 @@ class TestEdnsClientSubnetNoOverride(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = expectedQuery.id - receivedResponse.id = expectedResponse.id self.assertEquals(expectedQuery, receivedQuery) self.assertEquals(expectedResponse, receivedResponse) @@ -131,7 +127,6 @@ class TestEdnsClientSubnetNoOverride(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(response, receivedResponse) @@ -139,7 +134,6 @@ class TestEdnsClientSubnetNoOverride(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = query.id - receivedResponse.id = response.id self.assertEquals(query, receivedQuery) self.assertEquals(response, receivedResponse) @@ -193,7 +187,6 @@ class TestEdnsClientSubnetOverride(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = expectedQuery.id - receivedResponse.id = expectedResponse.id self.assertEquals(expectedQuery, receivedQuery) self.assertEquals(expectedResponse, receivedResponse) @@ -201,7 +194,6 @@ class TestEdnsClientSubnetOverride(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = expectedQuery.id - receivedResponse.id = expectedResponse.id self.assertEquals(expectedQuery, receivedQuery) self.assertEquals(expectedResponse, receivedResponse) @@ -232,7 +224,6 @@ class TestEdnsClientSubnetOverride(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = expectedQuery.id - receivedResponse.id = expectedResponse.id self.assertEquals(expectedQuery, receivedQuery) self.assertEquals(expectedResponse, receivedResponse) @@ -240,7 +231,6 @@ class TestEdnsClientSubnetOverride(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = expectedQuery.id - receivedResponse.id = expectedResponse.id self.assertEquals(expectedQuery, receivedQuery) self.assertEquals(expectedResponse, receivedResponse) @@ -273,7 +263,6 @@ class TestEdnsClientSubnetOverride(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = expectedQuery.id - receivedResponse.id = response.id self.assertEquals(expectedQuery, receivedQuery) self.assertEquals(response, receivedResponse) @@ -281,7 +270,6 @@ class TestEdnsClientSubnetOverride(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = expectedQuery.id - receivedResponse.id = response.id self.assertEquals(expectedQuery, receivedQuery) self.assertEquals(response, receivedResponse) @@ -314,7 +302,6 @@ class TestEdnsClientSubnetOverride(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = expectedQuery.id - receivedResponse.id = response.id self.assertEquals(expectedQuery, receivedQuery) self.assertEquals(response, receivedResponse) @@ -322,7 +309,6 @@ class TestEdnsClientSubnetOverride(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = expectedQuery.id - receivedResponse.id = response.id self.assertEquals(expectedQuery, receivedQuery) self.assertEquals(response, receivedResponse) @@ -355,7 +341,6 @@ class TestEdnsClientSubnetOverride(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = expectedQuery.id - receivedResponse.id = response.id self.assertEquals(expectedQuery, receivedQuery) self.assertEquals(response, receivedResponse) @@ -363,7 +348,6 @@ class TestEdnsClientSubnetOverride(DNSDistTest): self.assertTrue(receivedQuery) self.assertTrue(receivedResponse) receivedQuery.id = expectedQuery.id - receivedResponse.id = response.id self.assertEquals(expectedQuery, receivedQuery) self.assertEquals(response, receivedResponse)