samdb: Add tests for samdb tdb file creation.
authorGary Lockyer <gary@catalyst.net.nz>
Wed, 7 Feb 2018 01:59:21 +0000 (14:59 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 7 Feb 2018 22:45:23 +0000 (23:45 +0100)
commita157091a22446fd60830d5f352e44c6bad9264ba
treebb1a99b6350f378e0c3159f362b957ab51c292a2
parentb96b51fa95ca3723dfb0a86d5186f5b8a3485a99
samdb: Add tests for samdb tdb file creation.

The current defaults for SamDB are to create the database file if it
does not exist.  Most of the uses of SamDB assume the database already
exists, and so auto-creation is not the desired behaviour.

Also TDB will overwrite an existing non TDB file with a newly created
TDB file.  This becomes an issue when using alternate database file
formats i.e. lmdb.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/samdb_api.py [new file with mode: 0644]
selftest/knownfail.d/samdb [new file with mode: 0644]
selftest/tests.py