summaryrefslogtreecommitdiff
path: root/source4/torture
AgeCommit message (Collapse)AuthorFilesLines
2009-12-02s4/torture: Add target functionality parameters to SMBv1 BRL testsSteven Danneman3-7/+42
Abstract the server requirements to pass some BRL tests. * The new default for >64bit lock tests, is that the server should return STATUS_INVALID_LOCK_RANGE. * Add parameter for targets that don't implement DENY_DOS
2009-12-03s4-smbtorture: be very strict in checking spools_EnumPrinterKey results.Günther Deschner2-3/+15
Guenther
2009-12-02samba-spoolss: use spoolss_StringArray2 in spoolss_EnumPrinterKey.Günther Deschner2-32/+6
This should finally resolve the endian issues we were seeing on sparc and is much cleaner for spoolss clients and servers. Guenther
2009-12-01s4 torture: Change oplock to use passthrough for exclusive3/batch11Tim Prouty1-2/+2
In light of the INVALID_LEVEL that is seen for RAW_SFILEINFO_END_OF_FILE_INFO requests on a path, I'm changing these back to using the passthrough RAW_SFILEINFO_END_OF_FILE_INFORMATION to test the oplock break behavior as originally intended
2009-12-01s4 torture: Update RAW-SFILEINFO-END-OF-FILE to test some additional corner ↵Tim Prouty1-19/+104
cases It turns out setting the end-of-file with Trans2SetPathInfo using the snia spec's info level will attempt to open the file, enforcing share modes, but then subsequentlys fail the setpathinfo with a dos error of INVALID_LEVEL. Doing a Trans2SetFileInfo with either end-of-file info level succeeds as expected.
2009-12-01Revert "s4 torture: Allow onefs to be checked like samba3 and samba4"Tim Prouty1-1/+0
This reverts commit 98f595036e196dd61340fef0faf63ca762a25307. No longer necessary
2009-12-01s4 torture: Change RAW-SFILEINFO-END-OF-FILE to check for share modes by defaultTim Prouty1-7/+5
Since the windows behavior appears to be a bug, only check for the windows-style share mode bug if target=<windows variant> is specified
2009-12-01s4 torture: Move target macros to a common header instead of redefining them ↵Tim Prouty3-7/+8
in multiple files
2009-12-01s4:torture/raw/lock - Fix "discard const" warnings by introducing ↵Matthias Dieter Wallnöfer1-3/+6
"discard_const_p"s
2009-12-01s4:torture/nbt/wins - Add more castsMatthias Dieter Wallnöfer1-6/+12
2009-12-01s4:torture/nbench/nbench - Add a cast before "str_list_make_shell"Matthias Dieter Wallnöfer1-2/+3
2009-12-01s4:torture/ldap/ldap_sort - Add some casts to suppress warningsMatthias Dieter Wallnöfer1-7/+7
2009-11-30Fix bug 6546: Avoid accessing buf[-1] if NUL byte comes from fgetsVolker Lendecke1-1/+3
2009-11-27s4-smbtorture: more and stricter tests for printer and data keys in RPC-SPOOLSS.Günther Deschner1-4/+8
Guenther
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: mark s4 as doing valid lock range tests on SMBAndrew Tridgell1-1/+2
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-27s4-drstest: don't use getenv("LDB_URL") in test suitesAndrew Tridgell1-18/+7
I was stumped for a while as to why the drs test suite was failing for me. It turned out that it looked for LDB_URL in the environment, and used it if set. I had it set in my terminal, and it was happily munching on my sam.ldb while testing. Quite a cute bug really :-)
2009-11-27torture: fixed SMB2-LOCK valgrind errorAndrew Tridgell1-1/+2
2009-11-26s4-smbtorture: refactor RPC-SAMR-LARGE-DC test a little more.Günther Deschner1-25/+26
Guenther
2009-11-26s4-smbtorture: add torture_samr_context to carry some RPC-SAMR-X specifics.Günther Deschner1-84/+111
Guenther
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 Danneman3-15/+15
The lock.in.reserved field has been renamed lock_sequence in the SMB 2.1 dialect. See MS-SMB 2.2.26.
2009-11-25s4 torture: Change RAW-OPLOCK to use the documented version of ↵Tim Prouty1-4/+4
SET_END_OF_FILE_INFO The passtrhough version of SET_END_OF_FILE_INFO is tested in RAW-SFILEINFO-END-OF-FILE. Additionally, the first opener is changed to use SHARE_WRITE for the share mode since SET_END_OF_FILE_INFO actually writes data to the file via truncating/extending.
2009-11-25s4 torture: Allow onefs to be checked like samba3 and samba4Tim Prouty1-0/+1
This is needed for the new RAW-SFILEINFO-END-OF-FILE test to differentiate what appears to be a windows bug.
2009-11-25s4 torture: Add two new setfileinfo testsTim Prouty1-0/+191
These tests expose a potential bug in winXP, win7, and likely others. There is also a bug in samba where share modes aren't being enforced where they should. For more details see: http://lists.samba.org/archive/cifs-protocol/2009-November/001130.html
2009-11-25s4 torture: Split up the torture suite setup for RAW-SFILEINFOTim Prouty2-10/+21
A side effect of this change is that RAW-SFILEINFO now runs the whole suite instead of just the first test. I changed the name of the first test to RAW-SFILEINFO-BASE and changed all of the selftest scripts that call it.
2009-11-24RAW-PING-PONG: use timeval_current/timeval_elapsed instead of ↵Stefan Metzmacher1-19/+5
start_timer/end_timer metze
2009-11-23s4/drs(tort): DSSYNC test to print what is different in drs_msg alsoKamen Mazdrashki1-1/+7
2009-11-23s4-smbtorture: fix spoolss_EnumPrinterKey client in RPC-SPOOLSS-WIN.Günther Deschner1-4/+19
Guenther
2009-11-23s4-smbtorture: add tests for spoolss_EnumPrinterKey to RPC-SPOOLSS-PRINTER.Günther Deschner1-0/+81
Guenther
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-21s4:torture/raw/unlink - Remove unused variable and labelMatthias Dieter Wallnöfer1-2/+1
2009-11-21s4:torture/rpc/netlogon - Fix uninitialised variableMatthias Dieter Wallnöfer1-2/+1
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-18s4:torture/test_gentest.sh: make use of the PREFIX argumentStefan Metzmacher1-5/+6
We should not use hardcode pathes! metze
2009-11-17s4/torture: Port SMBv1 Change Notify tests to SMBv2Aravind Srinivasan4-42/+1839
* 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 Danneman3-100/+111
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-11-17s4/drs(tort): Convert DSSYNC test to a test case fixtureKamen Mazdrashki2-24/+68
Now it should be much more clear why and where a test in DSSYNC test case has failed. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-17s4/drs(tort): replace DEBUG with torture_asert/comment/failKamen Mazdrashki1-45/+49
I left dumping of decrypted attributes values 'as is' (using DEBUG and DEBUGADD) as it uses dump_data() function. dump_data() uses DEBUGADD internally, so I have no way to redirect its output to torture_context at this point. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-17s4/drs(tort): use torture_drsuapi_assert_call() macro for error checkingKamen Mazdrashki1-11/+2
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-17s4/drs(tort): replace 'printf' with 'torture_...' callsKamen Mazdrashki1-14/+15
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-17s4/drs(tort): 'DsSyncBindInfo.pipe' renamed - 'pipe' is a system callKamen Mazdrashki1-11/+11
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-17s4/drs(tort): 'DsPrivate.pipe' renamed - 'pipe' is a system callKamen Mazdrashki3-13/+13
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-17s4:dsdb With these workarounds, we now pass the RPC-DSSYNC testAndrew Bartlett1-2/+15
2009-11-17s4:dsdb Load objectGUID and extended DN defaultObjectCategory into the schemaAndrew Bartlett1-1/+1
The load of defaultObjectCategory as an extended DN means we need to use the common parsing functions I just split out, rather than the GET_DS_DN macro. The objectGUIDs are loaded so that we can create the extended DN when we load from LDIF (and are loaded for the other cases for consistency). Also adapt callers to API changes needed for common parsing code Andrew Bartlett
2009-11-13s4-ldb: changed the DN checks for \n to warningsAndrew Tridgell1-3/+5
a \n is sometimes allowed in AD (eg in deleted DNs). Until we know when is really is allowed, treat it as a warning only.
2009-11-12s4:torture Use (some) torture_assert() calls in RPC-DSSYNC testAndrew Bartlett1-5/+4
2009-11-12s4:torture Remove _drs_util_verify_attids() from RPC-DSSYNCAndrew Bartlett1-86/+0
I'm satisfied that the task this test does is already done by the time we map the incoming schema, and process the objects. If we have the OID mapping wrong or incomplete, we will get any errors this test found errors there. (And this dramaticly reduces the test time, so we can now add RPC-DSSYNC to 'make test'). Andrew Bartlett