pytest/dns_aging: Correctly check that record is tombstoned
commit472d80c1c9f24bd352cd1cb41b0d66dde418ce91
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 29 Aug 2023 05:31:14 +0000 (29 17:31 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 30 Aug 2023 02:15:29 +0000 (30 02:15 +0000)
tree3ae440da502bc548efb252166cfbd537f850acf1
parent8e5c998b1d327dd6f3e4a8c433bf456cf496ac75
pytest/dns_aging: Correctly check that record is tombstoned

We were passing in as the name parameter to assert_tombstoned() an NDR
Python object, rather than a string. This meant that the LDAP search
filter would look something like this:

(&(objectClass=dnsNode)(name=<dnsp.DnssrvRpcRecord talloc based object at 0x29abee0>))

and we would fail to find any records.

These searches should have a better chance of working if we pass in the
name of the record instead.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/dns_aging.py