From 3773f51d8b600ba8adb1c6a6ac4ebc7c7f206b5d Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 18 Oct 2022 17:38:59 +0200 Subject: [PATCH] dnsdist: Update the backend discovery tests for the updated health-check options --- regression-tests.dnsdist/test_BackendDiscovery.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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] -- 2.47.2