From: Remi Gacogne Date: Tue, 9 Mar 2021 17:38:50 +0000 (+0100) Subject: dnsdist: Check more TCP-related metrics in the web API X-Git-Tag: rec-4.5.0-beta1~14^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F10156%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Check more TCP-related metrics in the web API --- diff --git a/regression-tests.dnsdist/test_API.py b/regression-tests.dnsdist/test_API.py index 461dc554f6..e9a965d986 100644 --- a/regression-tests.dnsdist/test_API.py +++ b/regression-tests.dnsdist/test_API.py @@ -108,7 +108,10 @@ class TestAPIBasics(DNSDistTest): for server in content['servers']: for key in ['id', 'latency', 'name', 'weight', 'outstanding', 'qpsLimit', 'reuseds', 'state', 'address', 'pools', 'qps', 'queries', 'order', 'sendErrors', - 'dropRate']: + 'dropRate', 'responses', 'tcpDiedSendingQuery', 'tcpDiedReadingResponse', + 'tcpGaveUp', 'tcpReadTimeouts', 'tcpWriteTimeouts', 'tcpCurrentConnections', + 'tcpNewConnections', 'tcpReusedConnections', 'tcpAvgQueriesPerConnection', + 'tcpAvgConnectionDuration']: self.assertIn(key, server) for key in ['id', 'latency', 'weight', 'outstanding', 'qpsLimit', 'reuseds',