Tim Prouty
57be1d07af
s4 torture: Add RAW-OPEN-NTCREATEDIR to test error checking for open directories as files
2010-01-07 15:32:27 -08:00
Steven Danneman
71a40d7e2c
s4/torture: fix small bug in lock test
...
Cleanup path should unlock, not cancel existing locked range.
2010-01-06 18:48:10 -08:00
Steven Danneman
655bdb19bd
s4/torture: add more lock cancellation tests
...
* Test the SMB1 behavior when multiple lock ranges are requested, pend,
and then are cancelled. The entire LockingAndX request fails.
2010-01-06 18:48:10 -08:00
Günther Deschner
3dbe8603d9
s4-smbtorture: add test_ChangeID to RPC-SPOOLSS.
...
This tests ChangeID consistency between spoolss_GetPrinterData,
spoolss_GetPrinterDataEx and spoolss_GetPrinter (level 0).
Guenther
2010-01-06 22:09:37 +01:00
Günther Deschner
7568f49134
s4-smbtorture: add test_SetPrinter to RPC-SPOOLSS.
...
Guenther
2010-01-06 22:09:36 +01:00
Günther Deschner
0457cf915b
s4-smbtorture: refactor test_GetPrinter in RPC-SPOOLSS.
...
Guenther
2010-01-06 22:09:36 +01:00
Kamen Mazdrashki
33699bb1be
s4-libnet: Simple test for net.SetPassword() python binding
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-12-25 14:15:53 +01:00
Tim Prouty
fd5350de1f
s4 torture: Add RAW-OPLOCK-EXCLUSIVE7 which is similar to BATCH19
2009-12-21 17:27:37 -08:00
Tim Prouty
43a8b49f83
s4 torture: Update raw oplock to use win7 as the baseline for rename oplock break behavior
2009-12-21 17:27:36 -08:00
Tim Prouty
c33988c040
s4 torture: Be more permissive with share modes for oplock testing
...
Share modes are tested elsewhere, and there is currently an outstanding
issue about share mode contention for nt-passthrough levels:
http://lists.samba.org/archive/cifs-protocol/2009-December/001227.html
2009-12-21 17:27:36 -08:00
Tim Prouty
fd0c3a2264
s4 torture: Do a better job of closing open files in RAW-OPLOCK.
2009-12-21 17:27:36 -08:00
Andrew Tridgell
ec7dc6a619
s4-torture: update uuid_compare test for new behaviour
2009-12-21 23:45:22 +11:00
Kamen Mazdrashki
911cefd48b
s4-tort: Test handling of different ATTID values in prefixMap interface.
...
It turns out ATTID values are separated in ranges.
Ref: MS-ADTS, 3.1.1.2.6 ATTRTYP
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-21 23:45:12 +11:00
Kamen Mazdrashki
03a1451bbc
s4-drstest: Don't remove temp LDB so it can be reviewed if necessary
...
This test makes temp directory which is not removed
so why not just leave LDB also.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-21 23:43:17 +11:00
Andrew Tridgell
87f28cc267
s4-torture: another unsigned comparison bug
2009-12-21 23:41:08 +11:00
Zachary Loafman
daa561d75b
s4 torture: Add test to show archive bit behavior with directories
...
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-18 10:52:45 -08:00
Tim Prouty
9b869230a7
s4 torture: Fix RAW-STREAMS-DELETE to pass against samba3
2009-12-18 10:52:45 -08:00
Tim Prouty
cfbf62dbfd
s4 torture: RAW-STREAMS-NAMES Make sure the create time of the streams are different from the base file
2009-12-17 18:13:54 -08:00
Tim Prouty
c3582f923e
s4 torture: Add RAW-STREAMS-RENAME3 to show error when trying to overwrite a stream with an open handle
...
A normal file overwrite in this case would return NT_STATUS_ACCESS_DENIED,
but if a stream is the target NT_STATUS_INVALID_PARAMETER is returned.
2009-12-17 18:13:48 -08:00
Tim Prouty
f8bb5a60e7
s4 torture: Parameterize streams delete behavior rather than commenting out the check.
2009-12-17 17:58:35 -08:00
Tim Prouty
f02206d933
s4 torture: RAW-STREAMS-CREATEDISP Use a normal deny mode
2009-12-17 17:58:35 -08:00
Tim Prouty
5c13a90abe
s4 torture: close handle instead of using exit
2009-12-17 17:58:34 -08:00
Günther Deschner
dc4c411242
s4-smbtorture: skip GetAliasMembership against s4.
...
It returns NT_STATUS_INTERNAL_DB_CORRUPTION for unknown sids and I could not
figure out why.
Guenther
2009-12-17 18:05:36 +01:00
Günther Deschner
619ad0c6ec
s4-smbtorture: add a samr_GetAliasMembership test to RPC-SAMR.
...
Guenther
2009-12-17 15:40:42 +01:00
Günther Deschner
a9689bb755
s4-smbtorture: fix smbtorture after setprinter IDL fixes.
...
Guenther
2009-12-17 10:43:32 +01:00
Günther Deschner
308b50a7bb
s4-smbtorture: run GetPrinterDriver2 tests against each printer's driver.
...
Guenther
2009-12-16 01:13:43 +01:00
Volker Lendecke
4a19adadcc
smbtorture4: Add rpc-samba3-getaliasmembership-0
2009-12-15 12:28:16 -08:00
Aravind Srinivasan
b85f6f63e6
s4 torture: Add new RAW-SEARCH test to explore strange max count behavior
...
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-15 09:51:36 -08:00
Aravind Srinivasan
8ba02d9ed9
s4 torture: Update RAW-QFILEINFO to only test info levels that are supported by the server
...
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-15 09:40:05 -08:00
Zach Loafman
5930f770d2
s4 torture: Convert RAW-OPEN to suite form
2009-12-15 09:13:24 -08:00
Tim Prouty
d732fb43a6
s4 torture: Add SHARE_DELETE to create_directory_handle
...
Tests explicitly checking share modes should open the dir/file
with the share mode they want to test.
2009-12-15 09:13:24 -08:00
Matthieu Patou
155bdea7b2
torture: add new tests for dfsblobs
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-12-14 10:58:32 +01:00
Günther Deschner
801fbd0569
s4-smbtorture: check whether a returned buffer size is a multiple of 4 in RPC-SPOOLSS.
...
This gives a good indication where our IDL (and the s3 spoolss implementation) is still wrong.
Guenther
2009-12-14 10:37:41 +01:00
Günther Deschner
dc71d1c29d
s4-smbtorture: add more spoolss_EnumPrinterKey tests for local NDR test.
...
Guenther
2009-12-10 22:49:15 +01:00
Günther Deschner
ce33967f4a
s4-smbtorture: fix and extend enum printerkey test.
...
Guenther
2009-12-10 17:48:50 +01:00
Günther Deschner
d2f13dd688
s4-smbtorture: enhance spoolss_EnumPrinterKey torture test.
...
This demonstrates that s3 still does not have that call implemented correctly.
Guenther
2009-12-09 15:34:45 +01:00
Stefan Metzmacher
d3d2e3988f
RAW-STREAMS: convert failing tests to torture api
...
This is needed as we want to mark failing tests as
known failures.
metze
2009-12-08 13:50:15 +01:00
Günther Deschner
5e8e5dfe88
s4-smbtorture: make level 8 the reference for PrinterDriverEnum test.
...
Guenther
2009-12-08 11:51:09 +01:00
Günther Deschner
35c067782b
s4-smbtorture: fill in COMPARE_STRING_ARRAY macro in spoolss driver test.
...
Guenther
2009-12-08 10:37:13 +01:00
Tim Prouty
1bf825b6f8
s4 torture: Cleanup RAW-ACLS a bit
...
Don't check SEC_DESC_DACL_AUTO_INHERITED right now
Disable RAW-ACLS-INHERITFLAGS for the short term
Update samba4's knownfail accordingly
2009-12-07 17:59:28 -08:00
Tim Prouty
f717a79eff
s4 torture: Add a new torture:hide_on_access_denied parameter
...
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-07 16:54:17 -08:00
Tim Prouty
f4aa47b5ab
s4 torture: win 7 doesn't like the sequential_only flag for directories
...
Remove it for now
2009-12-07 16:54:16 -08:00
Zack Kirsch
d252d23ff1
s4 torture: Port RAW-ACLS tests to SMB2
...
- 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-07 16:54:16 -08:00
Zack Kirsch
8ceb428c55
s4 torure: Add SMB2 utility functions
...
- 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-07 16:54:16 -08:00
Zack Kirsch
1724273ab9
s4 torture: RAW-ACL Improvements
...
- Change RAW-ACLS test suite so each test can be run individually.
- Add verify_sd() and verify_attrib() helper functions.
- Change test_nttrans_create() to work for both files and directories.
- Fix a segfault in test_inheritance() when the test errors out early.
- test_sd_get_set() does not pass against XP or Vista, so it is no longer added
to the RAW-ACLS test suite.
- Minor fixes to test_inheritance().
- New INHERITFLAGS test, which tests the auto inheritance flags a bit more.
- printf -> torture_comment / torture_warning / torture_result
2009-12-07 16:54:16 -08:00
Tim Prouty
919440a2aa
s4 torture: Convert RAW-STREAMS to a set of test suites rather than a monolithic test
2009-12-07 16:52:16 -08:00
Tim Prouty
6bc8a2bf0a
s4 torture: Update RAW-RENAME to pass against win7
2009-12-07 16:52:15 -08:00
Tim Prouty
cd72301efa
s4 torture: Add a new RAW-STREAMS test to simulate the summary tab
2009-12-07 16:52:15 -08:00
Tim Prouty
5d66d43667
s4 torture: Fix the streams create disposition tests to actually return an error on failure
2009-12-07 16:52:15 -08:00
Steven Danneman
47f5aac39d
s4/torture: add test for zero byte read contention with byte range locks
2009-12-07 16:10:25 -08:00