From: Remi Gacogne Date: Tue, 18 Oct 2022 15:38:59 +0000 (+0200) Subject: dnsdist: Update the backend discovery tests for the updated health-check options X-Git-Tag: dnsdist-1.8.0-rc1~271^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3773f51d8b600ba8adb1c6a6ac4ebc7c7f206b5d;p=thirdparty%2Fpdns.git dnsdist: Update the backend discovery tests for the updated health-check options --- diff --git a/regression-tests.dnsdist/test_BackendDiscovery.py b/regression-tests.dnsdist/test_BackendDiscovery.py index b8ee41f433..f8b1f14041 100644 --- a/regression-tests.dnsdist/test_BackendDiscovery.py +++ b/regression-tests.dnsdist/test_BackendDiscovery.py @@ -357,7 +357,13 @@ class TestBackendDiscovery(DNSDistTest): continue tokens = line.split() self.assertTrue(len(tokens) == 12 or len(tokens) == 13) - self.assertEquals(tokens[2], 'UP') + if tokens[1] == '127.0.0.1:10652': + # in this particular case, the upgraded backend + # does not replace the existing one and thus + # the health-check is forced to auto (or lazy auto) + self.assertEquals(tokens[2], 'up') + else: + self.assertEquals(tokens[2], 'UP') pool = '' if len(tokens) == 13: pool = tokens[12]