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

669 Commits

Author SHA1 Message Date
Andrew Bartlett
45125a459a selftest: add hooks required for printing to Samba4.pm 2012-05-02 01:00:13 +02:00
Andrew Bartlett
c65bc4aa92 selftest: mark samba3.raw.samba3checkfsp as flapping on plugin_s4_dc
This fails on my Fedora 16 workstation, but passes on sn-devel.

Andrew Bartlett
2012-05-02 01:00:13 +02:00
Andrew Bartlett
c350422bfe selftest: mark samba3.raw.acls.inheritance(plugin_s4_dc) as flapping
This seems to succeed on sn-devel, but fails in a local make test on
my workstation.

Andrew Bartlett
2012-05-02 01:00:13 +02:00
Andrew Bartlett
ecc0ac5103 selftest: add knownfail entries for plugin_s4_dc tests 2012-05-02 01:00:13 +02:00
Andrew Bartlett
7905f97494 selftest: change knownfail to cope with running plugin_s4_dc as well 2012-05-02 01:00:13 +02:00
Andrew Bartlett
c0db57e748 selftest: Use same pattern for path to share as Samba3.pm
This helps as we declare tests that were previously targetted at Samba3 only.

Andrew Bartlett
2012-05-02 01:00:12 +02:00
Andrew Bartlett
154518a719 selftest: Add hideunread share to plugin_s4_dc 2012-05-02 01:00:12 +02:00
Andrew Bartlett
99ce5626dc selftest: run plugin_s4_dc with 'acl_xattr xattr_tdb streams_depot' VFS modules 2012-05-02 01:00:12 +02:00
Andrew Bartlett
546318b879 selftest: prepare to run smbtorture tests against plugin_s4_dc 2012-05-02 01:00:12 +02:00
Andrew Bartlett
5baf11307f selftest: attempt to test samba3hide in a different environment
This should ensure that the samba3hide test is still run and passes,
in a non-ACLed environment.

Andrew Bartlett
2012-05-02 01:00:12 +02:00
Andrew Bartlett
5f0707801a selftest: Enable ACL testing against the s3dc environment
Previously, ACL tests were skipped and the correct modules for ACL
testing were not loaded.

The addition of a knownfail entry for raw.samba3* tests is due to an
inconsitancy between the behaviour with and without ACL modules loaded
- posix chown calls appear to be ignored in this mode.

Andrew Bartlett
2012-05-02 01:00:12 +02:00
Andrew Bartlett
0cb0427f13 selftest: Place the test environment at the end of the failure lines
This allows a knownfail entry to be added for only one environment, rather than
all environments.

Andrew Bartlett
2012-04-27 14:51:05 +02:00
Andrew Bartlett
67a851a050 selftest: Remove silly space before unit test name
When we have no description, there is no need for a leading space here

Andrew Bartlett
2012-04-27 14:51:05 +02:00
Michael Adam
e952191fcc selftest: remove printserver.enum_printers_servername from flapping
Signed-off-by: Andreas Schneider <asn@samba.org>

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed Apr 25 17:18:28 CEST 2012 on sn-devel-104
2012-04-25 17:18:28 +02:00
Michael Adam
dce2a28574 selftest: remove samba3.rpc.spoolss.*printserver.openprinter_badnamelist from flapping
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-25 15:42:29 +02:00
Michael Adam
ef8e228a5b selftest: mark the driver_info_winreg tests knownfail.
They only get executed when driver files are around.

Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-25 15:42:29 +02:00
Michael Adam
e43d025ae3 selftest: mark failing print_tests more specifically
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-25 15:42:24 +02:00
Michael Adam
9db52c4ee0 selftest: remove .*printer.*print_test_extended from flapping
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-25 15:41:53 +02:00
Michael Adam
1837b9008d selftest: remove the "rpc.spoolss.printer" test from flapping
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-25 14:31:12 +02:00
Andrew Bartlett
e346bba1fc s4-torture: enable raw.composite test again, and convert to new style test
This test has been skipped for some time, but is an important test for parallel operation.

Andrew Bartlett
2012-04-25 17:43:23 +10:00
Andrew Bartlett
538893d183 s3fs: Use xattr_tdb format for xattr storage
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Apr 18 05:39:01 CEST 2012 on sn-devel-104
2012-04-18 05:39:01 +02:00
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
Jelmer Vernooij
cd9cf47972 selftest.py: Finish conversion to python - now loads without syntax errors. 2012-03-04 18:02:07 +01:00
Jelmer Vernooij
11c7ce35c0 selftest.testlist: Add RestrictedTestManager.from_path. 2012-03-04 18:02:07 +01:00
Jelmer Vernooij
48155d189a selftest: More work on conversion to Python. 2012-03-04 18:02:07 +01:00
Jelmer Vernooij
d400619dee selftest.testlist: Add docstrings. 2012-03-04 18:02:07 +01:00
Jelmer Vernooij
a50def839c selftest.testlist: Add manager for restricted test lists. 2012-03-04 18:02:07 +01:00
Jelmer Vernooij
616139c01e Add TestListFilter definition. 2012-03-04 18:02:07 +01:00
Jelmer Vernooij
4802561d69 selftest.testlist: Add read_testlist. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
7a614ac710 selftest.testlist: Add read_test_regexes. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
8b583dc64c selftest: Add testlist management module. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
4d602fb05d selftest.target: Add Environment.get_vars. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
646f6b2697 selftest: Add tests for trying to reuse an environment that has gone down. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
7060d68015 selftest: Add tests for NoneEnvironment. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
aa7fa63bfa selftest.target: Test that environments are reused. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
75eb57cff5 selftest.target: Add tests for get_running_env. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
0d50c4cf3c selftest.target: Add tests for getlog_env. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
e7633d86c0 selftest.target: Add tests for check. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
c57ab7ba9d selftest.target: Add tests for setup. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
5f74fa3511 selftest: Add base classes for Target/Environment and their management. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
164d3f6641 selftest.socket_wrapper: interface is an integer. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
0cfb8e033c selftest.socket_wrapper: Add basic unit tests. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
adbd55ea55 selftest.socket_wrapper: Add docstrings. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
1d71ca98b7 Add test infrastructure for selftest. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
a6056e07e0 selftest: Add python version of socket wrapper utilities. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
fc7f49420b selftest: Add selftest.py. 2012-03-04 18:02:06 +01:00
Andrew Bartlett
48e9d7efce selftest: Rework Samba3.pm process termination
We now store the timelimit child PID in memory, and confirm that the child has exited
with both waitpid() and kill(0, $pid).

By calling Samba::cleanup_child() we get exit status information.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sun Mar  4 11:51:12 CET 2012 on sn-devel-104
2012-03-04 11:51:12 +01:00
Andrew Bartlett
a37990c5c1 selftest: Rework Samba4.pm process termination.
We now double-check the waitpid() result with kill(0, $pid)

We now also send a SIGTERM, then a SIGKILL.

Andrew Bartlett
2012-03-04 10:14:34 +01:00
Andrew Bartlett
e495118aab selftest: Fix waitpid termination test 2012-03-04 10:14:34 +01:00
Andrew Bartlett
d715e2c294 selftest: Use fork()/exec() rather than system()
This follows the Samba3.pm model for starting child processes is to
use fork()/exec().  This reduces the number of processes being created
by selftest.pl, and gives us more information about the child process
and the running state in the parent.

Andrew Bartlett
2012-03-04 10:14:34 +01:00
Jelmer Vernooij
4a8d55cd7d selftest: Remove unused vde functions.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Mar  4 07:54:51 CET 2012 on sn-devel-104
2012-03-04 07:54:51 +01:00