]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Fix a typo in the dynamic blocks regression tests
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 18 Nov 2016 13:50:19 +0000 (14:50 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 18 Nov 2016 13:50:19 +0000 (14:50 +0100)
regression-tests.dnsdist/test_DynBlocks.py

index c5bfdbb6c645a7011cb551391085f5681e8bec5e..c4565d62906e08c4f702a3b65a1b2d8cbadae8ec 100644 (file)
@@ -43,7 +43,7 @@ class TestDynBlockQPS(DNSDistTest):
             else:
                 # the query has not reached the responder,
                 # let's clear the response queue
-                cls.clearToResponderQueue()
+                self.clearToResponderQueue()
 
         # we might be already blocked, but we should have been able to send
         # at least self._dynBlockQPS queries
@@ -80,7 +80,7 @@ class TestDynBlockQPS(DNSDistTest):
             else:
                 # the query has not reached the responder,
                 # let's clear the response queue
-                cls.clearToResponderQueue()
+                self.clearToResponderQueue()
 
         # we might be already blocked, but we should have been able to send
         # at least self._dynBlockQPS queries
@@ -147,7 +147,7 @@ class TestDynBlockQPSRefused(DNSDistTest):
                 self.assertEquals(receivedResponse, refusedResponse)
                 # the query has not reached the responder,
                 # let's clear the response queue
-                cls.clearToResponderQueue()
+                self.clearToResponderQueue()
 
         # we might be already blocked, but we should have been able to send
         # at least self._dynBlockQPS queries
@@ -185,7 +185,7 @@ class TestDynBlockQPSRefused(DNSDistTest):
                 self.assertEquals(receivedResponse, refusedResponse)
                 # the query has not reached the responder,
                 # let's clear the response queue
-                cls.clearToResponderQueue()
+                self.clearToResponderQueue()
 
         # we might be already blocked, but we should have been able to send
         # at least self._dynBlockQPS queries
@@ -265,7 +265,7 @@ class TestDynBlockServFails(DNSDistTest):
             else:
                 # the query has not reached the responder,
                 # let's clear the response queue
-                cls.clearToResponderQueue()
+                self.clearToResponderQueue()
 
         # we might be already blocked, but we should have been able to send
         # at least self._dynBlockQPS queries
@@ -317,7 +317,7 @@ class TestDynBlockServFails(DNSDistTest):
             else:
                 # the query has not reached the responder,
                 # let's clear the response queue
-                cls.clearToResponderQueue()
+                self.clearToResponderQueue()
 
         # we might be already blocked, but we should have been able to send
         # at least self._dynBlockQPS queries
@@ -384,7 +384,7 @@ class TestDynBlockResponseBytes(DNSDistTest):
             else:
                 # the query has not reached the responder,
                 # let's clear the response queue
-                cls.clearToResponderQueue()
+                self.clearToResponderQueue()
 
         # we might be already blocked, but we should have been able to send
         # at least self._dynBlockBytesPerSecond bytes
@@ -421,7 +421,7 @@ class TestDynBlockResponseBytes(DNSDistTest):
             else:
                 # the query has not reached the responder,
                 # let's clear the response queue
-                cls.clearToResponderQueue()
+                self.clearToResponderQueue()
 
         # we might be already blocked, but we should have been able to send
         # at least self._dynBlockBytesPerSecond bytes