summaryrefslogtreecommitdiff
path: root/source4/torture/smb2
AgeCommit message (Collapse)AuthorFilesLines
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.
2009-12-07s4/torture: add test for zero byte read contention with byte range locksSteven Danneman1-0/+120
2009-12-07s4/torture: fix >80 column spacing issuesSteven Danneman1-6/+6
2009-12-02s4/torture: add addition multiple lock testsSteven Danneman1-29/+212
* test that 2 locks in a single LockAndX are transactional * test that 1 unlock and 1 lock in a single LockAndX are not transactional * test that SMB2 doesn't like mixed lock/unlock in a single PDU
2009-12-01s4 torture: Move target macros to a common header instead of redefining them ↵Tim Prouty1-2/+0
in multiple files
2009-11-27s4-torture: fixed error code for s4 in SMB2-LOCK testAndrew Tridgell1-1/+8
s4 returns NETWORK_NAME_DELETED if you attempt to use an invalid tree connection for a lock. This test (correctly I think) happens before we validate the file handle. That implies that when you pass both a closed handle and a invalid tree you should get NT_STATUS_NETWORK_NAME_DELETED.
2009-11-27s4-torture: fixed expected error codes for s4 in SMB2-LOCKAndrew Tridgell1-3/+22
I think the error/success codes returned by windows for these tests are quite bogus. The ones s4 gives are much more reasonable. The locking ones returning NT_STATUS_SUCCESS could lead to data loss, as an application thinks it has a file locked correctly when it fact it doesn't, so it could do an unsafe modify.
2009-11-27torture: fixed SMB2-LOCK valgrind errorAndrew Tridgell1-1/+2
2009-11-25s4/torture: port SMBv1 RAW-LOCK tests to SMBv2Steven Danneman1-20/+2012
RAW-LOCK ported as: RAW-LOCK-LOCK, RAW-LOCK-LOCKX -> SMB2-LOCK-LOCK RAW-PIDHIGH -> removed, no longer relevant RAW-ASYNC -> SMB2-LOCK-ASYNC, SMB2-LOCK-CANCEL, SMB2-LOCK-CANCEL-TDIS, SMB2-LOCK-CANCEL-LOGOFF RAW-ERRORCODE -> SMB2-LOCK-ERRORCODE RAW-CHANGETYPE -> removed, no longer relevant RAW-ZEROBYTELOCKS -> SMB2-LOCK->ZEROBYTELENGTH RAW-UNLOCK -> SMB2-LOCK-UNLOCK RAW-MULTIPLE_UNLOCK -> SMB2-LOCK-MULTIPLE-UNLOCK RAW-STACKING -> SMB2-LOCK-STACKING BASE-LOCK ported as: BASE-LOCK-LOCK1 -> SMB2-LOCK-ERRORCODE, timeout is no longer relevant BASE-LOCK-LOCK2 -> SMB2-LOCK-CONTEND, SMB2-LOCK-LOCK, SMB2-LOCK-CONTEXT BASE-LOCK-LOCK3 -> SMB2-LOCK-RANGE BASE-LOCK-LOCK4 -> SMB2-LOCK-OVERLAP BASE-LOCK-LOCK5 -> SMB2-LOCK-STACKING BASE-LOCK-LOCK6 -> SMB2-LOCK-CANCEL, change_locktype no longer relevant BASE-LOCK-LOCK7 -> SMB2-LOCK-RW-SHARED, SMB2-LOCK-RW-EXCLUSIVE
2009-11-25s4/libcli: rename previously reserved field in SMB2 LOCK structSteven Danneman2-14/+14
The lock.in.reserved field has been renamed lock_sequence in the SMB 2.1 dialect. See MS-SMB 2.2.26.
2009-11-21s4:torture/smb2/oplock - Remove unneeded "status" redeclarationsMatthias Dieter Wallnöfer1-5/+0
2009-11-21s4:torture/smb2/notify - Rename nested "fname" variable to prevent warningsMatthias Dieter Wallnöfer1-6/+6
2009-11-18SMB2-LOCK: make use of torture_assert_*()Stefan Metzmacher1-12/+6
This is needed in order to mark tests as known failures. metze
2009-11-17s4/torture: Port SMBv1 Change Notify tests to SMBv2Aravind Srinivasan2-42/+1829
* 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
2009-11-17torture/smb2: make SMB2 BRL tests pass against W2K8R2Steven Danneman1-100/+101
The BRL tests previously based their results off several bugs in the W2K8 byte range lock code. I've fixed up the tests to pass against Win7 which has fixed these bugs, and assume that the Win7 behavior is the default. I have inverted the test behavior for >63-bit lock requests. The tests previously expected NT_STATUS_OK as their default in this case. I've changed that default to expect STATUS_INVALID_LOCK_RANGE. This may requires some changing of make test to compensate. I've also removed a few test scenarios from VALID-REQUEST in preparation of replacing them with separate tests ported from RAW-LOCK.
2009-10-20s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell11-18/+0
This reduces compile time somewhat.
2009-10-18s4-torture: fixed the streams tests for Samba4Andrew Tridgell1-17/+17
In some cases we were not doing streams tests on s4 that we should. In others, we were calling tests that are known to fail on s4. Some of those are a bit puzzling.
2009-10-18smb2-torture: samba4 allows SEC_FLAG_SECURITY to be used with privilegesAndrew Tridgell1-0/+2