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
Rusty Russell
2f67fae18b
samba3sam.py: don't assume order of ldb results.
...
Switching to tdb2 breaks this test horribly, because it relied on the
order of TDB1 traversal. Fix it to sort te results (by db), then
check them.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-02 10:22:06 +09:30
Matthieu Patou
6071ed67bf
s4-python: move function find_provision_key_parameters to provision namespace as it can be used not only for upgradeprovision
2011-05-21 08:41:07 +02:00
Andrew Bartlett
fa3e2fc8bb
selftest: Re-enable strings.py from source3/stf as a python subunit test
2011-05-18 16:12:08 +02:00
Matthieu Patou
6d48a6ddb3
s4-unittests: replace assertEquals(res, []) by assertEquals(len(res), 0)
2011-02-21 10:55:59 +03:00
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
4d058ca7c0
s4/tests: Implement a blackbox test for 'samba-tool drs' command
...
Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Wed Feb 9 11:45:30 CET 2011 on sn-devel-104
2011-02-09 11:45:30 +01: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