From: Xabier Napal Date: Thu, 18 Dec 2025 11:30:48 +0000 (+0100) Subject: test(auth): rename empty backupselector test record X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df19f56c2b87a0a012e43ebe8c8a16902b75dbc2;p=thirdparty%2Fpdns.git test(auth): rename empty backupselector test record Signed-off-by: Xabier Napal --- diff --git a/regression-tests.auth-py/test_LuaRecords.py b/regression-tests.auth-py/test_LuaRecords.py index 8873685330..db62590859 100644 --- a/regression-tests.auth-py/test_LuaRecords.py +++ b/regression-tests.auth-py/test_LuaRecords.py @@ -65,7 +65,7 @@ some.ifportup 3600 IN LUA A "ifportup(8080, {{'192.168.42.21 multi.ifportup 3600 IN LUA A "ifportup(8080, {{ {{'192.168.42.23'}}, {{'192.168.42.21', '{prefix}.102'}}, {{'{prefix}.101'}} }})" none.ifportup 3600 IN LUA A "ifportup(8080, {{'192.168.42.21', '192.168.21.42'}})" all.noneup.ifportup 3600 IN LUA A "ifportup(8080, {{'192.168.42.21', '192.168.21.42'}}, {{ backupSelector='all' }})" -empty.ifportup 3600 IN LUA A "ifportup(8080, {{'192.168.42.21', '192.168.21.42'}}, {{ backupSelector='empty' }})" +empty.noneup.ifportup 3600 IN LUA A "ifportup(8080, {{'192.168.42.21', '192.168.21.42'}}, {{ backupSelector='empty' }})" hashed.example.org. 3600 IN LUA A "pickhashed({{ '1.2.3.4', '4.3.2.1' }})" hashed-v6.example.org. 3600 IN LUA AAAA "pickhashed({{ '2001:db8:a0b:12f0::1', 'fe80::2a1:9bff:fe9b:f268' }})" @@ -448,10 +448,10 @@ class TestLuaRecords(BaseLuaTest): """ Basic ifportup() test with all ports DOWN, fallback to 'empty' backup selector """ - name = 'empty.ifportup.example.org.' + name = 'empty.noneup.ifportup.example.org.' query = dns.message.make_query(name, dns.rdatatype.A) - # With backupSelector='empty', we always return NODATA when no healthy targets, + # With backupSelector='empty', we always return NODATA when there are no healthy targets, # even before health checks have run (fail-close behavior). res = self.sendUDPQuery(query) self.assertRcodeEqual(res, dns.rcode.NOERROR)