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

832 Commits

Author SHA1 Message Date
Jelmer Vernooij
a7b8d0260a source3.selftest: Move last variables to selftesthelpers.
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Sat Oct 27 19:08:42 CEST 2012 on sn-devel-104
2012-10-27 19:08:41 +02:00
Jelmer Vernooij
66980989e5 source3.selftest: Move more variables to be in common. 2012-10-27 07:01:10 -08:00
Jelmer Vernooij
1326992358 selftesthelpers: Fix detection of tap2subunit.
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Sat Oct 27 16:57:49 CEST 2012 on sn-devel-104
2012-10-27 16:57:49 +02:00
Jelmer Vernooij
67dd28f360 selftest: Add --random-order option. 2012-10-27 05:16:19 -08:00
Jelmer Vernooij
05dc5a39a6 selftesthelpers: Simplify detection of tap2subunit. 2012-10-27 05:16:19 -08:00
Jelmer Vernooij
58345820c0 selftesthelpers: Add function for printing smbtorture4 version. 2012-10-27 05:16:18 -08:00
Jelmer Vernooij
8237e2727d selftest: Move determining of smbtorture4 options to selftesthelpers. 2012-10-27 05:16:18 -08:00
Jelmer Vernooij
fcb7926ce5 selftest/selftesthelpers: Share environment handling for extra smbtorture options. 2012-10-27 05:16:18 -08:00
Jelmer Vernooij
6bcb25673b selftest/selftesthelpers.py: Share configuration variable, strip whitespace. 2012-10-27 05:16:18 -08:00
Jelmer Vernooij
4c4d3c86f0 selftesthelpers: Share code for listing smbtorture4 tests. 2012-10-27 05:16:18 -08:00
Jelmer Vernooij
d2f8fe855d tests: Convert find_missing_doc into a unit test. 2012-10-19 09:10:13 +02:00
Stefan Metzmacher
1861213d14 selftest/knownfail: add samba3.rpc.lsa.privileges.lsa.Privileges
This failed more than 20 times in the last few weeks, e.g.
https://git.samba.org/autobuild.flakey/2012-10-16-0629/samba3.stdout
https://git.samba.org/autobuild.flakey/2012-10-16-0829/samba3.stdout

	[530/717 in 14m32s] samba3.rpc.lsa.privileges(s3dc)
	Using seed 1350368974

	Testing OpenPolicy

	Testing OpenPolicy2

	Testing CreateAccount

	Testing Delete

	Testing DeleteObject

	Testing EnumAccounts

	Testing LookupSids

	Testing LookupNames with 7 names
	LookupName of sharesec_user was unmapped
	LookupName of Everyone failed to return a result
	UNEXPECTED(failure): samba3.rpc.lsa.privileges.lsa.Privileges(s3dc)
	REASON: _StringException: _StringException: ../source4/torture/rpc/lsa.c:319: r.out.result was STATUS_SOME_UNMAPPED, expected NT_STATUS_OK: LookupNames failed

	FAILED (1 failures, 0 errors and 0 unexpected successes in 0 testsuites)

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Oct 16 10:43:02 CEST 2012 on sn-devel-104
2012-10-16 10:43:02 +02:00
Jelmer Vernooij
ff82afb1f8 selftest: Move more tests to common list script.
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Fri Oct 12 02:06:42 CEST 2012 on sn-devel-104
2012-10-12 02:06:41 +02:00
Jelmer Vernooij
1aa291c331 selftest: Move some tests to common test script. 2012-10-11 18:50:40 +02:00
Jelmer Vernooij
1080b6c2ca selftests.tests: Remove reference to Samba 4. 2012-10-11 18:50:40 +02:00
Jeremy Allison
78594909b8 Ensure the masks don't conflict with the ACL checks.
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Oct  5 00:36:40 CEST 2012 on sn-devel-104
2012-10-05 00:36:40 +02:00
Andrew Bartlett
0e037bfc60 selftest: Always build a linux-style nss_winbind for nss_wrapper 2012-10-03 14:25:57 +02:00
Andrew Bartlett
7d0a9f5a06 selftest: use an array when starting testenv with system()
By reduing the need for escapes and forcing the use of bash, this
seems to allow 'make testenv' to start on FreeBSD

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sun Sep 30 02:30:40 CEST 2012 on sn-devel-104
2012-09-30 02:30:39 +02:00
Jelmer Vernooij
b7822a55c4 samba4-tests: Move 'samba.tests.source' up.
We would like to run this as early as possible so we get a quick
failure when there is trailing whitespace.

Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Thu Sep 27 20:26:27 CEST 2012 on sn-devel-104
2012-09-27 20:26:27 +02:00
Stefan Metzmacher
98d117a542 selftest/knownfail: samba*.smb2.oplock.stream1 doesn't work
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Sep 26 07:57:12 CEST 2012 on sn-devel-104
2012-09-26 07:57:12 +02:00
Andrew Bartlett
3c4d0ce469 samba_dnsupdate: Safely update/create names for Samba3 targets as well
This avoids unlocked writes to the dns_hosts_file, and may fix some of our
issues on the build farm where large numbers of tests fail due to failed name resolution.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Sep 26 05:48:25 CEST 2012 on sn-devel-104
2012-09-26 05:48:25 +02:00
Andrew Bartlett
b320e7f93b selftest: Remove invalid security=share and rename secshare to simpleserver
This avoids the loadparm code failing due to the invalid smb.conf entry, and removes
the very last hint of security=share!

Andrew Bartlett
2012-09-26 04:08:26 +02:00
Jeremy Allison
322654d792 We now pass "samba3.raw.acls.generic" and "samba3.smb2.acls.GENERIC" with the max access change.
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Sep 25 04:57:44 CEST 2012 on sn-devel-104
2012-09-25 04:57:44 +02:00
Michael Adam
162fbf4adb selftest: skip the samba4.smb2.compound testsuite
Too many tests are starting but never finish.

Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Sat Sep 22 20:50:06 CEST 2012 on sn-devel-104
2012-09-22 20:50:06 +02:00
Michael Adam
841934647b selftest: we fail samba3.smb2.compound.interim2
We currently return NT_STATUS_CANCELLED where we should
return NT_STATUS_INTERNAL_ERROR.
2012-09-22 10:19:02 +02:00
Michael Adam
f43498b759 selftest: we currently fail smb2.durable-v2-open.app-instance
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Sep 19 23:05:43 CEST 2012 on sn-devel-104
2012-09-19 23:05:43 +02:00
Stefan Metzmacher
a11e45f1c5 selftest: let provision_plugin_s4_dc use SMB3
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Sep 12 18:30:48 CEST 2012 on sn-devel-104
2012-09-12 18:30:48 +02:00
Stefan Metzmacher
1b848ecbff lib/param: change the default for 'allow dns updates' to 'secure only'
metze
2012-09-12 16:51:29 +02:00
Stefan Metzmacher
1e00c0dcec selftest:Samba4: don't provision with BIND9_DLZ
metze
2012-09-12 16:51:29 +02:00
Kai Blin
76801b502d s4 dns: Run python tests in fl2003dc env 2012-09-12 16:51:29 +02:00
Michael Adam
69c2e18865 selftest: we fail the smb2.durable-open.delete_on_close2 test
(we currently do not grant durable on reconnect when delete-on-close is set)

Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Tue Sep 11 16:22:20 CEST 2012 on sn-devel-104
2012-09-11 16:22:19 +02:00
Michael Adam
675871f7a7 selftest: pass smb2.durable-open.delete_on_close1 2012-09-11 14:29:54 +02:00
Michael Adam
f244b29949 selftest: smb2.durable-open.delete_on_close1 is not flapping any more
The entry into flapping was not effective anyways since, the test
was also listed in knownfail...
2012-09-11 14:29:54 +02:00
Stefan Metzmacher
5b4a7aea17 selftest/Samba4: make use of samba-tool domain provision
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Sep 11 10:15:23 CEST 2012 on sn-devel-104
2012-09-11 10:15:23 +02:00
Jeremy Allison
6a1fa3e0a7 samba3.smb2.durable-open.delete_on_close1 is now flapping (sometimes passes).
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Sep 11 02:30:55 CEST 2012 on sn-devel-104
2012-09-11 02:30:53 +02:00
Stefan Metzmacher
7a51c5e469 selftest/knownfail: we pass some samba3.smb2.durable-* tests now
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Sep  8 23:18:39 CEST 2012 on sn-devel-104
2012-09-08 23:18:39 +02:00
Stefan Metzmacher
3fef8e207c selftest/Samba3: don't explicitly set 'server max protocol'
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Sep  8 05:15:00 CEST 2012 on sn-devel-104
2012-09-08 05:15:00 +02:00
Stefan Metzmacher
51a3845190 selftest/knownfail: samba3.smb2.durable-open.alloc-size fails currently
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Sep  7 10:47:29 CEST 2012 on sn-devel-104
2012-09-07 10:47:29 +02:00
Stefan Metzmacher
54ae7ca417 selftest/knownfail: samba3.smb2.durable-v2-open.reopen{1,2} fails currently
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Sep  7 02:12:22 CEST 2012 on sn-devel-104
2012-09-07 02:12:22 +02:00
Andrew Bartlett
9983ad7a80 s3-passdb: Rename pdb_samba4 to samba_dsdb and autoconfigure when we are a AD DC
The name samba_dsdb is not ideal, but it matches the primary ldb
module we use, and more importantly it avoids having '4' in the name.
We should slowly avoid using the term samba4 in long-term places like
the smb.conf because it is confusing to users given we are shipping
Samba 4.0 as an AD DC as well as all the other supported roles (domain
member/standalone server/classic DC)

Additionally, samba4 will be an odd name when we eventually release
Samba 5.0!

samba4 remains accepted as an alias to ensure existing smb.conf files
load, but to allow changes here in the future, we set the value during
the smb.conf load, and not during the provision when we are an AD DC.

This simplifies the default smb.conf for the vast majority of our
users and reduces the number of things listed in smb.conf files that
we later have to work around if we wish to change the
name/implementation of the passdb glue module again.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Sep  4 04:45:16 CEST 2012 on sn-devel-104
2012-09-04 04:45:16 +02:00
Jeremy Allison
5e0365dfe8 Now SEC_RIGHTS_PRIV_RESTORE and SEC_RIGHTS_PRIV_BACKUP don't include any generic bits (they're used directly in the fileserver where the generic bits have already been mapped into file specific bits) we need to add the generic bits to the test when we have these privileges.
Mark samba4.base.maximum_allowed knownfail until we implement NTCREATEX_OPTIONS_BACKUP_INTENT.
2012-08-31 20:32:37 -07:00
Jeremy Allison
64e57a1770 Add a comment showing where to set log level in tests. 2012-08-31 20:29:13 -07:00
Jeremy Allison
4ff446636a The NTVFS server doesn't pass the SMB1 INHERITFLAGS test.
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Aug 30 21:38:02 CEST 2012 on sn-devel-104
2012-08-30 21:38:02 +02:00
Jeremy Allison
da670e4830 With the inheritance ACL changes we now pass samba3.smb2.acls.INHERITFLAGS. 2012-08-30 10:08:50 -07:00
Andreas Schneider
461209255d selftest: Remove spoolss tests from knownfail.
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Aug 30 17:17:55 CEST 2012 on sn-devel-104
2012-08-30 17:17:55 +02:00
Andreas Schneider
20cfa38b9d selftest: Add missing printing options for plugin_s4_dc. 2012-08-30 15:42:58 +02:00
Andreas Schneider
bf36462555 selftest: Define the log directory for s3fs. 2012-08-30 15:42:58 +02:00
Andrew Bartlett
3a303ae5ab selftest: Add a test for smbclient --machine-pass without secrets.tdb
Errors in handling the upgrade case without a matching secrets.tdb caused segfaults
in the server.  This essentially tests both sides.

Andrew Bartlett
2012-08-29 09:10:40 +10:00
Andrew Bartlett
1a8fd711d7 selftest: Add test of smbclient --machine-pass against and using both s3 and s4
This uses both smbclient binaries to ensure that both work in both environments.

Andrew Bartlett
2012-08-28 07:57:29 +10:00
Volker Lendecke
f118eae76d s4-torture: Test for #9058
Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Aug 27 17:43:09 CEST 2012 on sn-devel-104
2012-08-27 17:43:08 +02:00
Andrew Bartlett
e14bf399cf s4-selftest: Always set vfs objects in selftest smb.conf
This sets it for all enviornments, as it is harmless if ntvfs is used
and critical if the provision script runs in s3fs mode.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Aug 23 16:42:41 CEST 2012 on sn-devel-104
2012-08-23 16:42:41 +02:00
Andrew Bartlett
a778662da8 s4-provision: set POSIX ACLs to for use with the smbd file server (s3fs)
This handles the fact that smbd will rarely override the POSIX ACL enforced by
the kernel.  This has caused issues with the creation of group policies by
other members of the Domain Admins group.

Andrew Bartlett
2012-08-23 15:02:26 +02:00
Andrew Bartlett
8518dd6406 file_server: Move default VFS module settings to loadparm.c
This means that any utility that calls into the VFS layer will get the
right modules.

Because we use the fake_acls backend we need to override this whole
list in Samba4.pm however.

Andrew Bartlett
2012-08-23 15:02:26 +02:00
Andrew Bartlett
ccac50c7c4 selftest: Set --use-ntvfs for rodc, vampire_dc, promoted_vampire_dc and subdom_dc 2012-08-23 15:02:25 +02:00
Andrew Bartlett
8c7f4f05f2 selftest: Specify --use-ntvfs for the chdcpass environment 2012-08-23 15:02:25 +02:00
Andrew Bartlett
9170f9ce95 selftest: Specify --use-ntvfs to provision in test scripts
Because these run as non-root, we need to avoid doing things that will
fail during the provision.  The main test of the s3fs provision is the
plugin_s4_dc environment with a smb.conf that specifies vfs_fake_acls.

Andrew Bartlett
2012-08-22 01:31:57 +02:00
Andrew Bartlett
ebb776f51f selftest: Add tests for vfs_aio_fork
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Aug 21 13:12:33 CEST 2012 on sn-devel-104
2012-08-21 13:12:33 +02:00
Andrew Bartlett
74a4c40d4f selftest: Use new fake_acls module
This isolates us from the OS ACL library, and allows chown to 'work'
when we are non-root.  In turn, this ensures that we can test the SMB
-> POSIX layer even when the OS would refuse the set due to non-root
or simply not having acls enabled on this particular file system.

This should make a number of build farm tests much more reliable, and
allows a number more tests to pass.

Andrew Bartlett
2012-08-20 21:58:08 +10:00
Michael Adam
4f4bb1f20d s4:torture:basic: add more delete test - variants of deltest16 and deltest17
There seems to be a difference if the initial delete_on_close flag
was set on a handle that created the file or if the handle if was
for a file that already existed.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

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

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Aug 17 21:44:24 CEST 2012 on sn-devel-104
2012-08-17 21:44:24 +02:00
Stefan Metzmacher
1b487ad3d7 s3:selftest: add some tests against a share the requires encryption
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Aug 17 16:34:26 CEST 2012 on sn-devel-104
2012-08-17 16:34:26 +02:00
Andrew Bartlett
df8e9c1287 s3-selftest: Add a seperate test for ACL tests using vfstest
This does not check for consistency or correctness yet, that will be
done with python unit tests.  The purpose of this test is to ensure
that the vfstest wrapper doesn't crash.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Aug 16 09:32:25 CEST 2012 on sn-devel-104
2012-08-16 09:32:25 +02:00
Andrew Bartlett
807fb16086 selftest: Add knownfail for samba3.winbind.wbclient.wbcPingDc2
The soon-to-be-added command also fails against the s4 winbind.

Andrew Bartlett
2012-08-15 11:44:14 +10:00
Andrew Bartlett
49b2720317 lib/param: Also enable vlp when --enable-selftest is specified 2012-08-06 20:51:55 +10:00
Andrew Bartlett
624f11e4b4 s4-torture: Allow unix.whoami to test against a member server
This compares only the domain SIDs betwen the two servers, rather than
the full token, as well known and other SIDs may be added locally
in both cases.

This also expands the test environments this is run against to verify
this between our AD server and domain members.

Andrew Bartlett
2012-07-19 04:04:20 +02:00
Andrew Bartlett
4654dcaae7 s4-selftest: do a dbcheck on our two vampire DCs
However, due to using --domain-critical-only we have to knownfail the
vampire DC here, as we do not fill in the backlinks on non-critical
objects correctly.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Jul  6 16:54:10 CEST 2012 on sn-devel-104
2012-07-06 16:54:09 +02:00
Andreas Schneider
8e32715d5d selftest: Update knownfail list for samba4.rpc.lsalookup. 2012-07-06 10:00:58 +02:00
Andrew Bartlett
2908bbe06a s4-selftest: Test samba-tool domain dcpromo
This needs a new environment to test it properly.  This requires a raise in the
number of socket wrapper interfaces.

Andrew Bartlett
2012-07-06 08:10:18 +02:00
Andrew Bartlett
3c57fcea95 selftest: Give Samba4 processes a little longer to clean up
This may help write out gcov data correctly.

Andrew Bartlett
2012-07-03 08:13:01 +10:00
Andrew Bartlett
207984464f s4-selftest: Test login with a password expired user
This uses rkpty to test changing an expired password.

Andrew Bartlett
2012-06-27 11:29:17 +02:00
Andrew Bartlett
4f587ffa55 selftest: allow NSS_WRAPPER_* vars to be exported to the environment 2012-06-27 11:29:16 +02:00
Andrew Bartlett
df899ae040 selftest: Add extra users to nss_wrapper
These will be used for a test using pdbtest and to run the client
test environment under nss_wrapper.

Andrew Bartlett
2012-06-27 11:29:16 +02:00
Stefan Metzmacher
5c31e5d553 s3:selftest: run SMB2-SESSION-RECONNECT
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Jun 25 22:42:03 CEST 2012 on sn-devel-104
2012-06-25 22:42:03 +02:00
Stefan Metzmacher
fbad41b1a4 selftest/known: samba3.smb2.session.*reconnect passes now
metze
2012-06-25 20:55:07 +02:00
Stefan Metzmacher
ed96b397f7 s3:selftest: run raw.session
Note: raw.session.reauth2 still fails:

	failure: samba3.raw.session.reauth2(s3dc) [
	_StringException: _StringException: ../source4/torture/raw/session.c:186: status
	was NT_STATUS_ACCESS_DENIED, expected NT_STATUS_OK: 2nd open failed

But it's not critical as real clients won't reauth as anonymous.

metze
2012-06-25 20:55:06 +02:00
Stefan Metzmacher
842f1c85b6 s3:selftest: run smbtorture3 SMB2-SESSION-REAUTH
metze
2012-06-25 20:55:06 +02:00
Stefan Metzmacher
ce22037621 s3:selftest: run smb2.session as ntlm and krb5
This activates the smb2.session.expire1 test, when krb5 is used.

metze
2012-06-25 20:55:06 +02:00
Stefan Metzmacher
500e646e2d selftest/knownfail: only reauth5 still fails
metze
2012-06-25 20:55:06 +02:00
Stefan Metzmacher
9146e56ebb selftest/Samba3: 'server max protocol = SMB3'
metze
2012-06-25 20:55:06 +02:00
Andrew Bartlett
0eab44c297 selftest: Test unix.whoami with kerberos on plugin_s4_dc
This also tests the comparison with LDAP on anonymous connections
and marks this as knownfail, while we investigate the correct
behaviour here.

Andrew Bartlett
2012-06-24 23:46:10 +10:00
Stefan Metzmacher
ea74131dc8 selftest/knownfail: mark ^samba4.raw.session.expire1 as knownfail
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Jun 22 15:03:16 CEST 2012 on sn-devel-104
2012-06-22 15:03:16 +02:00
Stefan Metzmacher
0c54e7c936 s4:torture/smb2: add smb2.durable-open.lock-oplock
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Jun 22 03:37:54 CEST 2012 on sn-devel-104
2012-06-22 03:37:54 +02:00
Stefan Metzmacher
ff36ce74c0 selftest: samba3.smb2.durable-open.lock => samba3.smb2.durable-open.lock-lease
metze
2012-06-22 01:47:33 +02:00
Stefan Metzmacher
9089d487c4 s4:torture/smb2: add smb2.durable-open.delete_on_close1
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Jun 21 10:19:00 CEST 2012 on sn-devel-104
2012-06-21 10:19:00 +02:00
Andrew Bartlett
706a998c1f s4-provision: Remove last unused remenants of the 'sid generator' configuration
This was part of the now-abandoned S4 AD LDAP backend project.

Andrew Bartlett
2012-06-20 16:22:41 +10:00
Stefan Metzmacher
6c74d960bc selftest/flapping: mark samba4.nss.test using winbind as flakey
[1427/1518 in 1h12m39s] samba4.nss.test using winbind(member)
UNEXPECTED(failure): samba4.nss.test using winbind(member).run nsstest(member)
REASON: _StringException: _StringException: ERROR setpwent: NSS_STATUS=-1  1 (nss_errno=0)
ERROR getpwent: NSS_STATUS=-1  1 (nss_errno=0)
ERROR endpwent: NSS_STATUS=-1  1 (nss_errno=0)
ERROR setgrent: NSS_STATUS=-1  1 (nss_errno=0)
ERROR getgrent: NSS_STATUS=-1  1 (nss_errno=0)
ERROR endgrent: NSS_STATUS=-1  1 (nss_errno=0)
ERROR Non existent user gave error -1
ERROR Non existent uid gave error -1
ERROR Non existent group gave error -1
ERROR Non existent gid gave error -1
total_errors=10

This seems to happen in all environments

metze
2012-06-19 17:04:30 +02:00
Rusty Russell
6244f668a3 TDB2: make SAMBA use tdb1 again for the moment.
Otherwise the following surgery will break the SAMBA build and testsuite.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-06-19 05:38:05 +02:00
Stefan Metzmacher
63c2784076 selftest/flapping: samba4.nss.test is also flakey for s3member
[1426/1518 in 1h24m58s] samba4.nss.test using winbind(s3member)
UNEXPECTED(failure): samba4.nss.test using winbind(s3member).run nsstest(s3member)
REASON: _StringException: _StringException: ERROR setpwent: NSS_STATUS=-1  1 (nss_errno=0)
ERROR getpwent: NSS_STATUS=-1  1 (nss_errno=0)
ERROR endpwent: NSS_STATUS=-1  1 (nss_errno=0)
ERROR setgrent: NSS_STATUS=-1  1 (nss_errno=0)
ERROR getgrent: NSS_STATUS=-1  1 (nss_errno=0)
ERROR endgrent: NSS_STATUS=-1  1 (nss_errno=0)
ERROR Non existent user gave error -1
ERROR Non existent uid gave error -1
ERROR Non existent group gave error -1
ERROR Non existent gid gave error -1
total_errors=10

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Jun 18 17:59:25 CEST 2012 on sn-devel-104
2012-06-18 17:59:24 +02:00
Andrew Bartlett
39766b75a4 s4-lib/param: FLAG DAY for the default FILE SERVER
This commit changes the default file server to be s3fs.  Existing
installs wishing to keep the ntvfs file server need to set this in
their smb.conf:

server services = +smb -s3fs
dcerpc endpoint services = +winreg +srvsvc

Andrew Bartlett
2012-06-16 08:18:10 +02:00
Stefan Metzmacher
6440720de3 selftest/flapping: mark samba4.nss.test using winbind(s3dc) as flakey
I saw this at least 10 times in the last weeks.

[1425/1517 in 1h12m22s] samba4.nss.test using winbind(s3dc)
UNEXPECTED(failure): samba4.nss.test using winbind(s3dc).run nsstest(s3dc)
REASON: _StringException: _StringException: ERROR setpwent: NSS_STATUS=-1  1 (nss_errno=0)
ERROR getpwent: NSS_STATUS=-1  1 (nss_errno=0)
ERROR endpwent: NSS_STATUS=-1  1 (nss_errno=0)
ERROR setgrent: NSS_STATUS=-1  1 (nss_errno=0)
ERROR getgrent: NSS_STATUS=-1  1 (nss_errno=0)
ERROR endgrent: NSS_STATUS=-1  1 (nss_errno=0)
ERROR Non existent user gave error -1
ERROR Non existent uid gave error -1
ERROR Non existent group gave error -1
ERROR Non existent gid gave error -1
total_errors=10

FAILED (1 failures, 0 errors and 0 unexpected successes in 0 testsuites)

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Jun 15 20:24:11 CEST 2012 on sn-devel-104
2012-06-15 20:24:11 +02:00
Michael Adam
08e9b1774f selftest: fix use of a non-existent word (existant) 2012-06-12 07:21:43 +02:00
David Disseldorp
80d37023d1 build: do not run fsrvp tests as part of selftest
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Fri Jun  8 15:24:45 CEST 2012 on sn-devel-104
2012-06-08 15:24:45 +02:00
Jeremy Allison
f57ca68b1c Tests for bug #8972 - Add a posix_share definition to s4 so we can do raw posix permissions checks. 2012-06-05 06:25:31 +02:00
Jeremy Allison
acab344847 Tests for bug #8972 - Add a posix_share definition to s3 so we can do raw posix permissions checks. 2012-06-05 06:25:31 +02:00
Michael Adam
15d567265e build: rename build targets smbclient -> smbclient4 and smbclient3 -> smbclient
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu May 31 06:36:55 CEST 2012 on sn-devel-104
2012-05-31 06:36:55 +02:00
Michael Adam
37194f5f25 selftest: add a binary mapping for smbclient4 2012-05-31 04:46:06 +02:00
Michael Adam
52e1bba861 build: rename build targets nmblookup -> nmblookup4 and nmblookup3 -> nmblookup 2012-05-31 04:46:06 +02:00
Michael Adam
f6e6086ad0 selftest:Samba4: use the nmblookup4 binary mapping 2012-05-31 04:46:06 +02:00
Michael Adam
ab39551f7e selftest: add a binary mapping for nmblookup4 2012-05-31 04:46:06 +02:00
Michael Adam
24bdec94d7 s3:selftest: introduce a variable for binpath('nmblookup3') in tests.py 2012-05-31 04:46:05 +02:00
Günther Deschner
633060f025 selftest: bug #8373 is fixed and we should always test this now.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed May 30 18:56:38 CEST 2012 on sn-devel-104
2012-05-30 18:56:38 +02:00
Günther Deschner
c17f981745 s4-torture: verify #8373 and add ndr nbt tests for LOGON_PRIMARY_QUERY nbt_netlogon_requests.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue May 29 15:49:10 CEST 2012 on sn-devel-104
2012-05-29 15:49:10 +02:00
Andrew Bartlett
e33bf32ba3 selftest: Run only the samba3 tests on builds without the AD DC
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu May 24 11:51:40 CEST 2012 on sn-devel-104
2012-05-24 11:51:40 +02:00
Andrew Bartlett
abb2c7fef4 s4-provision: Make s3fs the default way to install a new Samba4 DC
With s3fs now well settled into master, we now throw the swtich and make
it the default.

There is still much to do, but we need to be using s3fs by default to
find out exactly what that is.

Andrew Bartlett
2012-05-24 09:59:04 +02:00
Stefan Metzmacher
d79b46f358 selftest/Samba3: add 'smbd:suicide mode = yes'
metze
2012-05-18 16:36:16 +02:00
Andrew Bartlett
f67cb32b51 selftest: Remove tests for security=server
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-15 08:18:27 +02:00
Jelmer Vernooij
61546b5263 samba4: When running samba_dnsupdate during tests, use the test
smb.conf.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri May 11 18:18:53 CEST 2012 on sn-devel-104
2012-05-11 18:18:52 +02:00
Stefan Metzmacher
9a016613db Revert "selftest: mark ^samba4.raw.context.session1 as flapping, the test was wrong"
This reverts commit 794a9da38fbd88eb3d358d453cc5d21998604caa.

The test is fixed now.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed May  9 02:53:24 CEST 2012 on sn-devel-104
2012-05-09 02:53:24 +02:00
Stefan Metzmacher
d7c9da8b89 selftest: mark ^samba4.raw.context.session1 as flapping, the test was wrong
metze
2012-05-09 01:02:16 +02:00
Stefan Metzmacher
75494f75fa selftest: samba4 doesn't support reauth
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue May  8 02:43:49 CEST 2012 on sn-devel-104
2012-05-08 02:43:48 +02:00
Stefan Metzmacher
0ded6f9cb7 selftest: mark ^samba4.raw.session.reauth as flapping
Because the test is wrong...

metze
2012-05-08 00:50:54 +02:00
Michael Adam
8026550115 selftest: make the knownfail patterns for the driver_info_winreg more specific
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed May  2 11:23:26 CEST 2012 on sn-devel-104
2012-05-02 11:23:25 +02:00
Andrew Bartlett
3408c1ce6c selftest: 'store dos attributes = yes' is now set in fileserver.conf
As such, there is no need to set it or the permissions-based mappings here as well.

Andrew Bartlett
2012-05-02 10:53:51 +10:00
Andrew Bartlett
53c70be468 selftest: Do not start samba4 srvsvc in plugin_s4_dc mode 2012-05-02 01:00:13 +02:00
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