Volker Lendecke
d7515b6a88
torture: Reproducer for 64c0367
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-08-10 14:38:47 -07:00
Stefan Metzmacher
e9562530d9
s4:torture: send the TCONX_FLAG_EXTENDED_RESPONSE flag
...
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Aug 2 10:54:18 CEST 2012 on sn-devel-104
2012-08-02 10:54:18 +02:00
Stefan Metzmacher
9c44f40b8d
s4:torture/raw: add raw.session.expire1
...
This demonstrates the interaction of CAP_DYNAMIC_REAUTH
and NT_STATUS_NETWORK_SESSION_EXPIRED.
metze
2012-06-22 12:56:48 +02:00
Michael Adam
7dd22bdb47
s4:torture: fix use of non-existent word (existant)
2012-06-12 07:21:45 +02:00
Volker Lendecke
5c219a1c5c
s4:torture: Add raw.session.reauth2 test
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri May 18 18:25:42 CEST 2012 on sn-devel-104
2012-05-18 18:25:42 +02:00
Stefan Metzmacher
61e023bbf6
s4:torture: rename raw.session.reauth => raw.session.reauth1
...
metze
2012-05-18 16:36:16 +02:00
Andrew Bartlett
45082a88c7
s4-torture: Improve torture test boilerplate, use torture_assert()
...
This ensures that if this fails, it is reported as a subunit error correctly.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri May 18 09:35:13 CEST 2012 on sn-devel-104
2012-05-18 09:35:13 +02:00
Stefan Metzmacher
865e9c4560
s4:torture/raw/context: test a session setup with a given invalid vuid
...
On a session setup with EXTENDED_SECURITY we'll get ERRSRV:ERRbaduid,
while a session setup without EXTENDED_SECURITY ignores the given vuid.
Before this test was doing a reauth of a given vuid, which works for newer
Windows versions, but Windows 2000 gives INVALID_PARAMETER.
metze
2012-05-09 01:02:16 +02:00
Stefan Metzmacher
5d4d8fefe2
s4:torture/raw/context: add subtests as torture testcases
...
TODO: add test_session with 'use spnego = false'.
We need a way to do set an option just for one test case.
Note: the 'use spnego = false' was ignored before as it's
only used on the first session setup on a connection.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue May 8 04:50:39 CEST 2012 on sn-devel-104
2012-05-08 04:50:39 +02:00
Stefan Metzmacher
dd804dd8ca
s4:torture/raw/context: INVALID_PARAMETER vs. LOGON_FAILURE...
...
If the try a session setup without EXTENDED_SECURITY after
one with EXTENDED_SECURITY Windows 2008 R2 returns INVALID_PARAMETER,
while Windows 2000 sp4 returns LOGON_FAILURE...
metze
2012-05-08 02:57:07 +02:00
Stefan Metzmacher
7c0c1fabd0
s4:torture/raw: make torture_raw_context a test suite
...
metze
2012-05-08 02:57:07 +02:00
Stefan Metzmacher
05bed62371
s4:torture/raw/context: make use of torture_* macros and avoid 'printf'
...
metze
2012-05-08 02:57:07 +02:00
Stefan Metzmacher
27efeabab4
s4:torture/raw/context: pass tctx to test_pid_exit_only_sees_open()
...
metze
2012-05-08 02:57:07 +02:00
Stefan Metzmacher
c68cba36aa
s4:torture/raw/session: make sure we got a reauth of the existing session
...
metze
2012-05-08 00:50:55 +02:00
Volker Lendecke
eb6e22bcab
s4:torture: add a check for talloc success in test_session_reauth
...
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Fri May 4 16:50:59 CEST 2012 on sn-devel-104
2012-05-04 16:50:58 +02:00
Andrew Bartlett
645e4bb436
s4-torture: convert samba3misc tests to use torture_failure and torture_assert
...
This helps us when these tests fail, as subunit-formatted failures can
be declared as knownfail entries, and show up correctly in the make
test output.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Apr 30 08:34:52 CEST 2012 on sn-devel-104
2012-04-30 08:34:51 +02:00
Andrew Bartlett
6b982c365c
s4-torture: move samba3 tests to use torture helper functions
2012-04-30 07:00:05 +02:00
Andrew Bartlett
7e9ed05277
s4-torture: Move various samba3 tests to the torture_suite_add_1smb_test wrapper
2012-04-30 07:00:05 +02:00
Andrew Bartlett
ed9f903b12
s4-torture: never return false in the raw.composite torture test
...
We must use torture_assert() macros to ensure that the failure is
recorded in the subunit stream correctly, rather than being returned
as an unknown 'error'. (We cannot handle error results as knownfail).
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Apr 26 04:00:16 CEST 2012 on sn-devel-104
2012-04-26 04:00:16 +02:00
Gregor Beck
e563e5a2be
s4:torture: add a raw.session suite with a raw.session.reauth test
...
Signed-off-by: Michael Adam <obnox@samba.org>
2012-04-25 23:15:40 +02:00
Andrew Bartlett
e346bba1fc
s4-torture: enable raw.composite test again, and convert to new style test
...
This test has been skipped for some time, but is an important test for parallel operation.
Andrew Bartlett
2012-04-25 17:43:23 +10:00
Jeremy Allison
916297e045
Fix samba3.raw.samba3hide test - ensure we set up POSIX capabilities
...
before doing POSIX calls like chmod.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Apr 18 23:14:40 CEST 2012 on sn-devel-104
2012-04-18 23:14:40 +02:00
Volker Lendecke
b0aaa49e3f
s4-torture: Fix the raw.notify mask test
...
When we do the notify triggers via a different client connection, adding the
notify record becomes subject to a race. Add a dummy operation after the
initial changenotify request was sent to make sure the notify record actually
arrived.
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Wed Apr 18 19:47:53 CEST 2012 on sn-devel-104
2012-04-18 19:47:53 +02:00
Volker Lendecke
03291270a6
s4-torture: Use 2 client connections for raw.notify.mask
...
This makes the test more interesting in a cluster
2012-04-18 18:16:28 +02:00
Volker Lendecke
5607f91796
s4-torture: Use 2 client connections for raw.notify.tree
...
This makes the test more interesting in a cluster
2012-04-18 18:16:27 +02:00
Volker Lendecke
1bb7d25176
s4-torture: Use 2 client connections for raw.notify.recursive
...
This makes the test more interesting in a cluster
2012-04-18 18:16:27 +02:00
Volker Lendecke
26b9ab2780
s4-torture: notify all is empty now
...
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Wed Apr 18 15:16:13 CEST 2012 on sn-devel-104
2012-04-18 15:16:12 +02:00
Volker Lendecke
bd3ceb8792
s4-torture: Separate out the notify alignment subtest
2012-04-18 13:42:14 +02:00
Volker Lendecke
6b445cdfc6
s4-torture: Separate out the notify basedir subtest
2012-04-18 13:42:14 +02:00
Volker Lendecke
98f8f4236c
s4-torture: Separate out the notify overflow subtest
2012-04-18 13:42:14 +02:00
Volker Lendecke
a7cff2b72e
s4-torture: Separate out the notify tree subtest
2012-04-18 13:42:14 +02:00
Volker Lendecke
d1a898a76b
s4-torture: Separate out the notify double subtest
2012-04-18 13:42:14 +02:00
Volker Lendecke
c180cd0468
s4-torture: Separate out the notify tcp_dis subtest
2012-04-18 13:42:14 +02:00
Volker Lendecke
e5181d0460
s4-torture: Separate out the notify ulogoff subtest
2012-04-18 13:42:13 +02:00
Volker Lendecke
07def3221e
s4-torture: Separate out the notify exit subtest
2012-04-18 13:42:13 +02:00
Volker Lendecke
f864b93b31
s4-torture: Separate out the notify tdis subtest
2012-04-18 13:42:13 +02:00
Volker Lendecke
b570668f55
s4-torture: Separate out the notify file subtest
2012-04-18 13:42:13 +02:00
Volker Lendecke
6f6192b998
s4-torture: Separate out the notify mask_change subtest
2012-04-18 13:42:13 +02:00
Volker Lendecke
5429593eed
s4-torture: Separate out the notify recursive subtest
2012-04-18 13:42:13 +02:00
Volker Lendecke
87e2a549e9
s4-torture: Separate out the notify mask subtest
2012-04-18 13:42:13 +02:00
Volker Lendecke
74f134df72
s4-torture: Separate out the notify dir subtest
2012-04-18 13:42:13 +02:00
Volker Lendecke
13666857f2
s4-torture: Separate out the notify tcon subtest
2012-04-18 13:42:12 +02:00
Volker Lendecke
8e41c2f81c
s4-torture: Make notify a suite
2012-04-18 13:42:12 +02:00
Stefan Metzmacher
4afbda221c
s4:libcli/raw: implement on top of smbXcli_conn/req
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Nov 30 15:13:36 CET 2011 on sn-devel-104
2011-11-30 15:13:36 +01:00
Stefan Metzmacher
511dc9358d
s4:torture: use tctx->ev as event context for polling
...
metze
2011-11-29 16:00:08 +01:00
Jeremy Allison
3e6e1aed94
Fix a bunch of "warning: variable ‘XXXX’ set but not used [-Wunused-but-set-variable]" warnings from the new gcc.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Nov 21 23:39:08 CET 2011 on sn-devel-104
2011-11-21 23:39:08 +01:00
David Disseldorp
281fc93c6b
libcli: move ioctl function field defs to smb_constants
...
Currently there are a lot of duplicate ioctl function field definitions
between source3 and source4.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-10-19 15:44:29 +02:00
Simo Sorce
b120c5f288
torture: use tevent_ functions names instead of the legacy event_ ones
2011-08-13 09:54:15 -04:00
Gregor Beck
de10847973
s4:torture: fix SEGFAULT in raw.acl.dynamic
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-30 17:42:27 +02:00
Matthias Dieter Wallnöfer
5c4fabb08e
s4:torture - always cast correctly when using the "%x" format string argument
...
Signed-off-by: Metze
2011-05-21 16:21:12 +02:00
Jeremy Allison
1c714850d5
Clean up some const and other compiler warnings.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu May 5 00:59:40 CEST 2011 on sn-devel-104
2011-05-05 00:59:40 +02:00
Jelmer Vernooij
6dfd88ab0a
source4/torture/raw: Fix prototypes for all functions.
2011-03-19 03:20:04 +01:00
Günther Deschner
40398acf75
s4-smbtorture: use torture_assert_ and comment functions in raw.eas test.
...
Guenther
2011-03-18 01:24:06 +01:00
Günther Deschner
4a48c9d4ac
s4-smbtorture: use torture_context in raw.eas test.
...
Guenther
2011-03-18 01:24:06 +01:00
Günther Deschner
ac851935e2
s4-smbtorture: remove trailing whitespace from raw.eas test.
...
Guenther
2011-03-18 01:24:06 +01:00
Günther Deschner
717beda638
s4-smbtorture: more torture_fail usage in raw.write test.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Mar 17 13:10:14 CET 2011 on sn-devel-104
2011-03-17 13:10:14 +01:00
Günther Deschner
8775aee036
s4-smbtorture: use torture_fail and _skip in raw.write test.
...
Guenther
2011-03-16 14:52:51 +01:00
Günther Deschner
1b055fa6c6
s4-smbtorture: remove duplicate if branch in raw.write test.
...
Guenther
2011-03-16 14:51:30 +01:00
Günther Deschner
227c00d8bd
s4-smbtorture: use torture_fail/-assert api in torture_samba3_hide().
...
Guenther
2011-03-16 14:04:09 +01:00
Günther Deschner
fb45c88904
s4-smbtorture: use torture_comment() instead of printf in raw.write test.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Feb 21 15:26:38 CET 2011 on sn-devel-104
2011-02-21 15:26:38 +01:00
Günther Deschner
138533da3c
s4-smbtorture: fix some indent in raw.write test.
...
Guenther
2011-02-21 14:42:22 +01:00
Günther Deschner
e1f4f0b605
s4-smbtorture: fix trailing whitespace in raw.write test.
...
Guenther
2011-02-21 14:42:22 +01:00
Pavel Shilovsky
f453235ce0
smbtorture4 test for bug #7928 - Samba problems with kernel oplocks option set to "no"
2011-01-31 12:03:17 -08:00
Jelmer Vernooij
35fbc7bbda
s4-smbtorture: Make test names lowercase and dot-separated.
...
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-12-11 04:16:13 +01:00
Matthias Dieter Wallnöfer
54a5c398aa
s4:torture - prefer the termination "return"s at the end of two unittests
...
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Mon Nov 29 23:29:23 CET 2010 on sn-devel-104
2010-11-29 23:29:23 +01:00
Matthias Dieter Wallnöfer
87b887f48f
s4:torture - remove unreachable statements to quiet warnings of Solaris "cc"
2010-11-29 14:48:12 +01:00
Matthias Dieter Wallnöfer
2a25f7515a
s4:torture - suppress printf "%llu" on uint64_t variables warnings
...
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-11-01 11:31:33 +01:00
James Peach
c8000c94a5
smbtorture: Fix typo in status message.
2010-10-20 10:07:33 -07:00
Björn Jacke
2b254c814b
s3/s4: merge msleep and smb_msleep
...
the merged variant is renamed to smb_msleep as some platforms already have a
msleep function.
2010-09-16 21:38:20 +02:00
Andrew Bartlett
a394a8104e
torture/raw Allow one more 'not implemented' status return as a valid response
...
The Samba4 server responds to most ioctl calls with NT_STATUS_NOT_SUPPORTED
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-16 21:09:17 +10:00
Günther Deschner
fe59119e06
s4-smbtorture: try FSCTL_FIND_FILES_BY_SID with random blob data in RAW-IOCTL.
...
Guenther
2010-09-16 00:18:09 +02:00
Björn Jacke
19a3633e6e
s4/torture: use time_mono for deltas in lock test
2010-09-10 11:59:17 +02:00
Matthias Dieter Wallnöfer
a133d83607
s4:torture/raw/notify.c - freeable stuff shouldn't be "const"
2010-08-27 19:11:44 +02:00
James Peach
effc61cb78
smbtorture: Make SAMBA3CASEINSENSITIVE report failures properly.
2010-08-17 20:19:35 -07:00
James Peach
44de839dab
smbtorture: Don't crash RAW-QFILEINFO if there's no alternate name.
2010-08-11 11:11:28 -07:00
Andrew Tridgell
6b266b85cf
s4-loadparm: 2nd half of lp_ to lpcfg_ conversion
...
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-07-16 18:24:27 +10:00
Steven Danneman
85504ae6ff
s4:libcli: Modify S4 client library to check for proper CN alignment
...
MS-CIFS 2.2.7.4.2 states that FILE_NOTIFY_INFORMATION structures in
change notify replies must be aligned to 4-byte boundaries.
This updates s4 client to check for this restriction and also adds a
torture test which should tickle a server into giving unaligned
structures if it doesn't follow the spec.
2010-07-06 13:28:02 -07:00
Aravind Srinivasan
7e49a58ab9
s4 torture: Warn on NOT_IMPLEMENTED in addition to NOT_SUPPORTED for RAW-QFILEINFO
...
Signed-off-by: Tim Prouty <tprouty@samba.org>
2010-06-24 08:22:25 -07:00
Aravind Srinivasan
c668b21cd6
s4 torture: RAW-SFILEINFO display warning instead of error on unsupported info level
...
Also add a test to make sure setting the directory attribute is
disallowed.
Signed-off-by: Tim Prouty <tprouty@samba.org>
2010-06-21 17:08:41 -07:00
Aravind Srinivasan
6da487580e
s4 torture: RAW-SEARCH: break out some of the old search levels
...
* Added two new parameters: raw_search_search and raw_ea_size which
can be enabled/disabled based on whether the server supports
RAW_SEARCH_SEARCH and/or RAW_SEARCH_EA_SIZE levels
* Skip unsupported levels from the server and give a warning rather
than failing.
Signed-off-by: Tim Prouty <tprouty@samba.org>
2010-06-15 13:48:15 -07:00
Tim Prouty
2170a59215
s4 torture: RAW-SEARCH: Only test supported info levels
2010-06-15 13:48:15 -07:00
Zachary Loafman
2977c659ea
s4 torture: RAW-WRITE should check lockread_supported
...
Signed-off-by: Tim Prouty <tprouty@samba.org>
2010-06-14 17:13:44 -07:00
Matthias Dieter Wallnöfer
bd3e70c1be
s4:torture/raw/open.c - remove unused variables and fix error handling
2010-05-21 23:35:58 +02:00
Jelmer Vernooij
b8268cf7b0
s3: Remove use of iconv_convenience.
2010-05-18 11:45:31 +02:00
Jelmer Vernooij
f9ca9e46ad
Finish removal of iconv_convenience in public API's.
2010-05-18 11:45:30 +02:00
Jeremy Allison
0d51bab61e
Now we behave as Windows does, remove a Samba3 specific test return.
...
Jeremy.
2010-05-13 21:27:24 -07:00
Stefan Metzmacher
e1e2195a4a
s4:torture/rpc: rename rpc.h => torture_rpc.h
...
The reason for this is that some systems include
<rpc/rpc.h> from within system headers. HP-UX 11.00
does so somewhere deep inside of <shadow.h>.
For torture/winbind/struct_based.c <rpc/rpc.h> resolves
to torture/rpc/rpc.h and breaks the build.
metze
2010-04-14 20:27:11 +02:00
Jelmer Vernooij
3a34b5f35e
subunit: Remove more test output that could be interpreted by subunit.
2010-04-11 20:57:33 +02:00
Jelmer Vernooij
7da94cc4a6
subunit: Support formatting compatible with upstream subunit, for consistency.
...
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-11 20:57:33 +02:00
Matthias Dieter Wallnöfer
5b824eb17b
s4:torture - remove unused variables
2010-04-06 14:54:11 +02:00
Andrew Tridgell
4fc0a6ab31
s4-torture: using typeof() is not portable
...
this failed to compile on solaris8 with cc
2010-03-31 10:23:17 +11:00
Andrew Tridgell
700f464951
s4-torture: use TYPESAFE_QSORT() in smbtorture
2010-02-13 22:36:12 +11:00
Andrew Tridgell
6cf5bdd3d3
s4-torture: handle NT_STATUS_CONNECTION_RESET
...
a CONNECTION_RESET is now the normal "client disconnect" status code
2010-02-04 21:22:43 +11:00
Matt Kraai
d8071e7ed7
Change uint_t to unsigned int in source4
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-02-02 07:18:18 +01:00
Steven Danneman
5323fe99c3
s4/torture: Parameterize output in LOCK tests based off server support
...
Two new torture parameters:
* smbexit_pdu_support: if the Server supports the Exit command
* range_not_locked_on_file_close: whether the server returns the
NT_STATUS_RANGE_NOT_LOCKED error when a file is closed which has a
pending lock request. Windows returns this error, though per the
spec, this error should only be returned to an unlock request.
2010-01-10 16:12:44 -08:00
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
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