class PacketCacheRecursorTest(RecursorTest):
+ _auth_zones = {
+ '8': {'threads': 1,
+ 'zones': ['ROOT']}
+ }
+
_confdir = 'PacketCache'
_wsPort = 8042
_wsTimeout = 2
""".format(soa=cls._SOA))
super(PacketCacheRecursorTest, cls).generateRecursorConfig(confdir)
- @classmethod
- def setUpClass(cls):
-
- # we don't need all the auth stuff
- cls.setUpSockets()
- cls.startResponders()
-
- confdir = os.path.join('configs', cls._confdir)
- cls.createConfigDir(confdir)
-
- cls.generateRecursorConfig(confdir)
- cls.startRecursor(confdir, cls._recursorPort)
-
- @classmethod
- def tearDownClass(cls):
- cls.tearDownRecursor()
-
def checkPacketCacheMetrics(self, expectedHits, expectedMisses):
headers = {'x-api-key': self._apiKey}
url = 'http://127.0.0.1:' + str(self._wsPort) + '/api/v1/servers/localhost/statistics'