summaryrefslogtreecommitdiff
path: root/source4/torture/smb2
AgeCommit message (Collapse)AuthorFilesLines
2009-10-09s4/torture: fix build break "implicit declaration of function 'isprint'"Steven Danneman1-0/+1
2009-10-07s4/torture: Ported SMBv1 RAW-OPEN tests to SMB2-CREATEAravind Srinivasan1-1/+573
Four tests were ported from raw/open.c One new tests added LEADING-SLASH, which tests that a server provides the proper error when a relative path is given to a CREATE PDU with a leading "/".
2009-10-07s4/torture: convert all printf to torture_commentsAravind Srinivasan1-20/+32
2009-10-07s4/torture: Ported SMBv1 RAW-STREAMS tests to SMB2-STREAMSAravind Srinivasan3-1/+1770
2009-10-02s4: fix various warnings (not "const" related ones)Matthias Dieter Wallnöfer2-7/+3
2009-10-01s4/torture: second try on renaming oplocks.c to oplock.cSteven Danneman1-0/+3617
Forgot to "git add" the new file in commit b2bcfaae
2009-10-01s4/torture: rename oplocks.c to oplock.c to match SMB1 file layoutSteven Danneman2-3618/+1
2009-10-01s4/torture: Ported SMB oplock torture tests to SMB2Steven Danneman2-68/+3510
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.
2009-09-08s4/torture/smb2: removed SMB2-FIND testSteven Danneman3-222/+0
This test has been wholly replaced by the SMB2-DIR-ONE test found in dir.c.
2009-09-08s4/torture/smb2: Fix several small bugs and style issues in SMB2 dir testsSteven Danneman1-136/+152
* removed all uses of printf, replaced with torture_comment * replaced custom CHECK macros with new torture_assert_*_todo() helpers * switched string dir name generation to generate_unique_strs() helper, to avoid non-deterministic test behavior where generate_rand_str() would cause file colissions in the same directory.
2009-09-08s4: 'index' is a libc functionAndrew Tridgell1-2/+2
2009-07-15torture/smb2: add missing new line to the new SMB2-DIR.FILE-INDEX testStefan Metzmacher1-1/+1
Without this the subunit formated output would be invalid and make test reports: "UNEXPECTED(error): samba4.smb2.dir (dc).FILE-INDEX" metze
2009-07-15SMB2-GETINFO: test SMB2_ALL_EASStefan Metzmacher1-2/+2
metze
2009-07-15SMB2-CONNECT: unlink the test file at startupStefan Metzmacher1-0/+2
This is needed to get reproducable results... metze
2009-07-15torture/smb2: fix crash bugs in the new SMB2-DIR testsStefan Metzmacher1-2/+2
metze
2009-07-14torture/smb2: Adding SMB2 Directory enumeration torture tests.Aravind3-26/+1265
* 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.
2009-07-06SMB2-NOTIFY: windows7 uses a different maximum buffer sizeStefan Metzmacher1-12/+21
metze
2009-06-09SMB2-COMPOUND: add some tests for invalid requestsStefan Metzmacher1-0/+201
TODO: check why the INVALID1 tests fails with --signing=required. metze
2009-06-09s4:torture: add SMB2-COMPOUND testStefan Metzmacher3-1/+245
metze
2009-06-03SMB2-CONNECT: make it possible to specific the max write size via ↵Stefan Metzmacher1-1/+1
--option=torture:smb2maxwrite=12345 metze
2009-05-20SMB2-LOCK: let the test pass against samba4Stefan Metzmacher1-1/+7
metze
2009-04-01s/NT_STATUS_WIN7_INVALID_RANGE/NT_STATUS_INVALID_LOCK_RANGE/gZach Loafman1-5/+5
2009-04-01s4:torture/smb2: Add torture tests for lease breaks, durable opens.Zach Loafman2-136/+988
2009-03-28s4:torture/smb2: Add torture tests for leases.Zach Loafman3-0/+298
2009-03-27s4:torture/smb2: fix compiler warnings and bugsStefan Metzmacher1-1/+3
metze
2009-03-27s4:torture/smb2: fix the buildStefan Metzmacher1-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
2009-03-26Add durable open / oplock interaction test. Rather than give it a chance to ↵Zach Loafman1-3/+109
disconnect, Win7 will break a batch oplock immediately on contention.
2009-03-26Reorganize old persistent_handles test into durable_open.c, turn it into a ↵Zach Loafman3-9/+20
suite instead of a solo test (in anticipation of more tests).
2009-03-17s4 torture: Win7 has a slightly different allowed access maskZach Loafman1-1/+7
Still investigating.
2009-03-17s4 torture: Add a string version for NT_STATUS_WIN7_INVALID_RANGEZach Loafman1-10/+29
Also submitted a request to cifs-protocol for a real name for this thing. Use win7 target logic in smb2 lock test, SMB2-LOCK now passes against Win7.
2008-12-22Fix missing symbols issues when building with shared libraries.Jelmer Vernooij1-0/+1
2008-11-16s4:torture: fix the build with auto dependenciesStefan Metzmacher1-1/+1
metze
2008-11-02Remove use of global_loadparm for SMB2 client connections.Jelmer Vernooij2-3/+6
2008-11-02Fix the build.Jelmer Vernooij2-11/+15
2008-11-01Remove another use of global_loadparm.Jelmer Vernooij2-2/+6
2008-10-24Remove unused include param/param.h.Jelmer Vernooij5-6/+0
2008-10-11Fix include paths to new location of libutil.Jelmer Vernooij1-1/+1
2008-09-24check error code for zero desired_access in SMB2 createAndrew Tridgell1-0/+7
2008-08-14SMB2-CREATE: add a special test for FILE_ATTRIBUTE_ENCRYPTEDStefan Metzmacher1-2/+21
Some standalone server (and samba4) doesn't support this. metze (This used to be commit 6d8fd4c0089d7e632ec91027a77321aca8c6acc7)
2008-08-14SMB2-CREATE: be more strict in checking file attributesStefan Metzmacher1-12/+20
metze (This used to be commit ba9d0f6b3c60346df757e7c4c3f5704c0bf26d11)
2008-08-14SMB2-CREATE: be more strict in error checkingStefan Metzmacher1-1/+11
metze (This used to be commit d7d4df78c1de19d0cd7a63daaa2fa0863a243a12)
2008-08-14expanded the SMB2-CREATE and RAW-OPEN tests to explore more of how theAndrew Tridgell1-8/+32
create options fields are supposed to work (This used to be commit 0576875eccaa21ad529c9db41db91781ad400d0f)
2008-07-28SMB2-CONNECT: remove reference to req->session before calling ↵Stefan Metzmacher1-1/+10
smb2_logoff_recv() on the invalid session metze (This used to be commit 93203e8e318dd10b9e7096e586187eb271d42134)
2008-06-04another SMB2-LOCK fix now that we know that the UNLOCK flag is onlyAndrew Tridgell1-5/+1
honoured on the first lock in a set (This used to be commit c014ffabc65c30a6b83c8f9f9f9a80bb79333f59)
2008-06-04fixed SMB2-LOCK test for new semantics (from docs)Andrew Tridgell1-5/+1
(This used to be commit d4d4d62939e325f8529b11fcd2d490e8f63293b0)
2008-05-31check for requested buffer size in getinfo callAndrew Tridgell1-0/+35
(This used to be commit ed8f16379d01d3dffd2645e2b275aa27507dfec9)
2008-05-31more useful output in scanAndrew Tridgell1-10/+7
(This used to be commit 70569a78cf3443ce5c0b0a28dcd17a3031d8aa55)
2008-05-30implemented client side SMB2 signingAndrew Tridgell3-6/+11
This doessn't work against Windows yet, and I've submitted a WSPP request for clarification of the docs to try and find out why. Meanwhile this is no worse than what we had, as it only gets used when the server demands signing, and we didn't work then anyway. (This used to be commit b788096add3586d7277efcd3bf5ca7f3a604cb7a)
2008-05-30don't emulate broken SMB2 locking behaviour from windowsAndrew Tridgell1-4/+66
(This used to be commit c50e7a15f9a7f2c5821b5ee468f9ade6eaa0ed55)
2008-05-29check maximal_access here tooAndrew Tridgell1-0/+1
(This used to be commit 8159b1598e21daee730e185d025694e27df18d1b)