summaryrefslogtreecommitdiff
path: root/source4/torture/smb2
AgeCommit message (Collapse)AuthorFilesLines
2011-11-01s4:torture:smb2: add a new durable-open.upgrade2 test to test all upgrade ↵Michael Adam1-0/+90
combinations Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Tue Nov 1 04:58:03 CET 2011 on sn-devel-104
2011-11-01s4:torture:smb2: expand durable-open.open2 test matrix by all share-modesMichael Adam1-9/+48
2011-11-01s4:torture:smb2: expand durable-open.open1 test matrix by all share-modesMichael Adam1-8/+62
2011-11-01s4:torture:smb2: rename the durable-open.basic2 test to durable-open.open2 ↵Michael Adam1-14/+14
for clarity
2011-11-01s4:torture:smb2: rename the durable-open.basic1 test to durable-open.open1 ↵Michael Adam1-14/+14
for clarity
2011-10-31s4:torture/smb2: fix compound.invalid2 against windowsStefan Metzmacher1-2/+2
Tested against w2k8r2 with signing and win8pre0 without signing. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Oct 31 21:40:25 CET 2011 on sn-devel-104
2011-10-31s4-torture: smb2 copychunk data integrity checksDavid Disseldorp1-0/+72
Perform simple integrity checks on destination file data following a successful copychunk request. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: David Disseldorp <ddiss@samba.org> Autobuild-Date: Mon Oct 31 19:28:20 CET 2011 on sn-devel-104
2011-10-31s4-torture: add smb2 copychunk ioctl testsDavid Disseldorp1-7/+285
test_ioctl_copy_chunk_multi: Issue a copychunk request with multiple chunk descriptors. test_ioctl_copy_chunk_over: Issue a copychunk request with overlapping chunks. test_ioctl_copy_chunk_append: append data as part of a copy chunk test_ioctl_copy_chunk_tiny: issue request with sub FS block size chunk descriptors. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-10-31s4-torture: split common copychunk ioctl test code into helpersDavid Disseldorp1-53/+112
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-10-31s4-torture: Add tests for the smb2 copychunk ioctlDavid Disseldorp2-2/+173
Add idls for parsing of copychunk ioctl args. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-10-30s4:torture:smb2: add durable_open_basic2 test: test durable open against all ↵Michael Adam1-0/+146
lease types Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Sun Oct 30 20:17:16 CET 2011 on sn-devel-104
2011-10-30s4:torture:smb2: add a new durable_open_basic1 test: test open against all ↵Michael Adam1-0/+111
oplock types
2011-10-30s4:torture:smb2: check wheter open was durable in existing testsMichael Adam1-0/+8
2011-10-30s4:torture: test also break semantics between batch-oplocks and leasesMichael Adam1-1/+1
This must have been a typo (listing EXCLUSIVE twice). But BATCH and EXCLUSIVE oplocks apparently share the same break semantics with respect to leases.
2011-10-30s4:torture:smb2: adapt comment in durable-open.lease test according to ↵Michael Adam1-0/+3
current information.
2011-10-30s4:torture:smb2: fix the durable_open test to succeed against w7 and w2k8r2Michael Adam1-1/+1
When a first client that has a durable open with share read/write/delete and a read-write-handle lease on the file disconnects, a second client will succeed in opening the file and the new client will be given a RWH-lease if requested, not only a RH-lease, as was previously checked in the test. This might have been a bug in win7 build 7000, which is what the comments in the test give as reference.
2011-10-28s4:torture:smb2: avoid leaking tree connects up to the main function from ↵Michael Adam1-0/+13
the durable_open test The tree connects are handed in from the calling wrapper. Those that are freed and reconnected inside the test function can not be freed in the wrapper and stick to the torture_context until this is released in the main function. Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Oct 28 02:37:25 CEST 2011 on sn-devel-104
2011-10-28s4:torture:smb2: fix a nasty double free error.Michael Adam1-2/+10
This error manifested itself in sporadic "talloc_free with references" error.
2011-10-28s4:torture:smb2: fix a commentMichael Adam1-1/+1
2011-10-28s4:torture:smb2: be leass leaky in wrap_simple_2smb2_test()Michael Adam1-4/+9
2011-10-26s4:torture:smb2: fix broken indentation/formatting in torture_smb2_connection()Michael Adam1-8/+11
this was not readable well
2011-10-19s3: remove duplicate fsctl fn definitionsDavid Disseldorp1-2/+2
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-10-14Fix printf warning.Jeremy Allison1-1/+1
2011-10-13s4:torture/smb2: we only support 64KB reads/writes for nowStefan Metzmacher2-8/+8
We don't have multi-credit support yet. metze
2011-10-08s4:torture/smb2: avoid '//' commentsStefan Metzmacher1-1/+1
The compiler on openindiana doesn't like them. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sat Oct 8 08:56:10 CEST 2011 on sn-devel-104
2011-09-29s4: add SMB2_FSCTL opcodesDavid Disseldorp1-3/+3
Also, skip samba4.smb2.ioctl for now. Snapshots are not supported by default. Autobuild-User: David Disseldorp <ddiss@samba.org> Autobuild-Date: Thu Sep 29 14:47:05 CEST 2011 on sn-devel-104
2011-09-29s4-torture: add smb2 ioctl test suiteDavid Disseldorp3-1/+89
Currently only covers FSCTL_GET_SHADOW_COPY_DATA. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-09-29s4-torture: remove unchecked read from smb2 createDavid Disseldorp2-9/+9
Add a corresponding test case to smb2.read. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-09-28s4:torture/smb2/lock: remove samba4 specific checks for ↵Stefan Metzmacher1-12/+14
NETWORK_NAME_DELETED/USER_SESSION_DELETED Most Windows versions have a strange order to verify the session id, tree id and file id. (They should be checked in that order, but windows seems to check the file id before the others). metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Sep 28 21:12:07 CEST 2011 on sn-devel-104
2011-08-30smbtorture4: Fix a typoVolker Lendecke1-1/+1
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Aug 30 09:51:10 CEST 2011 on sn-devel-104
2011-08-30Fixed regression test case for Bug 8412 - Microsoft Office 2007 (Microsoft ↵Jeremy Allison1-2/+40
Word) fails to save as on a Samba share with SMB2 Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Aug 30 03:26:49 CEST 2011 on sn-devel-104
2011-08-13torture: use tevent_ functions names instead of the legacy event_ onesSimo Sorce4-11/+11
2011-07-06s4:torture/smb2: s/smb2cli_unlock/test_smb2_unlockStefan Metzmacher1-3/+3
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Jul 6 19:07:42 CEST 2011 on sn-devel-104
2011-07-06s4:torture/smb2: s/smb2cli_lock/test_smb2_lockStefan Metzmacher1-19/+19
metze
2011-05-05Clean up some const and other compiler warnings.Jeremy Allison1-2/+5
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu May 5 00:59:40 CEST 2011 on sn-devel-104
2011-03-19source4/torture: Fix prototypes for all functions.Jelmer Vernooij1-0/+1
2010-12-11s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij12-147/+146
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-11-28s4:torture/smb2/acls.c - remove two unused variablesMatthias Dieter Wallnöfer1-2/+0
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sun Nov 28 17:22:54 CET 2010 on sn-devel-104
2010-11-01s4:torture - suppress printf "%llu" on uint64_t variables warningsMatthias Dieter Wallnöfer2-17/+22
The signed/unsignedness does match (always unsigned). The bitlength (64 bit) on all regular platforms does also. Therefore simply add a cast to "unsigned long long".
2010-10-31s4: Remove the old perl/m4/make/mk-based build system.Jelmer Vernooij1-33/+0
The new waf-based build system now has all the same functionality, and the old build system has been broken for quite some time. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Oct 31 02:01:44 UTC 2010 on sn-devel-104
2010-09-25torture: fixed a valgrind error in SMB2-CREATEAndrew Tridgell1-0/+6
the lock structure had uninitialised elements, so we sent a random length. This also adds a 1 byte write, so there is real data that is being truncated with the 2nd open
2010-09-22s4:libcli:smb2 Rename pending_id to async_id and make 64-bitSteven Danneman1-0/+1
Match MS-SMB2 - 2.2.1.1 SMB2 Packet Header - ASYNC
2010-09-16s3/s4: merge msleep and smb_msleepBjörn Jacke2-5/+5
the merged variant is renamed to smb_msleep as some platforms already have a msleep function.
2010-07-16s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell3-19/+19
this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-04-22s4-torture: fixed a initialiserAndrew Tridgell1-1/+1
we were not initialising the whole array Pair-Programmed-With: Rusty Russell <rusty@samba.org> Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-04-11s4: Fix more test results to not conflict with subunit commands.Jelmer Vernooij1-7/+7
2010-04-11subunit: Support formatting compatible with upstream subunit, for consistency.Jelmer Vernooij4-54/+54
Upstream subunit makes a ":" after commands optional, so I've fixed any places where we might trigger commands accidently. I've filed a bug about this in subunit.
2010-04-07Test using (-1) for tid and sessionid in compound related requests.Jeremy Allison1-0/+25
Jeremy.
2010-04-06s4:torture - remove unused variablesMatthias Dieter Wallnöfer1-1/+1
2010-04-06s4-waf: removed the AUTOGENERATED markersAndrew Tridgell1-4/+0
we won't be using the mk -> wscript generator again