Jelmer Vernooij
a977de9fdf
s4-python: Various formatting fixes.
2012-02-18 23:59:48 +01:00
Jelmer Vernooij
209d3c0b71
tests/source: Add wafsamba/ files to list of Python files to check.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Feb 10 01:45:16 CET 2012 on sn-devel-104
2012-02-10 01:45:16 +01:00
Amitay Isaacs
1f0298dd1b
python: Change except: statement to except Exception:
...
This way we only catch true exceptions and keyboard interrupts
are not caught here.
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Tue Jan 24 03:32:40 CET 2012 on sn-devel-104
2012-01-24 03:32:40 +01:00
Stefan Metzmacher
0f14ac40a2
s4:pygensec/tests: add test for gensec_set_max_update_size()
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Jan 12 14:47:05 CET 2012 on sn-devel-104
2012-01-12 14:47:05 +01:00
Matthias Dieter Wallnöfer
354e43ca1e
s4:python tests __init__.py - do not depend on "subprocess.check_call()"
...
Method not present in Python 2.4
Reviewed-by: Jelmer
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Tue Jan 10 00:41:59 CET 2012 on sn-devel-104
2012-01-10 00:41:59 +01:00
Matthias Dieter Wallnöfer
a43b472b62
s4:python tests __init__.py - do not depend on "subprocess.CalledProcessError"
...
The class is not present in Python 2.4
Reviewed-by: Jelmer
2012-01-09 23:08:36 +01:00
Stefan Metzmacher
9465b9ce6f
s4:pygensec/tests: check that the client and server have the same session key
...
metze
2012-01-04 20:55:05 +01:00
Andrew Bartlett
502140a6ff
s4-gensec: Pass the auth context in during gensec test
2011-12-29 14:01:55 +11:00
Amitay Isaacs
809092a7ad
test:dnsserver: Add zone creation and deletion test
2011-12-23 16:18:26 +11:00
Kai Blin
02c9e18094
s4 dns: Update prerequisite checking conforming to RFC
2011-12-17 02:46:08 +01:00
Kai Blin
589d995276
s4 dns: Give better test output on RCODE mismatch
2011-12-17 02:46:08 +01:00
Kai Blin
c01efc1207
s4 dns: Update requests with QCLASS != IN or ALL trigger NOTIMPLEMENTED errors
...
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Fri Dec 9 03:32:28 CET 2011 on sn-devel-104
2011-12-09 03:32:28 +01:00
Kai Blin
358a81eff5
s4 dns: Add test to prove two updates in one packet are a FORMERR
2011-12-09 01:59:28 +01:00
Jelmer Vernooij
31eba612f4
Add test for PEP8 - currently all errors are ignored, but we warn about them - and can ratchet if we want to.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Dec 8 23:44:10 CET 2011 on sn-devel-104
2011-12-08 23:44:10 +01:00
Jelmer Vernooij
a47970cae6
Add tests for srvsvc python interface. Thanks Dhananjay Sathe
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Dec 8 04:57:52 CET 2011 on sn-devel-104
2011-12-08 04:57:52 +01:00
Kai Blin
c326b37358
s4 dns: Test SOA queries
...
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Sat Dec 3 20:52:51 CET 2011 on sn-devel-104
2011-12-03 20:52:51 +01:00
Amitay Isaacs
5184fc8893
s4-test: Remove metadata and ldb.d directory on clean up
...
When using partitions, metadata.tdb automatically gets created in
${prefix}ldb.d/ directory. To correctly clean up check if metadata.tdb
exists, then remove metadata.tdb and directory.
2011-11-29 16:00:36 +11:00
Kai Blin
9f1eb8ab8e
s4 dns: Test QCLASS_NONE query
...
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Thu Nov 24 14:10:45 CET 2011 on sn-devel-104
2011-11-24 14:10:44 +01:00
Kai Blin
8685a35e9c
s4 dns: Test QTYPE_ALL query
2011-11-24 12:35:08 +01:00
Kai Blin
16d9ebb396
s4 dns: Check more of the returned values for the A query
2011-11-24 12:35:08 +01:00
Kai Blin
1a599da550
s4 dns: Move dns_transaction_udp to other helper functions
2011-11-24 12:35:08 +01:00
Amitay Isaacs
cd3f552f4f
s3-py-passdb: Fix handling of uninitialized gid values
...
Uninitialized gid value is set to -1 and return as such from python
passdb api.
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Fri Nov 18 06:18:33 CET 2011 on sn-devel-104
2011-11-18 06:18:33 +01:00
Amitay Isaacs
d0e9f22654
s3-passdb_test: Policy values are converted to signed integer
...
No need to check value for 0xffffffff (4294967295).
2011-11-18 14:38:28 +11:00
Kai Blin
e5ebda4156
s4 dns: Add a first test case
2011-11-17 15:25:58 +01:00
Jelmer Vernooij
f7c8af7599
samba.tests.dsdb: Import TestCase from samba.tests.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Nov 17 08:36:17 CET 2011 on sn-devel-104
2011-11-17 08:36:17 +01:00
Jelmer Vernooij
1214e5f23d
samba.tests: Make sure testtools is available before importing it.
2011-11-17 07:02:15 +01:00
Andrew Tridgell
46723aa2da
s4-test: improved error checking in samba-tool time test
...
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
2011-11-10 14:24:21 +11:00
Sean Dague
a818253960
test: add samba-tool user tests
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-11-10 14:24:20 +11:00
Sean Dague
a66eae9a6d
test: Add samba-tool time tests
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-11-10 14:24:20 +11:00
Sean Dague
559835dc59
test: add directory and base class for samba-tool tests
...
this allows for more sophisticated testing of samba-tool
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-11-10 14:24:20 +11:00
Amitay Isaacs
5104abd573
s4-dnsserver: Test forward zones are not listed in reverse zone search
...
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Tue Nov 8 01:26:43 CET 2011 on sn-devel-104
2011-11-08 01:26:43 +01:00
Jelmer Vernooij
23d3880725
samba.netcmd: Pass in outf/errf.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Nov 2 20:09:40 CET 2011 on sn-devel-104
2011-11-02 20:09:40 +01:00
Amitay Isaacs
4a6410df54
s4-dnsserver: Check the raised exception with assertRaises
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-11-02 15:26:54 +11:00
Amitay Isaacs
7ca0bed38d
s4-selftest: Add tests for RPC dnsserver
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-10-20 05:53:05 +02:00
Andrew Tridgell
8890f709d9
s4-test: added test suite for common.py code
...
this tests the dsdb_Dn() class
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Oct 20 05:51:28 CEST 2011 on sn-devel-104
2011-10-20 05:51:28 +02:00
Jelmer Vernooij
416bf1c677
samba.getopt: Add some basic tests.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Oct 19 05:04:33 CEST 2011 on sn-devel-104
2011-10-19 05:04:33 +02:00
Jelmer Vernooij
1b27efd910
samba-tool: Add test to make sure all commands have a short description set.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Oct 14 01:53:45 CEST 2011 on sn-devel-104
2011-10-14 01:53:45 +02:00
Jelmer Vernooij
37a4bcd28b
samba-tool: Add test to make sure all commands have a synopsis set.
2011-10-14 00:22:57 +02:00
Jelmer Vernooij
b5d5945801
samba.netcmd: Reintroduce Command.name.
2011-10-14 00:22:57 +02:00
Andrew Bartlett
3cdb1fe440
s4-messaging: Pass the loadparm context, not just the messaging path
...
This will allow the TDB layer to get at the lp_ctx for tdb options.
Andrew Bartlett
2011-10-13 14:06:07 +02:00
Jelmer Vernooij
de9b3b6190
samba-tools/testparm: Add really basic unit test, demonstrating how to write unit tests for samba-tool in Python.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Oct 13 01:56:20 CEST 2011 on sn-devel-104
2011-10-13 01:56:20 +02:00
Jelmer Vernooij
df1d3dc777
s4-python: Consistently use spaces rather than tabs, fix headers in several places.
2011-09-13 02:24:03 +02:00
Jelmer Vernooij
b4c4a2d0f9
Add samba.tests.source, which checks Python files for copyright lines, license headers and invalid characters (dos newlines, tabs).
2011-09-13 02:24:03 +02:00
Amitay Isaacs
4688b3ca60
s4-test: name attribute remove from Command class, so test not required
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-09-09 15:24:00 +10:00
Amitay Isaacs
099b9db404
py-samba3-test: Copy sample database in tempdir before running test
...
Samba3 python module using passdb api modifies the database files, to
upgrade them to latest version. So copy the sample database before
running tests on it.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Aug 26 07:04:15 CEST 2011 on sn-devel-104
2011-08-26 07:04:15 +02:00
Amitay Isaacs
eebb37c9b2
py-samba3-test: Set lock directory to the datadir
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-26 10:07:28 +10:00
Amitay Isaacs
d2536b3120
py-samba3: Use passdb/param wrapper for samba3 module
...
Instead of parsing samba3 database files (password, group mapping,
account policy, secrets), use passdb python wrapper.
Similarly for parsing configuration, use samba3 param python wrapper.
Other databases (idmap, registry, wins) are still parsed in python.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-26 10:06:33 +10:00
Andrew Tridgell
76b165778d
s4-dsdb: change the samba3sam test to add the show_deleted module
...
this is needed now that the samldb module adds the show deleted
control
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-07-21 11:44:34 +10:00
Andrew Tridgell
2087eb1602
ldb: use base searches for @ special DNs
...
subtree searches on these DNs don't work any more
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-07-13 12:51:05 +02:00
Andrew Bartlett
a18efb1490
s4-param Remove 'sid generator'
...
This was only used by the Fedora DS backend for Samba4. We agreed to
no longer support external LDAP backends.
Andrew Bartlett
2011-06-06 17:37:50 +10:00