Skip to content

Commit

Permalink
Merge pull request #13182 from rgacogne/ddist-test-metrics-with-recvmmsg
Browse files Browse the repository at this point in the history
dnsdist: Also test metrics with recvmmsg support enabled
  • Loading branch information
rgacogne authored Sep 7, 2023
2 parents 1652576 + bd5a0bc commit 7327f82
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion regression-tests.dnsdist/test_Metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import dns
from dnsdisttests import DNSDistTest, pickAvailablePort

class TestRuleMetrics(DNSDistTest):
class RuleMetricsTest(object):

_config_template = """
addTLSLocal("127.0.0.1:%s", "%s", "%s", { provider="openssl" })
Expand Down Expand Up @@ -176,3 +176,12 @@ def testServFailMetrics(self):
self.assertEqual(self.getMetric('frontend-servfail'), frontendBefore + 2)
self.assertEqual(self.getMetric('servfail-responses'), servfailBefore + 1)
self.assertEqual(self.getMetric('rule-servfail'), ruleBefore)

class TestRuleMetricsDefault(RuleMetricsTest, DNSDistTest):
None

class TestRuleMetricsRecvmmsg(RuleMetricsTest, DNSDistTest):
# test the metrics with recvmmsg/sendmmsg support enabled as well
_config_template = RuleMetricsTest._config_template + """
setUDPMultipleMessagesVectorSize(10)
"""

0 comments on commit 7327f82

Please sign in to comment.