summaryrefslogtreecommitdiffstats
path: root/source4/torture/smb2/smb2.c
Commit message (Collapse)AuthorAgeFilesLines
* torture: Change smb2.getinfo into a suiteVolker Lendecke2013-08-231-1/+1
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* Add a test that shows the difference between Windows and Samba with respect ↵Richard Sharpe2013-04-161-0/+2
| | | | | | | | | | to DeleteOnClose. Signed-off-by: Richard Sharpe <realrichardsharpe@gmail.com> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Apr 16 00:46:54 CEST 2013 on sn-devel-104
* s4:torture: add a durable-open-disconnect test (suite)Michael Adam2013-02-181-0/+1
| | | | | | | this opens a durable, disconnects it and exits Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4:torture report connection error via torture_failChristian Ambach2012-05-291-1/+8
| | | | | | | | | to make smbtorture report the error instead of complaining about missing torture_ call Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue May 29 13:57:42 CEST 2012 on sn-devel-104
* s4:torture make a suite for smb2.*scanGregor Beck2012-03-061-4/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:torture:smb2: start a testsuite for durable v2 handles: durable and ↵Michael Adam2012-03-031-0/+1
| | | | persistent opens
* s4:torture:smb2: add new "session" testsuite starting with a ↵Michael Adam2012-02-281-0/+1
| | | | session.reconnect test
* s4:torture: add some SMB2 renaming testsChristian Ambach2012-02-101-0/+1
|
* s4:torture:smb2: fix a nasty double free error.Michael Adam2011-10-281-2/+10
| | | | This error manifested itself in sporadic "talloc_free with references" error.
* s4:torture:smb2: fix a commentMichael Adam2011-10-281-1/+1
|
* s4:torture:smb2: be leass leaky in wrap_simple_2smb2_test()Michael Adam2011-10-281-4/+9
|
* s4-torture: add smb2 ioctl test suiteDavid Disseldorp2011-09-291-0/+1
| | | | | | Currently only covers FSCTL_GET_SHADOW_COPY_DATA. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij2010-12-111-10/+10
| | | | | | | | 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
* s4 torture: Port RAW-ACLS tests to SMB2Zack Kirsch2009-12-071-0/+1
| | | | | | | | | | | - The smblsa calls had to be commented out for now and should be fixed later, but they aren't crucial to the test. - The first two tests from RAW-ACLS were already ported to torture_smb2_setinfo() and test_create_acl(). Modifications were made similar to the RAW-ACLS changes. - test_sd_get_set() was ported, but does not pass against XP or Vista; it is not added to the SMB2-ACLS test suite. - printf -> torture_comment / torture_warning / torture_result
* s4/torture: Port SMBv1 Change Notify tests to SMBv2Aravind Srinivasan2009-11-171-1/+1
| | | | | | | | * Ported all tests from raw/notify.c to smb2/notify.c * Parameterized the max_buffer_size so it can be set on a per-target basis. * Fixed CHECK macros to use torture_result * Created a SMB2-NOTIFY test suite
* s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell2009-10-201-1/+0
| | | | This reduces compile time somewhat.
* s4/torture: Ported SMBv1 RAW-STREAMS tests to SMB2-STREAMSAravind Srinivasan2009-10-071-0/+1
|
* s4/torture: Ported SMB oplock torture tests to SMB2Steven Danneman2009-10-011-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | I've ported all applicable SMB oplock torture tests to SMB2, giving us a good base for SMB2 oplock testing. There are several differences between oplocks in SMB and SMB2, mostly because of differences in W2K3 and W2K8. The existing SMB oplock tests all pass against W2K3, but several fail against W2K8. These same tests were failing in SMB2, util I reworked them. BATCH19, BATCH20: In W2K3/SMB a setfileinfo - rename command wouldn't cause a sharing violation or break an existing oplock. It appears that in W2K8/SMB2 a sharing violation is raised. BATCH22: In W2K3/SMB when a second opener was waiting the full timeout of an oplock break, it would receive NT_STATUS_SHARING_VIOLATION after about 35 seconds. This bug has been fixed in W2K8/SMB2 and instead the second opener succeeds. LEVELII500: Added 1 new test checking that the server returns a proper error code when a client improperly replies to a levelII to none break notification. STREAM1: W2K8 now grants oplocks on alternate data streams.
* s4/torture/smb2: removed SMB2-FIND testSteven Danneman2009-09-081-1/+0
| | | | | This test has been wholly replaced by the SMB2-DIR-ONE test found in dir.c.
* torture/smb2: Adding SMB2 Directory enumeration torture tests.Aravind2009-07-141-0/+1
| | | | | | | | * Most of the tests were ported from SMB torture tests. * Added one new tests which checks the behavior of the file_index field present in SMB2_FIND struct. * Added one new test to check the enumeration of directories containing lots of files (~2000 files) with name lengths varying from 1 to 200 char.
* s4:torture: add SMB2-COMPOUND testStefan Metzmacher2009-06-091-0/+1
| | | | metze
* s4:torture/smb2: Add torture tests for leases.Zach Loafman2009-03-281-0/+1
|
* s4:torture/smb2: fix the buildStefan Metzmacher2009-03-271-5/+5
| | | | | | | | | We move prototypes of _PUBLIC_ functions into /dev/null, as we want public function to have handwritten prototypes. see proto_header_template in build/make/templates.mk... metze
* Reorganize old persistent_handles test into durable_open.c, turn it into a ↵Zach Loafman2009-03-261-1/+1
| | | | suite instead of a solo test (in anticipation of more tests).
* Fix include paths to new location of libutil.Jelmer Vernooij2008-10-111-1/+1
|
* add testing of creating a file with an initial ACL on SMB2Andrew Tridgell2008-05-281-1/+1
| | | | (This used to be commit e957e86a03baa0c0daf3bfe1aaeceb7a08e3c24e)
* added a basic SMB2 read test suiteAndrew Tridgell2008-05-271-0/+1
| | | | (This used to be commit 4aeda5c11414a4a7ef44da32be05209cb5caa90c)
* the start of a SMB2 create test suiteAndrew Tridgell2008-05-271-0/+1
| | | | (This used to be commit 16787e99f3de7255e315651c095486f90f65f2ca)
* Move subunit infrastructure code into lib/torture.Jelmer Vernooij2008-04-271-1/+1
| | | | (This used to be commit 5b44d8121de7735d69e6238a1442aff034a8ebd3)
* torture/smb2: add a simple SMB2-OPLOCK-BATCH1 testStefan Metzmacher2008-04-191-0/+1
| | | | | metze (This used to be commit 914f0ac83bc396be0ca34c43e2ea01ecc1c3b826)
* torture/smb2: add SMB2-PERSISTENT-HANDLES1 testStefan Metzmacher2008-04-171-0/+1
| | | | | | | | This demonstrates that the file seek position is still available on reconnected persistent handles. metze (This used to be commit 30e04ae3a02596de03d06874ff5dfc0ddc3bf902)
* torture/smb2: add torture_suite_add_2smb2_test() helper functionStefan Metzmacher2008-04-171-0/+55
| | | | | metze (This used to be commit d70afbb0673184ed067e5f1c7608536025a3cca7)
* torture/smb2: fix whitespacesStefan Metzmacher2008-04-171-3/+3
| | | | | metze (This used to be commit 66c0f331a231ea8897bd8f83658c86b1d2c85d62)
* Install public header files again and include required prototypes.Jelmer Vernooij2008-04-021-1/+1
| | | | (This used to be commit 47ffbbf67435904754469544390b67d34c958343)
* r23792: convert Samba4 to GPLv3Andrew Tridgell2007-10-101-3/+2
| | | | | | There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
* r22824: - add a simple test which shows how a lock rejectsStefan Metzmacher2007-10-101-6/+48
| | | | | | | | | | a write on a different file handle. SMB2-LOCK-BLOCK-WRITE - make it possible to run each SMB2-LOCK-* test on its own metze (This used to be commit 9c02f690bc07ebf99cb272e255a24d7061d8e730)
* r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grainedJelmer Vernooij2007-10-101-12/+18
| | | | | | | | | | | | | | | | | | | output in the testsuite rather than just True or False for a set of tests. The aim is to use this for: * known failure lists (run all tests and detect tests that started working or started failing). This would allow us to get rid of the RPC-SAMBA3-* tests * nicer torture output * simplification of the testsuite system * compatibility with other unit testing systems * easier usage of smbtorture (being able to run one test and automatically set up the environment for that) This is still a work-in-progress; expect more updates over the next couple of days. (This used to be commit 0eb6097305776325c75081356309115f445a7218)
* r18808: added SMB2-MAXWRITE test and SMB2-DIR testsAndrew Tridgell2007-10-101-0/+2
| | | | | expanded size of dangerous level for write in SMB2-CONNECT test (This used to be commit 355c6e78a91f4e934479829e722f873ca7e66baf)
* r16976: add a very simple SMB2-NOTIFY testStefan Metzmacher2007-10-101-0/+1
| | | | | metze (This used to be commit 9dfbb0d15e2a5b9cd90643eebedca7b830fc6e10)
* r16405: fix compiler warning of missing smb2_handleStefan Metzmacher2007-10-101-1/+3
| | | | | metze (This used to be commit 73194e9ec3d1c18e7042bdaa008c7fd503e6e534)
* r16333: Move more code out of the core smbtorture. It now no longerJelmer Vernooij2007-10-101-0/+39
contains protocol-specific code. (This used to be commit 819d3b457648ffb7526a770e842badc17b6061fb)