summaryrefslogtreecommitdiffstats
path: root/source4/lib/ldb/tests/python/api.py
Commit message (Collapse)AuthorAgeFilesLines
* ldb: make ldb a top level library for Samba 4.0Andrew Bartlett2011-07-051-748/+0
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* pyldb: add unit test for get(myattribute, defVal)Matthieu Patou2011-06-201-0/+5
| | | | | Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Mon Jun 20 09:23:15 CEST 2011 on sn-devel-104
* pyldb: Add tests for the ldb_result objectMatthieu Patou2011-02-211-0/+87
|
* pyldb: fix a bug in the unit test which prevented ldb.python to run all the ↵Matthieu Patou2011-02-131-0/+3
| | | | | | | tests in the testsuite Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Sun Feb 13 00:14:24 CET 2011 on sn-devel-104
* pyldb: Fix memory reference error.Jelmer Vernooij2011-01-031-0/+4
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Jan 3 02:34:05 CET 2011 on sn-devel-104
* s4:ldb:python/api: use filename() instead of hardcoded filenamesStefan Metzmacher2010-12-271-6/+6
| | | | metze
* s4:ldb:python/api: use only one ldb file in test_contains()Stefan Metzmacher2010-12-241-2/+3
| | | | metze
* s4:ldb:python/api: use filename() instead of hardcoded filenamesStefan Metzmacher2010-12-241-6/+7
| | | | | | | This makes sure we use files under $SELFTEST_PREFIX instead of the source directory. metze
* ldb: Add ldb.Message.add and ldb.Message.elements.Jelmer Vernooij2010-12-211-4/+14
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Dec 21 15:03:17 CET 2010 on sn-devel-104
* pyldb: Fix broken test.Jelmer Vernooij2010-11-231-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Nov 23 23:20:38 CET 2010 on sn-devel-104
* s4-ldb.python: Use $SELFTEST_PREFIX/tmp as a temporary directory for testingKamen Mazdrashki2010-11-181-1/+6
| | | | | | | This way we won't flood /tmp directory with temp files Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Thu Nov 18 23:11:18 CET 2010 on sn-devel-104
* s4-ldb.python: add test for ldb.Message.from_dict() methodKamen Mazdrashki2010-11-181-0/+17
|
* Revert "s4:api.py - DN tests - test a bit more special DNs and merge the ↵Matthias Dieter Wallnöfer2010-11-181-44/+1
| | | | | | | | | | comparison tests" This reverts commit 732ef9353dff56384e8bb01aa20d2a371cd995c2. Jelmer doesn't like to have these tests there. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Thu Nov 18 17:46:38 UTC 2010 on sn-devel-104
* s4:api.py - DN tests - test a bit more special DNs and merge the comparison ↵Matthias Dieter Wallnöfer2010-11-181-11/+47
| | | | tests
* Add missing dependencies for com_err.Jelmer Vernooij2010-10-051-0/+6
|
* unittests: add a test to avoid regression on previous fixMatthieu Patou2010-10-041-0/+5
| | | | | Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Mon Oct 4 20:23:31 UTC 2010 on sn-devel-104
* python: Use samba.tests.TestCase, make sure base class tearDown andJelmer Vernooij2010-06-191-4/+1
| | | | setUp methods are called, fix formatting.
* ldb:api.py - add a small test for the enhanced "py_ldb_delete" syntaxMatthias Dieter Wallnöfer2010-06-191-0/+9
|
* s4 python: add more unit tests to verify the compare testsMatthieu Patou2010-06-071-0/+19
|
* python: use '#!/usr/bin/env python' to cope with varying install locationsAndrew Tridgell2010-03-251-1/+1
| | | | this should be much more portable
* pythonbindings: allow add() to have an array of controls as second parameterMatthieu Patou2009-09-261-0/+8
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* pyldb: Don't segfault when invalid type is specified to Dn.get().Jelmer Vernooij2009-09-141-0/+4
| | | | (#6722)
* s4:ldb Add ldb_ldif_write_string() and python wrappersAndrew Bartlett2009-08-261-1/+3
| | | | | | This allows us to turn a python LdbMessage back into a string. Andrew Bartlett
* s4:ldb Add hooks to get/set the flags on a ldb_message_elementAndrew Bartlett2009-08-261-5/+39
| | | | | | | Also add tests to prove that we got this correct, and correct the existing tests which used the wrong constants. Andrew Bartlett
* s4:ldb Add python binding and test for ldb_msg_diff()Andrew Bartlett2009-08-241-0/+11
|
* pyldb: Raise proper exception when attempting to assign a string to a dnJelmer Vernooij2009-08-031-0/+6
| | | | attribute.
* pyldb: Fix three more (minor) memory leaks.Jelmer Vernooij2009-06-171-2/+2
|
* pyldb/tests: Use different dn's everywhere, to easily spot which test isJelmer Vernooij2009-06-171-49/+49
| | | | breaking in gdb.
* pyldb: Support getting the parent of special DNs without segfaulting.Jelmer Vernooij2009-06-171-0/+11
| | | | Found by: Андрей Григорьев <andrew@ei-grad.ru>
* Adapt Zahari's test to the generic LDB Python tests.Jelmer Vernooij2009-03-201-0/+13
|
* Fix more introduced regressions in new bindings.Jelmer Vernooij2008-12-211-33/+32
|
* Fix all pyldb tests except for modules.Jelmer Vernooij2008-12-201-6/+13
|
* Fix more tests.Jelmer Vernooij2008-12-191-1/+2
|
* Remove swig support from standalone ldb build.Jelmer Vernooij2008-12-191-1/+0
|
* Don't expose ldb_request in the Python API but rather use regularJelmer Vernooij2008-09-201-3/+8
| | | | parameters.
* Add support for implementing LDB modules in Python.Jelmer Vernooij2008-09-191-4/+27
|
* Fix spellings and file namesSimo Sorce2008-09-121-31/+31
| | | | (This used to be commit baddefd0a6fa430af1a3001064149127e0d29361)
* Add __repr__ implementation for Ldb.Jelmer Vernooij2008-05-191-0/+4
| | | | (This used to be commit 5607aea07f66f09fd5b33842d07d2fbbf44d13e7)
* Add __repr__ implementations for ldb.Message, ldb.MessageElement and ldb.Dn.Jelmer Vernooij2008-05-191-1/+37
| | | | (This used to be commit b9119c0f0f524d43ff09825dffb24a5e77a240f4)
* Avoid using setup.py for intsallation.Jelmer Vernooij2008-02-121-0/+3
| | | | (This used to be commit 7b93e43dad55454e9107a38e67764e08f51392d3)
* ldb/python: Support comparing Dn's to strings.Jelmer Vernooij2008-01-111-0/+4
| | | | (This used to be commit 355878907970b396e4031426fda260d981c417eb)
* python/ldap: Support controls argument to ldb.search().Jelmer Vernooij2008-01-111-9/+13
| | | | (This used to be commit 9eddc27f13fa2feb56d6b015e66d8c54081487da)
* python/ldap: Wrap parse_control_strings().Jelmer Vernooij2008-01-111-0/+5
| | | | (This used to be commit b27e5a68530c4fd6430cbb174b63f8ff2b6f4e53)
* ldb/python: Allow comparing a MessageElement to a list or a singleton.Jelmer Vernooij2008-01-111-0/+6
| | | | (This used to be commit 1ccbab81d79f83bb419104f2bbaf2ae7b368e90f)
* ldb/python: Implement __len__ for MessageElement.Jelmer Vernooij2008-01-111-0/+4
| | | | (This used to be commit a8f90ed34ce9341080b63c801ef54b82de42b8e6)
* python/ldb: Add __getitem__ implementation for LdbMessageElement.Jelmer Vernooij2008-01-111-0/+6
| | | | (This used to be commit e6498a0780dd31dfc623a69432004b606aeaccbe)
* r26570: - Trim size of the swig-generated Python bindings by removing a ↵Jelmer Vernooij2007-12-241-0/+17
| | | | | | | | bunch of {}'s. - Start working on Python equivalents for various EJS tests. - Fix regression in argument order for reg_diff_apply() in EJS bindings. (This used to be commit c550c03372cb260b78f6a6c132e70571bc4cb852)
* r26567: Allow registering new ldb modules from python.Jelmer Vernooij2007-12-241-0/+8
| | | | (This used to be commit 485db76d8476fce399a9b6cb977cf55ea35ec189)
* r26537: Support ldb.add({'dn': 'dc=foo,bar=bla', ...}).Jelmer Vernooij2007-12-211-0/+10
| | | | (This used to be commit e91fe76d296973430f71502c9b614d0dfac4d83c)
* r26480: Add utility class for testing LDB code.Jelmer Vernooij2007-12-211-1/+4
| | | | (This used to be commit d7f0b12c9e43b93705f6b9fa6b5ab74fe68e80a0)