e80b322077
s4-python: Allow setting TEST_DEBUG_LEVEL to override debug level for tests.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org >
Autobuild-Date: Wed Jan 5 01:58:44 CET 2011 on sn-devel-104
2011-01-05 01:58:44 +01:00
f98d9e06cf
Move get_loadparm() and get_credentials() to samba.tests.TestCase.
2010-12-15 14:57:43 +01:00
71671a84bb
s4-python: Add more module docstrings.
2010-12-05 17:27:05 +01:00
52d64c53b9
s4-python: Add some more module docstrings.
2010-12-05 17:27:05 +01:00
97f0d6c278
samba.tests.hostconfig: Fix import.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org >
Autobuild-Date: Sun Nov 28 18:08:33 CET 2010 on sn-devel-104
2010-11-28 18:08:33 +01:00
ca495e67b2
samba.hostconfig: Move samba.shares into samba.hostconfig.
2010-11-28 17:23:27 +01:00
8caac9462a
samba.provision: Add package with provision and backend modules.
2010-11-28 05:00:06 +01:00
a7675bd501
s4-python: Fix formatting of docstrings for the purpose of pydoctor.
2010-11-28 05:00:06 +01:00
ae48c626c8
samba.tests: Fix formatting.
2010-11-28 05:00:05 +01:00
db5bcb7115
s4-tests: Added a common definition of delete_force.
2010-11-25 01:09:27 +02:00
9c2bd08498
s4-tests: Wrap connect_samdb() into a connect_samdb_ex() helper
...
Thus caller will be able to connect to SamDB and fetch
RootDSE info in a single step
2010-11-22 15:37:40 +02:00
bc6ba4b04c
s4-samba.tests: Explicitly pass LoadParm() instance to system_session() function
...
Otherwise system_session() creates a LoadParm() instance
wich resets certain params to their defaults from smb.conf
("log level" for instance)
2010-11-22 15:37:40 +02:00
f5ea6f4b4c
unit tests: add testing for dns account password change
2010-11-12 19:40:21 +00:00
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
302e1d29d8
s4-python-test: Common implementation for getting environment variable value
...
Unit-test based python tests require certain input parameters
to be set in environment, otherwise they can't be run
2010-10-03 01:24:56 +03:00
7acbb7346f
s4-python-test: Implement global connect_samdb() function
...
This helper makes proper ldb url to connect to
and is a shorthand for test to create SamDB connections
2010-10-03 01:24:56 +03:00
176ecce9a6
s4-provision: wipe the old keytabs when provisioning
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org >
2010-09-30 14:36:12 -07:00
7378b6d2a2
s4-selftest: Move credentials tests to standard python directory.
2010-09-22 22:29:09 -07:00
cc5b673e18
s4-selftest: Move samba3sam test to standard python directory.
2010-09-22 22:29:09 -07:00
3d0e6db9dc
selftest: Fix idlist running.
2010-09-22 22:29:09 -07:00
3fea9df85a
s4-param: Check type when converting python object to lp_ctx, fix some
...
memory leaks.
2010-09-22 17:48:23 -07:00
63031a2a78
pygensec: Implement start_mech_by_name().
2010-09-22 17:48:23 -07:00
5a75fb194a
ndrdump: Move blackbox test to standard python namespace.
2010-09-22 17:48:23 -07:00
e12e661f35
s4-selftest: Move more tests to scripting/python, simplifies running of tests.
2010-09-21 22:54:38 -07:00
58cfbc510c
rpc_talloc: Update test now that we create fewer references.
2010-09-20 22:40:47 -07:00
7fc40d2ed3
pytestrpc: Be more verbose.
2010-09-20 22:40:47 -07:00
f161fa3ac8
testrpc: Convert from a single unit test to a simple test script, be
...
more verbose.
2010-09-20 22:40:46 -07:00
a7393449eb
pidl: Fix segfault when accessing unicode objects.
2010-09-20 22:40:46 -07:00
0bc53f7d9f
pidl: Keep only a single copy of samba.dcerpc.base.ClientConnection.
2010-09-03 02:39:38 +02:00
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
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
e69b13ccdd
s4-pyrpc: added a test for talloc behaviour in pidl python code
2010-08-25 23:05:05 +10:00
62a32975c8
s4: Add unit test for increment_calculated_keyversion_number
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org >
2010-07-15 22:08:21 +10:00
f97c90c9cd
s4 python: Add functions to samdb to manipulate version of replPropertyMetaData attribute
...
This change contains also helpers for attribute id to attribute oid
conversion and from attribute id to attribute name.
It brings also unit tests
Signed-off-by: Andrew Bartlett <abartlet@samba.org >
2010-07-15 22:08:20 +10:00
6a0856da9c
s4 dsdb: Use the changereplmetadata control
...
This control allow to specify the replPropertyMetaData attribute to
be specified on modify request. It can be used for very specific needs
to tweak the content of the replication data.
Signed-off-by: Andrew Bartlett <abartlet@samba.org >
2010-07-15 22:08:20 +10:00
800c7af0c9
s4:provision: also use fixed GUID names of the default group policies for domain and domain controllers in tests
...
metze
2010-07-10 11:18:19 +02:00
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
e062e7300b
s4:python LDB __init__.py - remove completely unused "erase_partitions" call
...
Seems to be a relict from the past.
2010-06-20 18:52:28 +02:00
3795358aca
Use standard Python syntax, booleans and set()'s where appropriate.
2010-06-20 12:06:50 +02:00
afad634207
Formatting cleanups; use True/False for booleans, unnecessary backslashes, spacing.
2010-06-20 01:57:11 +02:00
1d86414eb0
samdb: Fix formatting, move get_oid_from_attid from Ldb to SamDB.
2010-06-20 01:30:51 +02:00
b48182007c
s4-python: Remove trivial function, replace by dictionary.
2010-06-20 01:30:51 +02:00
59f17f9e64
s4 unittests: add unit tests for upgradehelpers
...
The functions tested are:
* construct_existor_expr
* search_constructed_attrs_stored
Signed-off-by: Jelmer Vernooij <jelmer@samba.org >
2010-06-20 00:43:09 +02:00
fbeacc1013
s4 upgradeprovision: Move functions to helpers and improve code
...
Among code improvement the most significant part is that we now
compare DN object instead of their string representation. It allow
to better react to case an white space difference.
Some new move objects have been added (ie. System into well known
security principals).
This will allow more unittesting
Signed-off-by: Jelmer Vernooij <jelmer@samba.org >
2010-06-20 00:43:08 +02:00
8ff65b0136
s4 python: Update unit tests related to create secrets
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org >
2010-06-20 00:43:08 +02:00
a466e0d61a
s4 python: Add unit tests for upgradeprovision related stuff
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org >
2010-06-20 00:43:08 +02: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
50429fb750
samba.tests.samba3: Clean up imports, use new TestCase class.
2010-06-19 22:46:44 +02:00
f57b26b6f4
ntacls: Raise TestSkipped rather than writing to stdout.
2010-06-19 22:46:44 +02:00