summaryrefslogtreecommitdiff
path: root/source4/torture/smb2/smb2.c
AgeCommit message (Collapse)AuthorFilesLines
2010-12-11s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij1-10/+10
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
2009-12-07s4 torture: Port RAW-ACLS tests to SMB2Zack Kirsch1-0/+1
- 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-11-17s4/torture: Port SMBv1 Change Notify tests to SMBv2Aravind Srinivasan1-1/+1
* 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-10-20s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell1-1/+0
This reduces compile time somewhat.
2009-10-07s4/torture: Ported SMBv1 RAW-STREAMS tests to SMB2-STREAMSAravind Srinivasan1-0/+1
2009-10-01s4/torture: Ported SMB oplock torture tests to SMB2Steven Danneman1-1/+3
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 Danneman1-1/+0
This test has been wholly replaced by the SMB2-DIR-ONE test found in dir.c.
2009-07-14torture/smb2: Adding SMB2 Directory enumeration torture tests.Aravind1-0/+1
* 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-06-09s4:torture: add SMB2-COMPOUND testStefan Metzmacher1-0/+1
metze
2009-03-28s4:torture/smb2: Add torture tests for leases.Zach Loafman1-0/+1
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-26Reorganize old persistent_handles test into durable_open.c, turn it into a ↵Zach Loafman1-1/+1
suite instead of a solo test (in anticipation of more tests).
2008-10-11Fix include paths to new location of libutil.Jelmer Vernooij1-1/+1
2008-05-28add testing of creating a file with an initial ACL on SMB2Andrew Tridgell1-1/+1
(This used to be commit e957e86a03baa0c0daf3bfe1aaeceb7a08e3c24e)
2008-05-27added a basic SMB2 read test suiteAndrew Tridgell1-0/+1
(This used to be commit 4aeda5c11414a4a7ef44da32be05209cb5caa90c)
2008-05-27the start of a SMB2 create test suiteAndrew Tridgell1-0/+1
(This used to be commit 16787e99f3de7255e315651c095486f90f65f2ca)
2008-04-27Move subunit infrastructure code into lib/torture.Jelmer Vernooij1-1/+1
(This used to be commit 5b44d8121de7735d69e6238a1442aff034a8ebd3)
2008-04-19torture/smb2: add a simple SMB2-OPLOCK-BATCH1 testStefan Metzmacher1-0/+1
metze (This used to be commit 914f0ac83bc396be0ca34c43e2ea01ecc1c3b826)
2008-04-17torture/smb2: add SMB2-PERSISTENT-HANDLES1 testStefan Metzmacher1-0/+1
This demonstrates that the file seek position is still available on reconnected persistent handles. metze (This used to be commit 30e04ae3a02596de03d06874ff5dfc0ddc3bf902)
2008-04-17torture/smb2: add torture_suite_add_2smb2_test() helper functionStefan Metzmacher1-0/+55
metze (This used to be commit d70afbb0673184ed067e5f1c7608536025a3cca7)
2008-04-17torture/smb2: fix whitespacesStefan Metzmacher1-3/+3
metze (This used to be commit 66c0f331a231ea8897bd8f83658c86b1d2c85d62)
2008-04-02Install public header files again and include required prototypes.Jelmer Vernooij1-1/+1
(This used to be commit 47ffbbf67435904754469544390b67d34c958343)
2007-10-10r23792: convert Samba4 to GPLv3Andrew Tridgell1-3/+2
There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
2007-10-10r22824: - add a simple test which shows how a lock rejectsStefan Metzmacher1-6/+48
a write on a different file handle. SMB2-LOCK-BLOCK-WRITE - make it possible to run each SMB2-LOCK-* test on its own metze (This used to be commit 9c02f690bc07ebf99cb272e255a24d7061d8e730)
2007-10-10r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grainedJelmer Vernooij1-12/+18
output in the testsuite rather than just True or False for a set of tests. The aim is to use this for: * known failure lists (run all tests and detect tests that started working or started failing). This would allow us to get rid of the RPC-SAMBA3-* tests * nicer torture output * simplification of the testsuite system * compatibility with other unit testing systems * easier usage of smbtorture (being able to run one test and automatically set up the environment for that) This is still a work-in-progress; expect more updates over the next couple of days. (This used to be commit 0eb6097305776325c75081356309115f445a7218)
2007-10-10r18808: added SMB2-MAXWRITE test and SMB2-DIR testsAndrew Tridgell1-0/+2
expanded size of dangerous level for write in SMB2-CONNECT test (This used to be commit 355c6e78a91f4e934479829e722f873ca7e66baf)
2007-10-10r16976: add a very simple SMB2-NOTIFY testStefan Metzmacher1-0/+1
metze (This used to be commit 9dfbb0d15e2a5b9cd90643eebedca7b830fc6e10)
2007-10-10r16405: fix compiler warning of missing smb2_handleStefan Metzmacher1-1/+3
metze (This used to be commit 73194e9ec3d1c18e7042bdaa008c7fd503e6e534)
2007-10-10r16333: Move more code out of the core smbtorture. It now no longerJelmer Vernooij1-0/+39
contains protocol-specific code. (This used to be commit 819d3b457648ffb7526a770e842badc17b6061fb)