pyldb: Add tests for ldb.Message containment testing
commit64c41d30986a34b3311bc03ffce9a8856c7f4f18
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Sat, 25 Sep 2021 01:48:57 +0000 (25 13:48 +1200)
committerStefan Metzmacher <metze@samba.org>
Thu, 28 Oct 2021 08:58:16 +0000 (28 08:58 +0000)
tree20362815cb2489d2322b6dd9a26550f2ee4a8845
parent65f3e987675d378afd7df4445d04c86d83cde853
pyldb: Add tests for ldb.Message containment testing

These tests verify that the 'in' operator on ldb.Message is consistent
with indexing and the get() method. This means that the 'dn' element
should always be present, lookups should be case-insensitive, and use of
an invalid type should result in a TypeError.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14845
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14848

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 865fe238599a732360b77e06e592cb85d459acf8)
lib/ldb/tests/python/api.py
selftest/knownfail.d/pyldb [new file with mode: 0644]