ldb: tests for <= and >= integer indexing
authorAaron Haslett <aaronhaslett@catalyst.net.nz>
Mon, 11 Mar 2019 03:39:13 +0000 (16:39 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 8 Apr 2019 02:07:23 +0000 (02:07 +0000)
commit18438c8af2fb64ea3580cee92b4744a759a0ded8
treec495de6ab5f1d1386bf825f7f4798b1a22db98db
parent6062d7241deb931c35700dd0449ac7e34e1d5b2a
ldb: tests for <= and >= integer indexing

Testing max, min and negative values for indexed 32 and 64 bit types.
This has to be done in two different files because the 64 bit type is
LDB_SYNTAX_INTEGER which is implemented at the ldb level, while the 32
bit is added in the ldb-samba module.  Schema syntax binding added for
ldb-samba.

We also need to make sure that full scans are not invoked for LMDB.

Pair-programmed-with: Garming Sam <garming@catalyst.net.nz>

Signed-off-by: Aaron Haslett <aaronhaslett@catalyst.net.nz>
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb-samba/pyldb.c
lib/ldb-samba/tests/index.py [new file with mode: 0644]
lib/ldb/tests/python/index.py
python/samba/tests/complex_expressions.py
source4/selftest/tests.py