summaryrefslogtreecommitdiff
path: root/source4/torture/smb2
AgeCommit message (Collapse)AuthorFilesLines
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
2010-04-06s4-waf: mark the wscript files as python so vim/emacs knows how to highlight ↵Andrew Tridgell1-0/+2
them
2010-04-06build: waf quicktest nearly worksAndrew Tridgell1-1/+1
Rewrote wafsamba using a new dependency handling system, and started adding the waf test code
2010-04-06build: commit all the waf build files in the treeAndrew Tridgell1-0/+13
2010-02-23s4/torture/smb2: Add two new SMB2 compound testsSteven Danneman1-0/+157
These tests server behavior when a client compounds both synchronous and asynchronous requests.
2010-02-13s4-torture: use TYPESAFE_QSORT() in smbtortureAndrew Tridgell2-13/+7
2010-02-08s4-torture: more useful error message in SMB2-DIRAndrew Tridgell1-2/+2
2010-02-02Change uint_t to unsigned int in source4Matt Kraai2-10/+10
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-01-21s4: Fix a few warnings.Jelmer Vernooij1-2/+2
2009-12-07s4 torture: Add a new torture:hide_on_access_denied parameterTim Prouty2-8/+25
It appears some newer versions of windows return NT_STATUS_OBJECT_NAME_NOT_FOUND on a createfile when access is denied rather than NT_STATUS_ACCESS_DENIED. I'm not sure how this translates to directory enumeration yet, but for now make this a parameter that can be checked in the various torture tests. This also gets RAW-ACLS and SMB2-CREATE passing against win7.
2009-12-07s4 torture: win 7 doesn't like the sequential_only flag for directoriesTim Prouty1-4/+2
Remove it for now
2009-12-07s4 torture: Port RAW-ACLS tests to SMB2Zack Kirsch6-230/+2419
- 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
2009-12-07s4 torure: Add SMB2 utility functionsZack Kirsch1-2/+105
- Add a torture_setup_dir() equivalent in SMB2, called smb2_util_setup_dir(). - Add verify_sd() and verify_attrib() helper functions for SMB2.