Jelmer Vernooij
71671a84bb
s4-python: Add more module docstrings.
2010-12-05 17:27:05 +01:00
Jelmer Vernooij
cd172e7724
talloc: Add python talloc module, move convenience functions to it.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Nov 5 02:48:21 UTC 2010 on sn-devel-104
2010-11-05 02:48:21 +00:00
Jelmer Vernooij
e12e661f35
s4-selftest: Move more tests to scripting/python, simplifies running of tests.
2010-09-21 22:54:38 -07:00
Jelmer Vernooij
58cfbc510c
rpc_talloc: Update test now that we create fewer references.
2010-09-20 22:40:47 -07:00
Jelmer Vernooij
7fc40d2ed3
pytestrpc: Be more verbose.
2010-09-20 22:40:47 -07:00
Jelmer Vernooij
f161fa3ac8
testrpc: Convert from a single unit test to a simple test script, be
...
more verbose.
2010-09-20 22:40:46 -07:00
Jelmer Vernooij
a7393449eb
pidl: Fix segfault when accessing unicode objects.
2010-09-20 22:40:46 -07:00
Jelmer Vernooij
0bc53f7d9f
pidl: Keep only a single copy of samba.dcerpc.base.ClientConnection.
2010-09-03 02:39:38 +02:00
Andrew Tridgell
39599e949b
s4-pidl: added a test for all generated rpc interfaces
...
this tries to instantiate all types in all generated python RPC
interfaces, then checks that all attributes can be read, written and
compared.
2010-09-02 13:37:07 +10:00
Andrew Tridgell
502a5313c4
s4-pyrpc: convert rpc_talloc.py test to unittest framework
...
This fits in better with our test framework
Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
2010-08-26 22:50:20 +10:00
Andrew Tridgell
e69b13ccdd
s4-pyrpc: added a test for talloc behaviour in pidl python code
2010-08-25 23:05:05 +10:00
Matthieu Patou
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
Andrew Tridgell
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
Jelmer Vernooij
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
Jelmer Vernooij
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
Jelmer Vernooij
31a718aa27
General cleanups of python code, hinted by pyflakes.
2010-03-01 04:46:51 +01: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
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
cdbc00bb52
Fix test_surrounding in samba4.rpcecho.python.
2009-03-02 05:07:30 +01:00
Jelmer Vernooij
1c94f3e95d
Use new style python classes.
...
(This used to be commit 2a39aae0cef310a79427feb1b85f6794ea36849a)
2008-08-01 21:00:09 +02:00
Andrew Bartlett
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 2b5acb5e95b46dd39c6f54b5bb7e15ddb180f7ec)
2008-05-30 15:26:10 +10:00
Andrew Bartlett
d579540085
Fix rpcecho test.
...
(This used to be commit df8399ba9dee9d1c706a3e56451c9f2cade96dae)
2008-05-30 15:09:59 +10:00
Jelmer Vernooij
5df9e0576e
Fix missing colon.
...
(This used to be commit 6b1576f544e2ea2b5ea0b234b724c4989dd49cca)
2008-05-25 14:41:54 +02:00
Jelmer Vernooij
74126bc6d0
Expose transfer and abstract syntax.
...
(This used to be commit a875e07a37568b7e51c290074d5e3834c2caa4d6)
2008-05-25 04:54:38 +02:00
Jelmer Vernooij
928ecbaebb
Add support for secondary contexts from Python.
...
(This used to be commit 16d1ad050546ae6500153438db8d3c857e6f3ad5)
2008-05-25 04:23:03 +02:00
Jelmer Vernooij
21ce0ff006
Allow connecting to a DCE/RPC interface with Python for which we don't have IDL.
...
(This used to be commit e3178d522c95871f1db35d7e058906502387a553)
2008-05-24 22:56:49 +02:00
Jelmer Vernooij
75e7962d2e
Add convenience functions for setting Python objects from errors.
...
(This used to be commit f1de723b89251cbc8140b838941f304a34871bf3)
2008-05-24 22:13:32 +02:00
Jelmer Vernooij
05194ccdf8
Add tests for new NDR pack/unpack functionality in Python DCE/RPC bindings.
...
(This used to be commit 468d35827fd055c82c6d43d6ce6d3d561abed54d)
2008-05-24 19:50:09 +02:00
Jelmer Vernooij
5eed56d0ad
Fix bugs in samr python tests.
...
(This used to be commit 09c6b106ac144820b8c072bda4dad3d8e2145ff0)
2008-05-23 15:10:35 +02:00
Jelmer Vernooij
6ccb9785e7
Add another test toe the python samr testsuite.
...
(This used to be commit 480884c696c676bb978e9197271b99cc03bb66e6)
2008-05-23 04:21:29 +02:00
Jelmer Vernooij
27005cb7a2
Convert samr test to python.
...
(This used to be commit 88d473b202e82b462ef82ffdeb4f1710918ffda5)
2008-05-23 04:20:45 +02:00
Jelmer Vernooij
d77745e692
Move DCE/RPC python bindings into samba package.
...
(This used to be commit 8dafd4ce40b7348fd5f2b1f2f5d2106ef4cc0dd1)
2008-05-22 02:21:25 +02:00
Jelmer Vernooij
059c012656
Fix dependencies and imports.
...
(This used to be commit 37ef86f8de9039b8226b190254d842e92b5faad7)
2008-05-22 00:56:36 +02:00
Jelmer Vernooij
49706ab19b
Move more modules inside of the samba package.
...
(This used to be commit 9b39e99f48266a54ed0b8890c2efde218b4b118a)
2008-05-21 23:59:34 +02:00
Andrew Bartlett
4d8f3f1902
Fix the expectations on the unixinfo test.
...
Andrew Bartlett
(This used to be commit 0df2b3e0b56007850cf83cfdcdb45ca29e162d34)
2008-04-17 12:03:49 +02:00
Jelmer Vernooij
fd52fe8616
Fix pointers when pushing strings to python during pidl generation.
...
(This used to be commit ca72187b3e71a037780d42a57e46b60e75f724f6)
2008-04-15 14:32:13 +02:00
Jelmer Vernooij
1b5f32128d
Use RpcInterfaceTestCase everywhere.
...
(This used to be commit 799095b4e567f4495adf7d1d7bcb81dda6782959)
2008-04-14 23:28:14 +02:00
Jelmer Vernooij
2cdfaedee2
Make sure credentials are specified when running the Python winreg RPC tests.
...
(This used to be commit 280339e3d126f5c72dc271051b72839fde0c5c9f)
2008-04-14 19:20:43 +02:00
Jelmer Vernooij
02f3695897
Add convenience TestCase class for testing RPC interfaces.
...
(This used to be commit 2f19f981449bf6f4d29f231259817c8b66104a9b)
2008-04-14 18:30:07 +02:00
Jelmer Vernooij
ad823b04da
Remove length arguments, add tests for unixinfo.GidToSid and unixinfo.UidToSid.
...
(This used to be commit cae61e32e5b61a02c2986b74bd1d7e58460b1e80)
2008-04-08 14:58:38 +02:00
Jelmer Vernooij
1f474f4a54
Add trivial test for unixinfo interface.
...
(This used to be commit b6b7171f70114bd27ca8db09964c65cacb9cea92)
2008-04-08 03:29:12 +02:00
Jelmer Vernooij
af007e5837
Use SMB_CONF_PATH environment variable inside tests rather than hardcoded paths.
...
(This used to be commit eb04de69c0e319e18b148191946808f81e1cc8c4)
2008-02-11 13:20:24 +01:00
Jelmer Vernooij
001b2435f0
python: Add simple test for samr python code.
...
(This used to be commit 0a039fabcba9510ab600b2e4becbf75a58d2134d)
2008-01-14 19:53:08 +01:00