summaryrefslogtreecommitdiff
path: root/python/samba/tests/samdb_api.py
AgeCommit message (Collapse)AuthorFilesLines
2018-04-05selftest: enable py3 for samba.tests.samdb_apiJoe Guo1-10/+10
Fix bytes and string. Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2018-02-28samba python tests: convert 'except X, (tuple)' to 'except X as e'Noel Power1-2/+4
In addition to converting the except line another line is also added for each except to extract the tuple contents. Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-02-07samdb: Add tests for samdb tdb file creation.Gary Lockyer1-0/+158
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>