1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

282 Commits

Author SHA1 Message Date
Günther Deschner
55ae3d1729 testprogs: also print printer info during GetPrinter spoolss test.
Guenther
2010-01-31 20:41:17 +01:00
Günther Deschner
818fb00381 testprogs: print all driver info levels in spoolss testsuite.
Guenther
2010-01-25 11:20:06 +01:00
Günther Deschner
f2999157f9 testprogs: add tests for GetPrinterData{Ex} and EnumPrinterDataEx.
Guenther
2010-01-18 13:41:02 +01:00
Günther Deschner
ecd35d7ea6 testprogs: add tests for GetForm.
Guenther
2010-01-18 13:41:02 +01:00
Günther Deschner
ca646a82f8 testprogs: pass down LPPRINTER_DEFAULTS in spoolss test.
Guenther
2010-01-18 13:41:02 +01:00
Günther Deschner
0ae4cc839d testprogs: remove unused test_EachDriver from spoolss test.
Guenther
2010-01-12 12:12:05 +01:00
Günther Deschner
3c1b51795d testprogs: add EnumPrinterKey test to spoolss test.
Guenther
2010-01-12 12:12:05 +01:00
Günther Deschner
403dc10e8f testprogs: fix driver levels in spoolss test.
Guenther
2010-01-11 12:43:07 +01:00
Günther Deschner
9a1b298e3d testprogs: test each printer, do not abort after first failure.
Guenther
2010-01-11 12:43:07 +01:00
Günther Deschner
3e7b7bfd27 testprogs: fix EnumPrintProcessorDatatypes spoolss test.
Guenther
2010-01-11 12:43:07 +01:00
Günther Deschner
4aefb33b9f testprogs: add more error codes to spoolss test.
Guenther
2010-01-11 12:43:07 +01:00
Günther Deschner
339afda877 testprogs: add support for "print" option in win32 spoolss torture test.
Guenther
2010-01-08 01:04:19 +01:00
Günther Deschner
9185fd0a93 testprogs: pass down architecture in spoolss test.
Guenther
2010-01-08 01:03:34 +01:00
Günther Deschner
487a03a158 testprogs: add win32 spoolss testsuite.
Guenther
2010-01-08 01:03:34 +01:00
Stefan Metzmacher
1525e59886 blackbox/test_export_keytab.sh: correctly remove temporary files
metze
2010-01-04 09:36:25 +01:00
Stefan Metzmacher
5df8b33ddc blackbox/test_export_keytab.sh: use VALGRIND for samba4kinit
metze
2010-01-04 09:36:25 +01:00
Andrew Tridgell
9d6411d9dd s4-testpasswords: fixed CONFIG and quoting
Need to pass correct config file to tests
2009-12-31 17:33:34 +11:00
Jelmer Vernooij
9e5ef916d4 net: Move 'newuser' to 'net newuser'
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:27 +11:00
Jelmer Vernooij
73594c248f net: Fix tests and documentation of setexpiry.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:25 +11:00
Jelmer Vernooij
b531696a5b net: Move 'setpassword' to 'net setpassword'.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:22 +11:00
Jelmer Vernooij
797977ac53 blackbox.passwords: Use convenience variable for net.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:19 +11:00
Jelmer Vernooij
18d221342b Fix commands in password tests.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:18 +11:00
Matthias Dieter Wallnöfer
0af3b06824 Revert "blackbox:test_kinit - Remove the "-H" (hive) parameter"
This reverts commit d4389a230b.

This revert changed the behaviour which I didn't expect. Thanks abartlet to
point this out!
2009-09-21 11:33:13 +02:00
Matthias Dieter Wallnöfer
d4389a230b blackbox:test_kinit - Remove the "-H" (hive) parameter
The "enableaccount" script works only on local LDB anymore - therefore remove
this parameter.
2009-09-20 23:07:22 +02:00
Stefan Metzmacher
c5d38fd45a blackbox/test_ldb.sh: test searching using OIDs instead of names for attributes and classes
metze
2009-09-20 06:44:19 +02:00
Andrew Kroeger
e3a2a22451 s4:pwsettings: Added blackbox tests.
The added tests include basic validation that the script runs and accepts all
custom arguments.  The tests also verify changes to the password complexity,
minimum password length, and minimum password length settings.
2009-09-10 01:09:56 +02:00
Andrew Kroeger
67a8a8c9e6 testprogs:subunit.sh: Add function for expected failures.
The testit_expect_failure() function is like the testit() function, with
reversed error detection logic.  This reversal only affects the pass/fail logic
and logging - the original return code from the command is still returned to the
calling script.
2009-09-10 01:09:56 +02:00
Andrew Bartlett
8ff1f50b0c s4:kerberos Add support for user principal names in certificates
This extends the PKINIT code in Heimdal to ask the HDB layer if the
User Principal Name name in the certificate is an alias (perhaps just
by case change) of the name given in the AS-REQ.  (This was a TODO in
the Heimdal KDC)

The testsuite is extended to test this behaviour, and the other PKINIT
certficate (using the standard method to specify a principal name in a
certificate) is updated to use a Administrator (not administrator).
(This fixes the kinit test).

Andrew Bartlett
2009-07-28 14:10:47 +10:00
Andrew Bartlett
cdd7a5208f s4:kerberos Add test to show that we actually export the keytab
While it is hard to prove it is correct, at least the new
'nettestuser' principal and the Administrator principal are correct.

We had to fix the case of 'Administrator' in the selftest code to
match the DB, as the keytab lookup is case sensitive.

Andrew Bartlett
2009-07-27 22:41:43 +10:00
Andrew Bartlett
89a074b784 s4:heimdal Allow KRB5_NT_ENTERPRISE names in all DB lookups
The previous code only allowed an KRB5_NT_ENTERPRISE name (an e-mail
list user principal name) in an AS-REQ.  Evidence from the wild
(Win2k8 reportadely) indicates that this is instead valid for all
types of requests.

While this is now handled in heimdal/kdc/misc.c, a flag is now defined
in Heimdal's hdb so that we can take over this handling in future (once we start
using a system Heimdal, and if we find out there is more to be done
here).

Andrew Bartlett
2009-06-30 12:11:14 +10:00
Andrew Bartlett
1e6fb7d730 s4: Add tests and 'must change password' flags in setpassword and newuser
In particular, ensure that we can acutally change the password under
these circumstances.

Andrew Bartlett
2009-06-18 13:49:30 +10:00
Andrew Bartlett
033e25fdce s4:testprogs Don't specify a username/password when checking the ccache
The purpose of this test is to ensure that the Kerberos credentials
cache is valid.  If the username and password is specified, this
overrides the very thing we are trying to test.

Andrew Bartlett
2009-06-18 13:49:30 +10:00
Stefan Metzmacher
d52e813117 s4:blackbox/test_ldb: make use of the $VALGRIND envvar
metze
2009-03-04 08:32:32 +01:00
Stefan Metzmacher
3ce895181b testprogs/win32: add an option to trigger small reads in npecho_client2.c
metze
2009-02-09 13:32:11 +01:00
Stefan Metzmacher
1bf51ea262 testprogs/win32: make it possible to run in byte or message mode in npecho_server2
metze
2009-02-09 12:09:01 +01:00
Stefan Metzmacher
5438d7dad8 testprogs/win32: add npecho_*2.c
This exlores some details of message type named pipes.

metze
2009-02-09 11:57:13 +01:00
Stefan Metzmacher
8b408f7819 s4:selftest: avoid hardcoded pathes in blackbox tests
metze
2009-02-03 16:31:04 +01:00
Stefan Metzmacher
bb45bf6347 s4:blackbox: don't remove newlines in the subunit failure output
metze
2009-01-08 15:59:09 +01:00
Andrew Bartlett
fc7e41d6ff s4:testprogs: improve extended dn testing of the ldb blackbox tests
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-12-17 12:29:30 +11:00
Andrew Bartlett
22eb64f056 Actually test the kpasswd server
This uses kpasswd operated as a blackbox, assisted by the newly
imported rkpty tool.

Andrew Bartlett
2008-10-20 20:07:09 +11:00
Stefan Metzmacher
1cf404fcb5 testprogs/win32/midltests: add missing Makefile
metze
2008-10-16 10:29:07 +02:00
Stefan Metzmacher
bb4e9d72dd s4:blackbox/test_ldb: test search by <GUID=...> and <SID=...>
metze
2008-10-06 09:07:37 +02:00
Andrew Tridgell
e13270d7ac fixed the ldb blackbox test to work with non-bourne shells (as needed
by ubuntu)

fixed spelling of 'wellknown'
2008-10-03 17:08:39 -07:00
Stefan Metzmacher
a25fac13eb s4:blackblox/test_ldb: test searches via wellknownObjects
metze
2008-10-02 18:56:09 +02:00
Jelmer Vernooij
8fd66feb88 Remove remaining obsolete EJS tests. 2008-09-21 05:43:39 +02:00
Jelmer Vernooij
163292f325 Merge branch 'master' of ssh://git.samba.org/data/git/samba into noejs 2008-09-19 16:26:00 +02:00
Jelmer Vernooij
62b5f1886d Make sure modify operations succeed. 2008-09-19 10:56:35 +02:00
Jelmer Vernooij
729ffbae08 Merge branch 'master' of ssh://git.samba.org/data/git/samba into noejs
Conflicts:
	source4/main.mk
2008-09-18 20:29:05 +02:00
Jelmer Vernooij
d7a0c26af4 Move torture/ blackbox tests closer to code they're testing. 2008-09-16 18:30:24 +02:00
Jelmer Vernooij
aa09d8a75f Move ndrdump tests closer to the code they test. 2008-09-16 18:16:49 +02:00