]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pytest/dns_aging: Assert that the name of the node to search for is a string
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 29 Aug 2023 05:37:31 +0000 (17:37 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 30 Aug 2023 02:15:29 +0000 (02:15 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/dns_aging.py

index 97c87d2b2f413fb8d0928bfa163948711a3cce82..35d0e5c5380b9888cb532753e1777c1d0f2d639b 100644 (file)
@@ -384,6 +384,7 @@ class TestDNSAging(DNSTest):
         self.rpc_replace(name, old, None)
 
     def get_one_node(self, name):
+        self.assertIsInstance(name, str)
         expr = f"(&(objectClass=dnsNode)(name={name}))"
         nodes = self.samdb.search(base=self.zone_dn,
                                   scope=ldb.SCOPE_SUBTREE,