summaryrefslogtreecommitdiff
path: root/source4/torture
AgeCommit message (Collapse)AuthorFilesLines
2012-11-09torture: Fix smb2.create.blob test.Andreas Schneider1-1/+4
Reviewed-by: David Disseldorp <ddiss@samba.org> Autobuild-User(master): David Disseldorp <ddiss@samba.org> Autobuild-Date(master): Fri Nov 9 14:53:27 CET 2012 on sn-devel-104
2012-10-03s4:tortore/rpc/lsa: make more use of torture_assert*Stefan Metzmacher1-47/+40
Currently samba3.rpc.lsa.privileges.lsa.Privileges(s3dc) seems to be flakey. We may be able to find the bug with this, or at least mark it as flapping. metze
2012-10-01Add samba3.samba3badnameblob test to check regressions in bug #9215.Jeremy Allison2-0/+139
Bad name in SMB1 openX can cause a crash in iconv inside glibc. Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Mon Oct 1 23:29:25 CEST 2012 on sn-devel-104
2012-09-26netlogon: Per MS-NRPC, don't send unknown workstation flags back to theJelmer Vernooij1-3/+25
client.
2012-09-26s4:torture/smb2: remove samba specific stuff from smb2.oplockStefan Metzmacher1-10/+0
metze
2012-09-25s4-torture: Fix some nonemtpy blank linesVolker Lendecke1-12/+12
2012-09-24torture: More torture_assert() calls in rpc.lsaAndrew Bartlett1-36/+19
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Sep 24 05:27:46 CEST 2012 on sn-devel-104
2012-09-24torture: use torture_assert rather than return false in rpc.lsaAndrew Bartlett1-110/+52
This will help ensure we always generate correct subunit failures. Andrew Bartlett
2012-09-24torture: tidy up rpc.lsa OpenPolicy2 test to more clearly use torture_fail()Andrew Bartlett1-14/+10
2012-09-23lib/replace: Try to fix build on HP-UX for os2_delete testAndrew Bartlett1-1/+1
The issue is that this file is both used in an autoconf test, and later in a smbtorture test. Because os2_delete.c does not include replace.h, bool may not be defined. So, instead we shift the need for bool to a different header. (The readdir tests in repdir.m4 are not yet in the waf configure). Andrew Bartlett
2012-09-23s4:torture:smb2: add a durable-open.read-only testMichael Adam1-0/+95
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Sun Sep 23 05:47:30 CEST 2012 on sn-devel-104
2012-09-22s4:torture:smb2:compound: remove two unused macrosMichael Adam1-3/+0
2012-09-22s4:torture:smb2: don't skip the compound.interim2 test for non win7/win2k8Michael Adam1-4/+0
2012-09-22s4:torture:smb2: don't skip the compound.interim1 test for non win7/win2k8Michael Adam1-4/+0
2012-09-22s4:torture:smb2: extend the compound.invalid1 testStefan Metzmacher1-3/+8
Test that when turning the related flag back off for the last compound request, the return code changes from invalid parameter to file closed. Pair-Programmed-With: Michael Adam <obnox@samba.org>
2012-09-22s4:torture:smb2: fix the compound.invalid3 test to work against windowsMichael Adam1-2/+2
2012-09-22s4:torture:smb2: fix compound.related3 test to work against windowsMichael Adam1-2/+2
2012-09-21libtorture: factor out simple ui backendGregor Beck1-64/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-20s4-torture: Complete test for winbindd PAC parsingChristof Schmitt1-6/+86
Decode the PAC through the wbcAuthenticateUserEx call, also decode it locally and compare the result. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2012-09-19s4:torture:smb2: add a new test durable-v2-open.app-instanceMichael Adam1-0/+134
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-09-19s4:torture/smb2: improve the smb2.create.blob testStefan Metzmacher1-2/+91
metze
2012-09-14s4:torture: fix error reporting in the raw.oplock-brl3 testMichael Adam1-2/+1
Error was assigned to a variable that was not returned. Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Fri Sep 14 14:05:20 CEST 2012 on sn-devel-104
2012-09-12s4 dns: Add libaddns-based simple testsKai Blin3-3/+201
2012-09-11s4:torture:smb2: fix error reporting in the oplock-brl3 testMichael Adam1-2/+1
(Error was set to an unused variable) Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Tue Sep 11 22:09:18 CEST 2012 on sn-devel-104
2012-09-11s4:torture:smb2: fix error reporting in the oplock-brl2 testMichael Adam1-2/+1
(Error was set to an unused variable)
2012-09-11s4:torture:smb2: fix error reporting in the oplock-brl1 testMichael Adam1-2/+1
(Error was set to an unused variable)
2012-09-11s4:torture:smb2: remove an unused variable from the oplock-exclusive2 testMichael Adam1-3/+0
2012-09-11s4:torture:smb2: remove an unused variable from the oplock-exclusive1 testMichael Adam1-3/+0
2012-09-11torture: Add discard_const_p() to work around dlz_create prototypeAndrew Bartlett1-2/+2
2012-09-11s4:torture:smb2: add a durable-open.delete_on_close2 testMichael Adam1-0/+110
This test verifies that the delete on close flag is kept during a disconnect and is still active on the reconnected handle. When the reconnected handle is closed, the file is deleted.
2012-09-11s4:torture:smb2: fix the durable-open.delete_on_close1 testMichael Adam1-53/+16
This test used to flap because there was an invalid check of the file-id. This might or might not be the same after a new open. Hence the flapping. The new version simply opens a file as durable handle with delete_on_close set, writes a byte and closes the file. Then on a new connect, the file is opened again, and it is checked that the file has been created (again) and that it is empty.
2012-09-10smbtorture: Test that delete requests are not specialVolker Lendecke1-0/+78
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-09-10Force cast to long as on some platform tv_usec is 32bit longMatthieu Patou1-2/+2
Autobuild-User(master): Matthieu Patou <mat@samba.org> Autobuild-Date(master): Mon Sep 10 07:33:50 CEST 2012 on sn-devel-104
2012-09-07s4:torture:smb2: simplify durable-open.file-position test to only use one ↵Michael Adam1-27/+27
I/O and one handle Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07s4:torture:smb2: change the durable-open.file-position test to use one ↵Michael Adam1-17/+27
connection only And do a tcp disconnect followed by a session reconnect instead of immediately using the already opened second connection. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07s4:torture:smb2: fix durable-v2-open.reopen2 to pass against windowsMichael Adam1-1/+1
The DH2Q response blob is not sent upon successful durable handle v2 reconnect. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07s4:torture:smb2: simplify the durable-v2.reopen2 test (using only one i/o ↵Michael Adam1-51/+52
struct) Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07s4:torture:smb2: simplify the durable-v2-open.reopen1 testMichael Adam1-20/+21
only use one smb2_create i/o struct and store the create GUID centrally Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07s4:torture:smb2: in the durable-v2-reopen1 test, use a minimal requestMichael Adam1-2/+1
don't copy the old request, but only set the necessary fields Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07s4:torture:smb2: fix cut'n'paste error in the durable-v2-open.reopen2 testMichael Adam1-3/+3
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07s4:torture:smb2: fix name of test file in the durable-open.alloc-size testMichael Adam1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07s4-torture: dns torture test depends on AD DC buildAlexander Bokovoy1-8/+9
2012-09-07s4:torture:smb2: add a test for alloc size behaviour under durable reconnectMichael Adam1-0/+154
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-09-07s4:torture/smb2: add smb2.durable-v2-open.reopen{1,2} testsStefan Metzmacher1-0/+184
They show that only the content of the DH2C request matches and all other values in the SMB2 Create request are ignored. metze
2012-09-07s4:torture/smb2: check that the server should ignore the fname in a DHnC requestStefan Metzmacher1-1/+2
metze
2012-09-07s4:torture/smb2: don't expect a DHnQ response in a DHnC requestStefan Metzmacher1-4/+0
This is fixed in Windows 2012 and matches the [MS-SMB2] documentation now. metze
2012-09-06selftest: Test configure stage of dlz_bind9Andrew Bartlett1-0/+61
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Sep 6 09:07:11 CEST 2012 on sn-devel-104
2012-09-06selftest: Add tests for the dlz_bind9 moduleAndrew Bartlett3-0/+102
This will help ensure that we do not break the fundemental loading etc. From here, it should be easy to extend this to more comprehensive tests. Andrew Bartlett
2012-08-31Now SEC_RIGHTS_PRIV_RESTORE and SEC_RIGHTS_PRIV_BACKUP don't include any ↵Jeremy Allison1-4/+27
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-31Rewrite torture_samba3_rpc_sharesec() to use a non-privileged user for share ↵Jeremy Allison2-15/+182
security descriptor testing.