summaryrefslogtreecommitdiffstats
path: root/source4/torture/smb2/durable_open.c
Commit message (Collapse)AuthorAgeFilesLines
* s4:torture:smb2: fix durable-open.reopen4Michael Adam2014-01-301-1/+0
| | | | | | | | | | | | We currently don't support durable handles with delete-on-close: with delete-on-close, we close a durable handle with delete-on-close set upon disconnect. This patch adapts the test to behave accordingly, i.e. don't use delete-on-close... Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4:torture:smb2: add new durable-open.reopen1a testMichael Adam2013-12-061-0/+100
| | | | | | | | | | | | - open session1 on tcp connection conn1 - open a durable handle on a session1 - do a session reconnect on a new tcp connection conn2 - doing a durable reconnect on session1 gives USER_SESSION_DELETED - doing a durable reconnect on session2 succeeds Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
* s4:torture:smb2: extend the durable-open.reopen2 testMichael Adam2013-10-051-18/+83
| | | | | | | | | | Add tests for: - filename and many other things don't matter in reconnect - additionally specified DHnQ request blob is ignored. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4:torture:smb2: add a durable-open.reopen-lease-v2 testMichael Adam2013-10-051-0/+238
| | | | | | | | like durable-open.reopen2-lease but with v2 lease requets Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4:torture:smb2: add durable-open.reopen2-lease testMichael Adam2013-10-051-0/+238
| | | | | | | | lease-variant of the reopen2 test Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4:torture:smb2: fix durable-open lease tests to pass against windows.Michael Adam2013-10-051-2/+8
| | | | | | | | Fix is: reconnect with same client-guid as on the first connection. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4:torture:smb2: add smbcli_options argument to torture_smb2_connection_ext()Michael Adam2013-10-051-7/+36
| | | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4:torture:smb2: fix a comment in the durable-open.lock-oplock testMichael Adam2013-10-051-1/+1
| | | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4:torture:smb2 delete temp memory context in ↵Gregor Beck2013-04-181-2/+2
| | | | | | | | | | | test_durable_open_oplock_disconnect Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Thu Apr 18 15:10:31 CEST 2013 on sn-devel-104
* s4:torture: fix segfault in test_durable_open_open2_oplock()Stefan Metzmacher2013-02-181-2/+4
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s4:torture:smb2: fix segfault on error condition in the ↵Michael Adam2013-02-181-5/+7
| | | | | | | durable-open.delete_on_close2 test Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4:torture:smb2: fix segfault on error condition in the ↵Michael Adam2013-02-181-5/+7
| | | | | | | durable-open.delete_on_close1 test Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4:torture:smb2: fix segfault on error condition in the durable-open.reopen4 ↵Michael Adam2013-02-181-5/+7
| | | | | | | test Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4:torture:smb2: fix segfault on error condition in the durable-open.reopen3 ↵Michael Adam2013-02-181-5/+7
| | | | | | | test Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4:torture:smb2: fix segfault on error condition in the ↵Michael Adam2013-02-181-5/+7
| | | | | | | durable-open.reopen2a test Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4:torture:smb2: fix segfault on error condition in durable-open.reopen2 testMichael Adam2013-02-181-5/+7
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4:torture:smb2:durable: make test functions staticMichael Adam2013-02-181-40/+40
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4:torture: add a durable-open-disconnect test (suite)Michael Adam2013-02-181-0/+63
| | | | | | | 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:smb2: add a durable-open.read-only testMichael Adam2012-09-231-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
* s4:torture:smb2: add a durable-open.delete_on_close2 testMichael Adam2012-09-111-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.
* s4:torture:smb2: fix the durable-open.delete_on_close1 testMichael Adam2012-09-111-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.
* s4:torture:smb2: simplify durable-open.file-position test to only use one ↵Michael Adam2012-09-071-27/+27
| | | | | | I/O and one handle Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:torture:smb2: change the durable-open.file-position test to use one ↵Michael Adam2012-09-071-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>
* s4:torture:smb2: fix name of test file in the durable-open.alloc-size testMichael Adam2012-09-071-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:torture:smb2: add a test for alloc size behaviour under durable reconnectMichael Adam2012-09-071-0/+154
| | | | Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s4:torture/smb2: check that the server should ignore the fname in a DHnC requestStefan Metzmacher2012-09-071-1/+2
| | | | metze
* s4:torture/smb2: don't expect a DHnQ response in a DHnC requestStefan Metzmacher2012-09-071-4/+0
| | | | | | | This is fixed in Windows 2012 and matches the [MS-SMB2] documentation now. metze
* s4:torture/smb2: add smb2.durable-open.lock-oplockStefan Metzmacher2012-06-221-0/+79
| | | | | | | metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Jun 22 03:37:54 CEST 2012 on sn-devel-104
* s4:torture/smb2: rename smb2.durable-open.lock to smb2.durable-open.lock-leaseStefan Metzmacher2012-06-221-4/+4
| | | | metze
* s4:torture/smb2: add smb2.durable-open.delete_on_close1Stefan Metzmacher2012-06-211-2/+126
| | | | | | | metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Jun 21 10:19:00 CEST 2012 on sn-devel-104
* s4:torture:smb2: rename some of the durable-handle subtests more systematicallyMichael Adam2012-03-031-34/+34
|
* s4:torture:smb2:durable_open: update (C)Michael Adam2012-03-031-0/+1
|
* s4:torture:smb2:durable-open: skip the open-with-lease test on servers ↵Stefan Metzmacher2012-03-031-0/+6
| | | | | | without lease support Signed-off-by: Michael Adam <obnox@samba.org>
* s4:torture:smb2: durable-open: make tables staticMichael Adam2012-03-031-2/+2
|
* s4:test:smb2:durable_open: skip lease tests when the server does not support ↵Stefan Metzmacher2012-03-031-0/+25
| | | | | | leases Signed-off-by: Michael Adam <obnox@samba.org>
* s4:torture:smb2:durable_open: remove unused lease variables in the ↵Stefan Metzmacher2012-03-031-4/+0
| | | | | | open-oplock test Signed-off-by: Michael Adam <obnox@samba.org>
* s4:torture:smb2:durable-open: fix a silly access-after-free panicMichael Adam2012-02-281-7/+0
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Tue Feb 28 08:33:44 CET 2012 on sn-devel-104
* s4:torture:smb2: add durable_open.reopen2a - variant of reopen2 with session ↵Michael Adam2012-02-281-0/+77
| | | | reconnect
* s4:torture:smb2: add previous_session argument to torture_smb2_session_setup()Michael Adam2012-02-281-1/+4
| | | | To allow for doing a session reconnect
* s4:torture:smb2:durable-open: prevent using a disconnected handle in reopen4Michael Adam2012-02-271-0/+1
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon Feb 27 03:44:16 CET 2012 on sn-devel-104
* s4:torture:smb2:durable-open: introduce new variable for the new sessionMichael Adam2012-02-271-2/+9
| | | | This is to clarify the code.
* s4:torture:smb2:durable-open: make a comment more precise in the reopen4 testMichael Adam2012-02-271-1/+4
|
* s4:torture:smb2:durable_open: use the correct tree in the final close callMichael Adam2012-02-271-1/+1
|
* s4:torture:smb2: add a durable-open.open-oplock testMichael Adam2012-02-211-0/+85
| | | | | | | | | | | this is a variant of the open-lease test that does the initial durable open with a batch oplock instead of a RH lease. This is e.g. useful do analyse a (mis?) behaviour with current windows 8 preview versions, compared to w2k8r2 Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Tue Feb 21 19:51:21 CET 2012 on sn-devel-104
* s4:torture:smb2: extend and prettify comment for durable-open.open-lease testMichael Adam2012-02-211-8/+8
|
* s4:torture:smb2:durable-open: rename the open test to open-leaseMichael Adam2012-02-211-5/+7
|
* s4:torture:smb2: move some initialization and call to smb2_create together ↵Michael Adam2012-02-211-2/+2
| | | | in durable-open.open test
* s4:torture:smb2: fix a typo in the durable-open.open test file nameMichael Adam2012-02-211-1/+1
|
* s4:torture:smb2: invalidate the handle after the connection has been killedMichael Adam2012-02-201-0/+1
| | | | | | | Not to run into using the old handle with a new tree connect in the error case. Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon Feb 20 18:34:48 CET 2012 on sn-devel-104
* s4:torture: improve comment for the smb2.durable-open.reopen1 testMichael Adam2012-02-201-0/+1
|