ldb: Prepare to allow tests to operate on ldb_mdb (by using the GUID index)
authorGary Lockyer <gary@catalyst.net.nz>
Tue, 6 Mar 2018 02:30:10 +0000 (15:30 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 3 May 2018 09:08:12 +0000 (11:08 +0200)
commit8a0c7f39d67d8767d9f203dd5a1dd50b49f00a95
tree2989cc3f049530a8e7ab2a7696bc68298612d926
parent910b7beeb47c08a844c207b396c3fd7db9662a8e
ldb: Prepare to allow tests to operate on ldb_mdb (by using the GUID index)

The LMDB backend requires the GUID index mode, so prepare for it
by setting a unique objectGUID on each record.  Also prepare for the
index list to be optionally set as an attribute on the test object,
allowing the GUID index mode to be set later when LMDB is configured.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu May  3 11:08:12 CEST 2018 on sn-devel-144
lib/ldb/tests/python/api.py