Kamen Mazdrashki
bfb0adf0b4
s4/samba.tests: Raise BlackboxProcessError exception in case check_output method fails
...
This way the caller gets the chance to receive STDOUT and STDERR for
a failed process.
We may use this info to check if a process has failed properly,
e.g. with expected output
2011-02-20 23:13:12 +02:00
Kamen Mazdrashki
348295bf8a
s4/samba.tests: Extend CalledProcessError class to store STDOUT and STDERR for a failed rocess call
2011-02-20 23:13:11 +02:00
Kamen Mazdrashki
099644f0a7
s4/tests: Move command line processing into separate method to be reused
2011-02-09 11:57:13 +02:00
Kamen Mazdrashki
6b1574636a
s4/tests: Implement BlackboxTestCase.check_output() method
...
I am going to need this to check if output is OK (kind of)
2011-02-09 11:57:13 +02:00
Jelmer Vernooij
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
Jelmer Vernooij
f98d9e06cf
Move get_loadparm() and get_credentials() to samba.tests.TestCase.
2010-12-15 14:57:43 +01:00
Jelmer Vernooij
a7675bd501
s4-python: Fix formatting of docstrings for the purpose of pydoctor.
2010-11-28 05:00:06 +01:00
Jelmer Vernooij
ae48c626c8
samba.tests: Fix formatting.
2010-11-28 05:00:05 +01:00
Nadezhda Ivanova
db5bcb7115
s4-tests: Added a common definition of delete_force.
2010-11-25 01:09:27 +02:00
Kamen Mazdrashki
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
Kamen Mazdrashki
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
Kamen Mazdrashki
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
Kamen Mazdrashki
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
Jelmer Vernooij
3d0e6db9dc
selftest: Fix idlist running.
2010-09-22 22:29:09 -07:00
Jelmer Vernooij
5a75fb194a
ndrdump: Move blackbox test to standard python namespace.
2010-09-22 17:48:23 -07: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
026a4d85a1
samba.tests: Provide TestCase and TestSkipped classes (from testtools) for convenience.
2010-06-19 22:46:44 +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
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
b9cf189404
expand tabs in python file, consistent with the rest of the file.
2009-02-24 01:02:26 +01:00
Jelmer Vernooij
90aeca8ebd
Check test directory is cleaned up by Python tests.
...
(This used to be commit c338269b4b9f2bf4d3386880c1d733a8e47e2c8d)
2008-05-29 17:29:56 +02:00
Jelmer Vernooij
1bcbc4afcf
Allow command line options in the subunitrun script.
...
(This used to be commit 524ec0796efebd48e7b5b2eb5fcc92ecc13c0071)
2008-04-14 19:13:41 +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
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
dcb04065cd
python: Fix representation of UUIDs as strings in zone files rather than binary blobs, fix escaping of LDAP URL's in PHP LDAP admin configuration.
...
Pair-programmed with Andrew, but git doesn't appear to support multiple --author arguments. :-(
(This used to be commit dff54ff043563f93b86361039c46e662045f62cc)
2008-01-25 03:54:33 +01:00
Jelmer Vernooij
76eb7ddd75
python: fix tests for check_all_substituted.
...
(This used to be commit 859cffed9d3a62f9f7610d74472aa3c0d1979a35)
2008-01-25 01:30:43 +01:00
Jelmer Vernooij
37f35d2a03
python/provision: Reconcile code partitions-only provisioning and generic provisioning, some other minor refactoring of the provisioning.
...
Pair-programmed by Andrew and me using obby :-)
(This used to be commit 688adcbb635af87fcfedb869b7f1857a947fd2f9)
2008-01-25 01:02:13 +01:00
Jelmer Vernooij
d958f4b391
python: Add function to look for unsubsituted variables.
...
(This used to be commit e726ce5bc515ae8d10b472396e228cfd35737476)
2008-01-24 22:18:27 +01:00
Jelmer Vernooij
6817c5d885
r26628: python: Add more documentation, simplify code in Samba3 module.
...
(This used to be commit 3c329ee73d9979236313c37e51750ec06b8dd69e)
2007-12-29 12:21:04 -06:00
Jelmer Vernooij
533cc583ed
r26596: Fixed upgrade.py.
...
Added blackbox tests for provision and upgrade Python scripts.
Clean up temporary files created by the Python tests.
(This used to be commit 2227fb6df62240cae64d27a1920d878316f819fc)
2007-12-26 11:57:08 -06:00
Jelmer Vernooij
7c146c42d2
r26593: - More work on the python versions of samba3dump and the samba3sam tests.
...
- Initial work converting the upgrade code to Python.
- Removed the old EJS upgrade code because it has been broken for a long time.
(This used to be commit 150cf39fbd4fe088546870fb0d8f20c0d9eb4aca)
2007-12-26 11:57:07 -06:00
Jelmer Vernooij
aa0a06f13c
r26570: - Trim size of the swig-generated Python bindings by removing a 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)
2007-12-24 01:51:03 -06:00
Jelmer Vernooij
c2fffa8335
r26538: Pass path generation function around rather than base directory.
...
(This used to be commit 5f921af41e4dcd6844f6a662d56bd27c4e76ff88)
2007-12-21 05:51:59 +01:00
Jelmer Vernooij
86f91db7d5
r26536: More tests for provisioning code.
...
(This used to be commit 43c8bfeedf06ce806c524a28fa72c643f6db60f4)
2007-12-21 05:51:56 +01:00
Jelmer Vernooij
4e6ab64762
r26527: Start on tests for provision.
...
(This used to be commit 84ac6c6bbfc4baaf28906ee5826a9cf888043656)
2007-12-21 05:51:50 +01:00
Jelmer Vernooij
32f439bfa4
r26503: Change order of arguments in param interface so it's easier to make the
...
section name optional. Fix several smaller bits and pieces in the Python code.
(This used to be commit 1b89311e5fa4fcde060df50e580dc221205cc8ca)
2007-12-21 05:51:06 +01:00
Jelmer Vernooij
07beaf09c9
r26480: Add utility class for testing LDB code.
...
(This used to be commit d7f0b12c9e43b93705f6b9fa6b5ab74fe68e80a0)
2007-12-21 05:50:37 +01:00