1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

598 Commits

Author SHA1 Message Date
Andrew Bartlett
7cda954fbb file_server: Move vfs objects initialisation into file_server.c smb.conf wrapper 2012-04-03 14:35:02 +10:00
Jelmer Vernooij
95ebb111ba selftest.py: Add get_interface.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Mar 27 00:32:48 CEST 2012 on sn-devel-104
2012-03-27 00:32:48 +02:00
Jelmer Vernooij
ae9b5add1e selftest.py: Add cleanup_pid.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Mar 24 04:52:59 CET 2012 on sn-devel-104
2012-03-24 04:52:59 +01:00
Jelmer Vernooij
99b4d52633 selftest.py: Add write_krb5_conf. 2012-03-24 03:19:31 +01:00
Jelmer Vernooij
289632f85e selftest.py: Add mk_realms_stanza function. 2012-03-24 03:19:31 +01:00
Jelmer Vernooij
f18d9e147d selftest.py: Add selftest.target.samba with bindir_path function. 2012-03-24 03:19:31 +01:00
Michael Adam
79a1baec86 s4:selftest: make the use of writetimeupdatedelay consistent across all tests
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Mar 15 20:20:13 CET 2012 on sn-devel-104
2012-03-15 20:20:13 +01:00
Michael Adam
64627de35c s3:selftest: reactivate the writetimeupdatedelay speed-up
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-03-15 18:41:37 +01:00
Stefan Metzmacher
7e7aa330bf selftest/flapping: mark ^samba3.rpc.spoolss.*printserver.enum_printers_servername as flakey
I got this:

[370/1371 in 21m20s] samba3.rpc.spoolss.printserver (s3dc)
Testing servername behaviour in EnumPrinters and GetPrinters
Testing EnumPrinters(\\127.0.0.2) level 2
Testing OpenPrinterEx()
WARNING!: ../source4/torture/rpc/spoolss.c:5907: r.out.result was
WERR_INVALID_PARAM, expected WERR_OK: OpenPrinterEx failed
WARNING!: ../source4/torture/rpc/spoolss.c:6417: Expression
`call_OpenPrinterEx(tctx, p, short_name, ((void *)0), &handle)' failed: failed
to open printer
UNEXPECTED(failure): samba3.rpc.spoolss.printserver
.printserver.enum_printers_servername
REASON: _StringException: _StringException:
../source4/torture/rpc/spoolss.c:6499: Expression
`test_OnePrinter_servername(tctx, p, b, servername, info[i].info2.printername)'
failed: failed to check printer

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Mar 14 23:02:46 CET 2012 on sn-devel-104
2012-03-14 23:02:46 +01:00
Stefan Metzmacher
003162c76e selftest/flapping: mark ^samba3.rpc.spoolss.*printserver.openprinter_badnamelist as flakey
I saw this a few times today:

[370/528 in 19m28s] samba3.rpc.spoolss.printserver (s3dc)
Using seed 1331739572
Testing OpenPrinter(\\127.0.0.2)
Testing GetPrinterData(Architecture)
Testing OpenPrinter(__INVALID_PRINTER__) with bad name
Testing OpenPrinterEx(__INVALID_PRINTER__) with bad name
Testing OpenPrinter(\\__INVALID_HOST__) with bad name
Testing OpenPrinterEx(\\__INVALID_HOST__) with bad name
Testing OpenPrinter() with bad name
Testing OpenPrinterEx() with bad name
Testing OpenPrinter(\\\) with bad name
Testing OpenPrinterEx(\\\) with bad name
Testing OpenPrinter(\\\__INVALID_PRINTER__) with bad name
Testing OpenPrinterEx(\\\__INVALID_PRINTER__) with bad name
Testing OpenPrinter(\\127.0.0.2\) with bad name
WARNING!: ../source4/torture/rpc/spoolss.c:5765: op.out.result was WERR_OK,
expected WERR_INVALID_PRINTER_NAME: unexpected result
UNEXPECTED(failure): samba3.rpc.spoolss.printserver
.printserver.openprinter_badnamelist
REASON: _StringException: _StringException:
../source4/torture/rpc/spoolss.c:5821: Expression
`test_OpenPrinter_badname(tctx, b, badname)' failed:

metze
2012-03-14 21:20:26 +01:00
Stefan Metzmacher
a986f3fe82 selftest/flapping: mark samba4.blackbox.gentest as flakey
https://git.samba.org/autobuild.flakey/2012-03-14-1307/samba4.stdout

    [1228/1371 in 1h19s] samba4.blackbox.gentest(dc)
    UNEXPECTED(failure): samba4.blackbox.gentest(dc).gentest
    REASON: _StringException: _StringException: seed=1
    Connecting to \localdcest1 as Administrator - instance 0
    Connecting to \localdcest1est1 as Administrator - instance 1
    Connecting to \localdcest1est2 as Administrator - instance 0
    Connecting to \localdcest1est2 as Administrator - instance 1
    0
    OPEN num_open_handles=1 h=0 (gentestoo4)
    Notify count inconsistent 1 0
    Failed at operation 88 - MKDIR
    gentest failed

I saw this more than 10 times in the last year already.

metze
2012-03-14 21:20:26 +01:00
Stefan Metzmacher
e25f830f1d selftest: samba3.smbtorture_s3.LOCAL-TALLOC-DICT works now
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Mar 13 10:38:20 CET 2012 on sn-devel-104
2012-03-13 10:38:20 +01:00
Jelmer Vernooij
8af7dadca2 selftest.run: Use subunit version of iso8601.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Mar 12 01:36:25 CET 2012 on sn-devel-104
2012-03-12 01:36:25 +01:00
Jelmer Vernooij
ed32df61f8 selftest.py: Remove some unnecessary checks. 2012-03-11 23:57:04 +01:00
Jelmer Vernooij
6f9c333f95 selftest.py: Move some infrastructure for running commands to selftest.run, with tests. 2012-03-11 23:57:04 +01:00
Kai Blin
f9f1d98e74 s3 selftest: Allow DNS updates during testing 2012-03-11 00:31:37 +01:00
Stefan Metzmacher
b42825fdae selftest: mark samba3.smb2.session tests as knownfail instead of skip
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Mar  9 02:34:38 CET 2012 on sn-devel-104
2012-03-09 02:34:38 +01:00
Andrew Bartlett
54d36099ec s3-rpc_server: Do not register embedded ncacn_np endpoints by default
The end point mapper is primarily in support of lsasd, and the key
SAMR, LSA and NETLOGON services being accessed over TCP/IP.  The end
point mapper does not appear to be used for the well-known mappings to
named pipes, and we have a problem with how to safely register the
embedded pipes.  For now, disable this to avoid re-registration storms
in production, until we sort out a better way.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Mar  7 14:27:38 CET 2012 on sn-devel-104
2012-03-07 14:27:38 +01:00
Andrew Bartlett
8466b3c85e s3-rpc_server: Do not setup ncalrpc pipes and TCP for embedded rpc servers
Embedded RPC services are those not launched in the preforked lsasd
and spoolssd children.

The reason that these child processes were created is that is is not
possible to correctly listen for ncalrpc and TCP connections without
creating a child process.  Therefore, we should not have these
embedded RPC services to listen on these sockets just because the
endpoint mapper has been enabled.

Andrew Bartlett
2012-03-07 12:46:13 +01:00
Andrew Bartlett
716a6c314c selftest: Only run s3dc with a forked lsasd
This ensures that we run ktest, member and s3member in the default
configuration, to try and cover both code paths.

(This does not change the tests being run, but at least the
initialisation code will be checked, plus whatever the rpcclient test
can cover).

Andrew Bartlett
2012-03-07 12:46:13 +01:00
Stefan Metzmacher
0eaf91ffb8 selftest: mark samba4.smb2.getinfo.getinfo as knownfail
Samba4 seems to have problems with streams on directories.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Mar  7 12:44:10 CET 2012 on sn-devel-104
2012-03-07 12:44:10 +01:00
Gregor Beck
3a751958b3 selftest: skip samba3.smb2.scan because they are no tests
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:07 +01:00
Gregor Beck
25ba1c7bc6 selftest: remove samba3.smb2.*scan from knownfail
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:07 +01:00
Gregor Beck
cbe918d106 selftest: skip samba3.smb2.session because it hangs
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:07 +01:00
Gregor Beck
c14dacbebe selftest: skip samba3.smb2.hold-oplock because its not a test
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Gregor Beck
632b1042ae selftest: mark samba3.smb2.ioctl tests knownfail
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Stefan Metzmacher
f0392e1b04 selftest: mark samba3.smb2.durable-v2-open tests as knownfail
metze
2012-03-06 23:53:06 +01:00
Gregor Beck
6fb34b951e selftest: mark samba3.smb2.durable-open.oplock test knownfail
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Gregor Beck
3c826d4411 selftest: mark samba3.smb2.durable-open reopen tests knownfail
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Gregor Beck
a3994f673b selftest: samba3.smb2.compound.invalid2 works
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Gregor Beck
7dc26c2799 selftest: mark smb2 tests knownfail failing in 3.6
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Jelmer Vernooij
b9ac1f45a1 selftest.py: Only run teardown_all when actually relevant. 2012-03-06 00:48:14 +01:00
Andrew Bartlett
fc5762388a selftest: run smbtorture_s3 tests against the ntvfs file server
This checks not only the behaviour of the NTVFS file server, but also the
client library and authentication stack.

Andrew Bartlett
2012-03-05 08:15:05 +01:00
Andrew Bartlett
4c926a708d selftest: Reduce time in cleanup loop, try waitpid on all 3 children 2012-03-05 08:15:05 +01:00
Andrew Bartlett
0582d03efe selftest: forward rpcecho to Samba4 in plugin_s4_dc 2012-03-05 08:15:05 +01:00
Jelmer Vernooij
53a147d1c0 selftest.run: Factor out read_testlist_file and open_file_or_pipe.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Mar  5 05:42:19 CET 2012 on sn-devel-104
2012-03-05 05:42:19 +01:00
Jelmer Vernooij
f26b40a925 selftest.run: Factor out exported_envvars_str. 2012-03-05 03:49:50 +01:00
Jelmer Vernooij
a6a8456646 selfclient.client: Factor out write_clientconf. 2012-03-05 03:45:57 +01:00
Jelmer Vernooij
f3f6b8eafa selftest.run: Factor out expand_command_run. 2012-03-05 03:39:57 +01:00
Jelmer Vernooij
d6924f8039 selftest.run: Factor out expand_command_list. 2012-03-05 03:27:40 +01:00
Jelmer Vernooij
1741e6486d selftest: Factor out expand_environment_strings. 2012-03-05 03:20:13 +01:00
Jelmer Vernooij
c9d380702c selftest.py: Use testtools TestCase class.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Mar  4 19:38:25 CET 2012 on sn-devel-104
2012-03-04 19:38:25 +01:00
Jelmer Vernooij
82af4a79b9 selftest.py: Add dummy init file (required to run tests). 2012-03-04 18:02:07 +01:00
Jelmer Vernooij
e7d6d67bee selftest.pl: Remove unused --verbose option. 2012-03-04 18:02:07 +01:00
Jelmer Vernooij
01ba5cf689 selftest.py: Remove unused --verbose option. 2012-03-04 18:02:07 +01:00
Jelmer Vernooij
8ae7615cf3 selftest.py: Remove unused code, reconcile signal handlers. 2012-03-04 18:02:07 +01:00
Jelmer Vernooij
b5d9cd1740 selftest.py: Fix handling of boolean options. 2012-03-04 18:02:07 +01:00
Jelmer Vernooij
aaa7cf67ab selftest.py: Fix signal handling. 2012-03-04 18:02:07 +01:00
Jelmer Vernooij
7e5d98c22c selftest: Now runs again for tests that use environment 'none'. 2012-03-04 18:02:07 +01:00
Jelmer Vernooij
3a6e4cf2b1 selftest.target: Add NoneTarget. 2012-03-04 18:02:07 +01:00