5c98ccd706
s4 python: Add unit tests related to PyLong/PyInt handling
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org >
2010-06-25 11:33:33 +02:00
4cb423f527
s4-python: python is not always in /usr/bin
...
Using "#!/usr/bin/env python" is more portable. It still isn't ideal
though, as we should really use the python path found at configure
time. We do that in many places already, but some don't.
Signed-off-by: Andrew Bartlett <abartlet@samba.org >
2010-06-24 18:46:57 +10:00
c92db7b6dc
python: Use samba.tests.TestCase, make sure base class tearDown and
...
setUp methods are called, fix formatting.
2010-06-19 22:46:45 +02:00
51058213cb
s4-test: Use smb.conf path set in environment rather than using
...
command-line options.
This is the first step towards supporting custom test runners.
2010-06-13 18:19:03 +02:00
31a718aa27
General cleanups of python code, hinted by pyflakes.
2010-03-01 04:46:51 +01:00
96dd5719d4
Add init file for DCE/RPC tests.
2009-09-24 15:03:59 +02:00
0450a5bf90
PEP8
2009-09-24 15:03:59 +02:00
5cf25fd225
Revert "s4:python fixed subunit tests of dcerpc"
...
This reverts commit ffd48a79ee
.
2009-09-24 15:03:58 +02:00
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
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
d5e6ae5cfc
python: Fix samba4.dcerpc.rpcecho.RpcEchoTests.test_surrounding test.
2009-06-08 22:41:39 +02:00
f128bfd449
Add str() for policy_handles.
...
Pair programmed with Jelmer
2009-04-21 12:06:04 +02:00
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
1856b999c8
python/rpc: Add custom GUID.__str__, GUID.__repr__, GUID.__init__ and GUID.__cmp__.
2009-04-21 11:14:11 +02:00
cdbc00bb52
Fix test_surrounding in samba4.rpcecho.python.
2009-03-02 05:07:30 +01:00
1c94f3e95d
Use new style python classes.
...
(This used to be commit 2a39aae0ce
)
2008-08-01 21:00:09 +02:00
21377a7ea9
Fix the samba4.dcerpc.bare.python test.
...
The loadparm context isn't really optional, as otherwise we can't find
the right server to connect to.
Andrew Bartlett
(This used to be commit 2b5acb5e95
)
2008-05-30 15:26:10 +10:00
d579540085
Fix rpcecho test.
...
(This used to be commit df8399ba9d
)
2008-05-30 15:09:59 +10:00
5df9e0576e
Fix missing colon.
...
(This used to be commit 6b1576f544
)
2008-05-25 14:41:54 +02:00
74126bc6d0
Expose transfer and abstract syntax.
...
(This used to be commit a875e07a37
)
2008-05-25 04:54:38 +02:00
928ecbaebb
Add support for secondary contexts from Python.
...
(This used to be commit 16d1ad0505
)
2008-05-25 04:23:03 +02:00
21ce0ff006
Allow connecting to a DCE/RPC interface with Python for which we don't have IDL.
...
(This used to be commit e3178d522c
)
2008-05-24 22:56:49 +02:00
75e7962d2e
Add convenience functions for setting Python objects from errors.
...
(This used to be commit f1de723b89
)
2008-05-24 22:13:32 +02:00
05194ccdf8
Add tests for new NDR pack/unpack functionality in Python DCE/RPC bindings.
...
(This used to be commit 468d35827f
)
2008-05-24 19:50:09 +02:00
5eed56d0ad
Fix bugs in samr python tests.
...
(This used to be commit 09c6b106ac
)
2008-05-23 15:10:35 +02:00
6ccb9785e7
Add another test toe the python samr testsuite.
...
(This used to be commit 480884c696
)
2008-05-23 04:21:29 +02:00
27005cb7a2
Convert samr test to python.
...
(This used to be commit 88d473b202
)
2008-05-23 04:20:45 +02:00
d77745e692
Move DCE/RPC python bindings into samba package.
...
(This used to be commit 8dafd4ce40
)
2008-05-22 02:21:25 +02:00
059c012656
Fix dependencies and imports.
...
(This used to be commit 37ef86f8de
)
2008-05-22 00:56:36 +02:00
49706ab19b
Move more modules inside of the samba package.
...
(This used to be commit 9b39e99f48
)
2008-05-21 23:59:34 +02:00
4d8f3f1902
Fix the expectations on the unixinfo test.
...
Andrew Bartlett
(This used to be commit 0df2b3e0b5
)
2008-04-17 12:03:49 +02:00
fd52fe8616
Fix pointers when pushing strings to python during pidl generation.
...
(This used to be commit ca72187b3e
)
2008-04-15 14:32:13 +02:00
1b5f32128d
Use RpcInterfaceTestCase everywhere.
...
(This used to be commit 799095b4e5
)
2008-04-14 23:28:14 +02:00
2cdfaedee2
Make sure credentials are specified when running the Python winreg RPC tests.
...
(This used to be commit 280339e3d1
)
2008-04-14 19:20:43 +02:00
02f3695897
Add convenience TestCase class for testing RPC interfaces.
...
(This used to be commit 2f19f98144
)
2008-04-14 18:30:07 +02:00
ad823b04da
Remove length arguments, add tests for unixinfo.GidToSid and unixinfo.UidToSid.
...
(This used to be commit cae61e32e5
)
2008-04-08 14:58:38 +02:00
1f474f4a54
Add trivial test for unixinfo interface.
...
(This used to be commit b6b7171f70
)
2008-04-08 03:29:12 +02:00
af007e5837
Use SMB_CONF_PATH environment variable inside tests rather than hardcoded paths.
...
(This used to be commit eb04de69c0
)
2008-02-11 13:20:24 +01:00
001b2435f0
python: Add simple test for samr python code.
...
(This used to be commit 0a039fabcb
)
2008-01-14 19:53:08 +01:00
035599fa65
python: Be more pythonic - turn WERROR and NTSTATUS return codes into exceptions.
...
(This used to be commit 16fc69b843
)
2008-01-14 19:53:07 +01:00
7dd468ff2e
python: Fix python code for winreg, add test.
...
(This used to be commit bd3e6c41c4
)
2008-01-14 19:53:07 +01:00
271f5f18f2
python: Fix last bugs in rpcecho test. It passes now!
...
(This used to be commit 25a0cd091b
)
2008-01-14 19:53:07 +01:00
3b16c532f2
pidl/python: Pass credentials and loadparm context when connecting using DCE/RPC.
...
(This used to be commit 4c87af9531
)
2008-01-14 19:53:06 +01:00
db4ee4cce5
python: Fix rpcecho tests.
...
(This used to be commit ebb78ea423
)
2008-01-14 19:53:06 +01:00