Jelmer Vernooij
13bbfa3fca
pydsdb: Fix memory leak on invalid parameters, formatting, trivial
...
typos.
2010-04-15 18:45:41 +02:00
Matthieu Patou
ce28f854c0
s4 python: add a unit test for function dsdb_get_oid_from_attid
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-04-15 18:45:41 +02:00
Jelmer Vernooij
89aa3b766b
s4-python: Format to PEP8, simplify tests.
2010-03-29 18:05:29 +02:00
Jelmer Vernooij
86e2b25186
More formatting fixes, pointed out by pylint.
2010-03-01 16:24:58 +01:00
Jelmer Vernooij
31a718aa27
General cleanups of python code, hinted by pyflakes.
2010-03-01 04:46:51 +01:00
Jelmer Vernooij
da96d3fdba
Remove __contains__ from mock object for consistency with actual
...
implementation.
2010-03-01 03:48:11 +01:00
Jelmer Vernooij
9ddeac17f5
pyxattr: Factor out helper functions.
2010-01-21 17:17:02 +13:00
Jelmer Vernooij
8b0f31994c
pyxattr: Simplify tests.
2010-01-21 16:56:23 +13:00
Jelmer Vernooij
05b4e29f7f
pyxattr: Fix tests by not opening tdb files multiple times.
2010-01-21 16:45:06 +13:00
Jelmer Vernooij
14b0fed96c
pyxattr: Fix tests by avoiding opening tdb files multiple times.
2010-01-21 16:44:20 +13:00
Jelmer Vernooij
9a25380838
pyxattr: Simplify tests.
2010-01-21 16:41:30 +13:00
Matthieu Patou
711c7606a5
s4-tests: register new unit tests
...
make unit test emit a visible warning
2010-01-21 07:11:17 +13:00
Matthieu Patou
10995d9256
s4-python: add unit test for ntacls manipulation in python
2010-01-21 07:11:16 +13:00
Matthieu Patou
3789ba2654
s4-python: add more unit tests for xattr manipulation in python
2010-01-21 07:11:16 +13:00
Matthieu Patou
08c59c38a2
s4: Create unit tests for python "samba.xattr" module
2010-01-21 07:11:14 +13:00
Jelmer Vernooij
8c19cd2dea
netcmd: Add some basic tests.
2009-12-29 16:26:19 +01:00
Matthias Dieter Wallnöfer
ecfd1dfcbd
s4:samba3.py/upgrade.py: Revert
...
This reverts commit 2175c0ed0649d545ea833d50e8d33fbee9051c35.
This reverts commit 6c3e2417a0639cd7c367de93615c422cf5217456.
This reverts commit dbb8989e05ac3189a5eca11fa40d572388ea02fc.
This reverts commit 82adfa39b75aa628c88f828278c6ac09335d1a49.
This reverts commit f299efa8f05c6a5b739222bdf75690a4591d3650.
After a small discussion with Jelmer we agreed that this isn't the right way
to fix the problem. We should wait for a real patch rather to rely on temporal
hacks.
2009-11-28 15:34:43 +01:00
Matthias Dieter Wallnöfer
6c3e2417a0
s4:samba3.py (and test) - deactivate the tests until those parameters are fixed
2009-11-27 16:42:11 +01:00
Andrew Bartlett
e94bfe5efb
s4:provision Fix samdb test with new provision code
2009-11-02 16:36:55 +11:00
Matthias Dieter Wallnöfer
9e7fb6a673
s4:samba.tests.samdb - remove last relicts of the templates
2009-09-30 16:01:32 +02:00
Jelmer Vernooij
a6d4eec3a5
samba.tests.provision: Remove broken become_dc test.
2009-09-26 02:38:09 +02:00
Jelmer Vernooij
96dd5719d4
Add init file for DCE/RPC tests.
2009-09-24 15:03:59 +02:00
Jelmer Vernooij
0450a5bf90
PEP8
2009-09-24 15:03:59 +02:00
Jelmer Vernooij
5cf25fd225
Revert "s4:python fixed subunit tests of dcerpc"
...
This reverts commit ffd48a79ee34dc90c0f6f16564c3a0de8b53d3d2.
2009-09-24 15:03:58 +02:00
Andrew Tridgell
ffd48a79ee
s4:python fixed subunit tests of dcerpc
...
The version of the unitest python module in Ubuntu Jaunty doesn't seem
to support this many level of subdirectories. Moving the tests up one
level solves the problem.
2009-09-04 18:07:04 +10:00
Matthias Dieter Wallnöfer
7a79d16183
s4: Major rework of the LDB/SAMDB/IDMAP python bindings
...
- Centralise the lookups for the default domain (root) in the call "domain_dn"
- Reduce the LDB connections attempts ("connect" calls) from three to one
- tools should load faster
- Make the LDB connection init more like the "ldb_wrap_connection" call
- Load the right UTF8 casefolder which fixes up problems with special characters
(discovered by me: e.g. small "Umlaute" (ä, ö, ü, ...) in the DN weren't upcased
- so records "seemed" lost in TDB)
2009-08-17 11:58:40 +02:00
Andrew Tridgell
52108a19a4
fixed up add_foreign again
...
my last patch was not even close ...
I'll leave abartlet to work out how to fix the test case
2009-08-17 17:48:27 +10:00
Andrew Tridgell
905db32885
more fixups from provision changes
...
Andrew, can you please check this? The idmap.setup_name_mapping tests
look totally out of place here. I'm also not sure I captured your
intention with the other changes
2009-08-17 17:35:36 +10:00
Andrew Tridgell
f3e473ee72
fixed up some provision errors from the recent changes
2009-08-17 13:28:57 +10:00
Andrew Bartlett
113621d96d
s4:provision We no longer add krbtgt or kpasswd account into secrets.ldb
2009-07-29 09:07:49 +10:00
Jelmer Vernooij
c80783eafd
Re-add accidently removed shares test.
2009-07-20 13:34:50 +02:00
Jelmer Vernooij
d5e6ae5cfc
python: Fix samba4.dcerpc.rpcecho.RpcEchoTests.test_surrounding test.
2009-06-08 22:41:39 +02:00
Andrew Bartlett
f128bfd449
Add str() for policy_handles.
...
Pair programmed with Jelmer
2009-04-21 12:06:04 +02:00
Andrew Bartlett
6f60a6e71a
python/dcerpc: Custom implementations of policy_handle.__init__ and policy_handle.__repr__
...
pair-programmed with Jelmer
2009-04-21 11:53:00 +02:00
Andrew Bartlett
1856b999c8
python/rpc: Add custom GUID.__str__, GUID.__repr__, GUID.__init__ and GUID.__cmp__.
2009-04-21 11:14:11 +02:00
Jelmer Vernooij
03abc846ee
Fix the valid NetBIOS name tests.
2009-04-20 11:11:25 +02:00
Jelmer Vernooij
213249ceab
Improve formatting in Python file.
2009-04-06 00:25:08 +02:00
Jelmer Vernooij
b1db78c595
Make valid_netbios_name() check a bit stricter.
2009-04-06 00:25:03 +02:00
Jelmer Vernooij
cdbc00bb52
Fix test_surrounding in samba4.rpcecho.python.
2009-03-02 05:07:30 +01:00
Jelmer Vernooij
b9cf189404
expand tabs in python file, consistent with the rest of the file.
2009-02-24 01:02:26 +01:00
Jelmer Vernooij
762fdc8c5c
Provide a SamDB TestCase-class that can be used by OpenChange.
2009-02-12 16:00:11 +01:00
Jelmer Vernooij
7048e75aee
Use created loadparm context, rather than the one specified on the command-line.
2009-02-12 15:58:11 +01:00
Jelmer Vernooij
9e71fef57b
Use convenience function for finding setup dir in SaMDB tests.
2009-02-11 18:45:51 +01:00
Jelmer Vernooij
d9e94bf336
Make it possible to override the setup path.
2009-02-11 18:17:00 +01:00
Jelmer Vernooij
f13895851f
Cancel transactions when exceptions are raised.
2009-02-11 17:54:58 +01:00
Jelmer Vernooij
00b61ff2cf
samba.tests.samdb: Fix test after merger of samba.security and
...
samba.dcerpc.security
2008-12-23 11:44:10 +01:00
Jelmer Vernooij
a32194033a
Move tests for ParamFile.
2008-12-21 16:39:17 +01:00
Jelmer Vernooij
6efb7ff981
Fix various Python-related bugs.
2008-12-21 07:34:27 +01:00
Jelmer Vernooij
6998ef4fe0
Avoid use of parentheses in Python import statements, as it's not supported by Python2.3.
2008-12-19 21:47:31 +01:00
Jelmer Vernooij
1c94f3e95d
Use new style python classes.
...
(This used to be commit 2a39aae0cef310a79427feb1b85f6794ea36849a)
2008-08-01 21:00:09 +02:00