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

669 Commits

Author SHA1 Message Date
Matthieu Patou
49c99d0515 s4: add blackbox test for rename
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sat May 21 09:50:34 CEST 2011 on sn-devel-104
2011-05-21 09:50:34 +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
Andrew Bartlett
d13fb8ddd0 s4-selftest: gensec test is finished, don't skip 2011-05-18 16:12:07 +02:00
Andrew Bartlett
3dd76f2f56 selftest: Don't skip Samba3 tests in the top level build
The regular expressions here were not specific enough, they matched
the samba3. names from the source3/selftest/tests.py

Found by Andreas Schneider

Andrew Bartlett
2011-05-18 16:12:07 +02:00
Andreas Schneider
a2115b5626 waf: Enable Samba3 torture tests in top level build.
Signed-off-by: Günther Deschner <gd@samba.org>

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon May 16 13:57:01 CEST 2011 on sn-devel-104
2011-05-16 13:57:01 +02:00
Günther Deschner
74d82faa78 s4-smbtorture: add test_netremotetod.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon May 16 12:45:52 CEST 2011 on sn-devel-104
2011-05-16 12:45:52 +02:00
Andrew Bartlett
d957fd5ae7 selftest: Test both users created in plugin_s4_dc environment
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon May  9 06:10:52 CEST 2011 on sn-devel-104
2011-05-09 06:10:52 +02:00
Andrew Bartlett
5def7a1e5e s4-selftest Add tests for proxy_samba4_dc
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sun May  8 20:03:45 CEST 2011 on sn-devel-104
2011-05-08 20:03:45 +02:00
Stefan Metzmacher
e050677c7f Revert "s4:selftest: skip s3member tests for now"
This reverts commit c5034ac315.

This doesn't seem to help and isn't needed if the filesystem
has posix acl support.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Apr 29 08:23:01 CEST 2011 on sn-devel-104
2011-04-29 08:23:01 +02:00
Stefan Metzmacher
c5034ac315 s4:selftest: skip s3member tests for now
They are flakey, see
http://git.samba.org/autobuild.flakey/2011-04-28-1501/samba4.stdout
http://git.samba.org/autobuild.flakey/2011-04-28-1700/samba4.stdout

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Apr 28 18:42:06 CEST 2011 on sn-devel-104
2011-04-28 18:42:06 +02:00
Andrew Bartlett
fb5e1f4a65 selftest: s3member admember test to confirm s3/s4 interopability
This checks that Samba3 joins Samba4 correctly, and allows NTLM and
Kerberos logons from a live Samba4 DC.

This needs the common krb5.conf generation logic, and because we now
override KRB5_CONFIG we must update ktest to have a valid krb5.conf.

Based on an original patch by metze

Andrew Bartlett
2011-04-28 05:30:21 +02:00
Andrew Bartlett
5439553c96 selftest: Don't specify SELFTEST_TARGET as an env variable
It is much more reliable to specify it as a direct parameter, and this
is needed for the combined 'make test'.

Andrew Bartlett
2011-04-19 16:13:42 +10:00
Andrew Bartlett
790ceec78b s4-selftest Rename Samba4 'member' test environment to s4member
This will avoid a conflict with the s3 'member' environment.

Andrew Bartlett
2011-04-19 14:26:59 +10:00
Andrew Bartlett
8f58b13579 s4-selftest: Stop creating netbios aliases everywhere
This reduces some of the clutter when we have quite so many server
configurations starting.

The one case that actually needs an alias (dc environment for the
test_nmblookup.sh test) will still keep it.

Andrew Bartlett
2011-04-19 14:26:58 +10:00
Andrew Bartlett
d9e29c0250 selftest Remove selftest of the test subsystem
The intereactions between selftest.pl and the target are now too
complex to unit test like this any more.

Andrew Bartlett
2011-04-16 11:43:05 +02:00
Andrew Bartlett
47b7c6fccf selftest: Move Samba4 selftest wscript to the top level 2011-04-16 11:43:04 +02:00
Andrew Bartlett
48bb69ef00 selftest: Start using the binary mapping at the python layer as well 2011-04-16 11:43:04 +02:00
Andrew Bartlett
4fd6ebf544 selftest: Remove duplication between BUILDIR and BINDIR
Just have BINDIR, and have it default to ./bin

Andrew Bartlett
2011-04-16 11:43:04 +02:00
Günther Deschner
de5cec48a4 s4-smbtorture: add netsessiongetinfo() test.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Mar 18 02:11:38 CET 2011 on sn-devel-104
2011-03-18 02:11:38 +01:00
Günther Deschner
c8098246be waf-selftest: allow to call "make test SUBUNIT_FORMATTER=cat".
Guenther
2011-03-10 23:25:04 +01:00
Stefan Metzmacher
4b86beb98b s4:selftest: test using the machine account of the rodc against itself
This should test the non proxy rodc kdc path.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Mar  4 22:06:10 CET 2011 on sn-devel-104
2011-03-04 22:06:10 +01:00
Günther Deschner
bd675e0b15 s4-smbtorture: add netsessionenum rap torture test.
Guenther
2011-03-02 12:12:32 +01:00
Kamen Mazdrashki
ec5453427e s4/tests: Include 'replica_sync' test in S4 test suite 2011-02-27 00:23:21 +02:00
Andrew Bartlett
a056792294 selftest move selftesthelpers to a top level helper script 2011-02-22 16:20:09 +11:00
Matthieu Patou
b2e126cddc s4:selftest: add tests with seal and sign for backupkey
We need to specify sign and seal as the protocol operate really only on
sealed protected connections, in other case we are just checking that
the server returns something like unwilling to perform due to weak
security.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Feb 14 01:48:39 CET 2011 on sn-devel-104
2011-02-14 01:48:39 +01:00
Stefan Metzmacher
7f00aa9ef7 s4: Renable samba4.rpc.backupkey
This reverts commit 07fd397be7e30849f2c8452154edbee7dceccfe1.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-02-14 10:57:48 +11:00
Andrew Tridgell
14edbf7159 s4-build: need EXPAND_VARIABLES() for terminal in make test
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Feb 10 07:35:26 CET 2011 on sn-devel-104
2011-02-10 07:35:26 +01: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
Andrew Bartlett
ce461a7857 s4-selftest Fix valgrind and gdb options for top level build
Andrew Bartlett
2011-02-09 01:11:06 +01:00
Andrew Tridgell
ceb4b06c43 s4-test: fixed samba4.policy.python test for top level build
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:01 +11:00
Andrew Tridgell
be5a709341 s4-test: fixed hard coded test paths for top level build
this fixes the various test plans that hard coded incorrect paths for
a top level build

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:01 +11:00
Andrew Tridgell
6484da4859 s4-test: allow make test to work from top level directory
this fixes the path assumptions in Samba4 make test to allow it to
work from the top level directory.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:00 +11:00
Stefan Metzmacher
f464955534 s4:selftest: skip samba4.rpc.backupkey for now
metze
2011-02-05 12:16:46 +01:00
Jeremy Allison
e18b8c0730 Add knownfail for s4 for the new oplock test.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Jan 31 22:55:00 CET 2011 on sn-devel-104
2011-01-31 22:55:00 +01:00
Andreas Schneider
6cb2fb1c4a s4-selftest: Mark epmapper as knownfail. 2011-01-27 14:41:40 +01:00
Stefan Metzmacher
039dd96be2 s4:selftest: mark samba4.nbt.winsreplication.owned as knownfail
This sometimes fails on a busy server.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Jan 20 09:29:12 CET 2011 on sn-devel-104
2011-01-20 09:29:12 +01:00
Stefan Metzmacher
3f09dc3444 s4:selftest/skip: remove samba4.tokengroups.python
metze
2011-01-20 08:35:07 +01:00
Andrew Bartlett
df4752e3ab s4-selftest Remove knownfail for tokengroups test
The problem with this test (use of None rather than "" has been fixed)

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Jan 19 23:56:31 CET 2011 on sn-devel-104
2011-01-19 23:56:31 +01:00
Stefan Metzmacher
448388e609 s4:selftest/skip: add samba4.tokengroups.python
This fails randomly like this with an error (not a failure):

[651/695 in 27m37s] samba4.tokengroups.python(dc)
running client gensec_update
UNEXPECTED(error): samba4.tokengroups.python(dc).__main__.TokenTest.test_pac_groups
REASON: _StringException: _StringException: Content-Type: text/x-traceback;charset=utf8,language=python
traceback
1E2
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/testtools/runtest.py", line 128, in _run_user
    return fn(*args)
  File "/usr/lib/python2.6/dist-packages/testtools/testcase.py", line 368, in _run_test_method
    testMethod()
  File "/memdisk/tridge/flakey/b2413/source4/source4/dsdb/tests/python/token_group.py", line 142, in test_pac_groups
    (client_finished, client_to_server) = gensec_client.update(server_to_client)
TypeError: expected a string
0

FAILED (0 failures and 1 errors in 0 testsuites)

A summary with detailed information can be found in:
  ./st/summary
test: running (/usr/bin/perl /memdisk/tridge/flakey/b2413/source4/source4/../selftest/selftest.pl --prefix=./st --builddir=. --srcdir=. --exclude=./selftest/skip --testlist="/usr/bin/python ./selftest/tests.py|"  --exclude=./selftest/slow --socket-wrapper  && touch ./st/st_done) | /usr/bin/python -u ../selftest/filter-subunit --expected-failures=./selftest/knownfail --fail-immediately | tee ./st/subunit | /usr/bin/python -u ../selftest/format-subunit --prefix=./st --immediate
ERROR: test failed with exit code 1

metze
2011-01-19 19:37:03 +01:00
Andrew Bartlett
916cc7be85 s4-dsdb Add PAC validation test to tokengroups test.
This confirms that the groups obtained from a Kerberos PAC match those
that a manual search of a target LDAP server would reveal.

This should allow mixing of a KDC specified by krb5.conf to test Samba
or Windows alternatly.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Jan 19 13:13:48 CET 2011 on sn-devel-104
2011-01-19 13:13:48 +01:00
Andrew Bartlett
a1e1f02efe s4-gensec Extend python bindings for GENSEC and the associated test
This now tests a real GENSEC exchange, including wrap and unwrap,
using GSSAPI.  Therefore, it now needs to access a KDC.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Jan 18 11:41:26 CET 2011 on sn-devel-104
2011-01-18 11:41:26 +01:00
Andrew Tridgell
197f4b098b s4-test: added a tokengroups test
this tests that the remote tokenGroups match the internally calculated
ones

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-01-14 16:39:33 +11:00
Stefan Metzmacher
d0cbbee2dd s4:selftest: selftest.pl already sets TEST_DATA_PREFIX
metze
2010-12-27 15:37:56 +01:00
Jelmer Vernooij
6bc6c004fa selftest-s4: Support listing smbtorture4 tests.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Dec 11 19:32:07 CET 2010 on sn-devel-104
2010-12-11 19:32:07 +01:00
Stefan Metzmacher
21d02c0626 s4:selftest: use correct name for the test "ECHO-UDP" => "echo.udp"
I wonder how commit 35fbc7bbda
(s4-smbtorture: Make test names lowercase and dot-separated)
ever passed make test.

metze
2010-12-11 11:06:56 +01:00
Jelmer Vernooij
35fbc7bbda s4-smbtorture: Make test names lowercase and dot-separated.
This is consistent with the test names used by selftest, should
make the names less confusing and easier to integrate with other tools.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
2010-12-11 04:16:13 +01:00
Jelmer Vernooij
c565da0f71 selftest: Make sure system subunit.run has TestProgram. 2010-12-10 03:04:06 +01:00
Jelmer Vernooij
365cfb1c32 smbtorture: Rename --list to --list-suites, add stub --list. 2010-12-10 03:04:06 +01:00
Jelmer Vernooij
680a2fb517 s4-selftest: Add convenience function for running testsuites using
subunitrun.
2010-12-10 03:04:06 +01:00
Jelmer Vernooij
028ea57e55 selftest: Allow discovering tests in pure python testsuites. 2010-12-10 03:04:06 +01:00