Aravind Srinivasan
4d83d3a286
s4 torture: Add rename test to imitate the way OS X renames files
...
This tests for mis-behaved case-insensitive get_real_filename
implementations.
2009-02-13 13:18:54 -08:00
Zack Kirsch
4e1a4cbe1f
s4 torture: Smbtorture additions for Windows BRL
...
- Adds a few new BRL tests to RAW-LOCK
- Adds a "win7" target to allow torture to handle protocol changes in
windows 7
2009-02-11 12:23:52 -08:00
Zack Kirsch
307f4a66ac
s4 torture: Two minor fixes to smbtorture BRL tests.
2009-02-11 12:23:32 -08:00
Tim Prouty
7eb097a66d
s4 torture: Change nttransrename to use a normal access mask
...
batch9 already tests for stat-only opens
2009-02-10 19:35:33 -08:00
Stefan Metzmacher
0ac7792e02
s4:libcliraw: s/private/private_data
...
metze
2009-02-02 13:08:51 +01:00
Stefan Metzmacher
ab7f003aad
s4:torture: s/private/private_data
...
metze
2009-02-02 13:08:38 +01:00
Tim Prouty
a65f1b9655
s4 torture: Add new create disposition test to RAW-STREAMS
2009-01-09 11:45:31 -08:00
Andrew Tridgell
c81863e868
added support for stream renames in Samba4
...
This allows the RAW-STREAMS test to work again. We still have some
limitations though:
- renames of a stream to the default stream doesn't work
- delete on close handling between streams and the main file
is still broken
2009-01-07 16:46:34 +11:00
Tim Prouty
2ddaebb2e1
s4 torture: Add more rename tests to RAW-STREAMS
...
There is one part of the new rename tests that passes against windows,
but doesn't pass against samba3 right now. Windows allow renaming a
stream to the default stream, but none of the current streams module
support this. When this ability is added the check for samba can be
removed from this test.
This patch also adds a missing unlink in the cleanup of
test_stream_delete and changes the order that the tests are run to be
consistent with the physical order in the file.
2009-01-04 19:31:30 -08:00
Stefan Metzmacher
183c379fe5
s4:lib/tevent: rename structs
...
list=""
list="$list event_context:tevent_context"
list="$list fd_event:tevent_fd"
list="$list timed_event:tevent_timer"
for s in $list; do
o=`echo $s | cut -d ':' -f1`
n=`echo $s | cut -d ':' -f2`
r=`git grep "struct $o" |cut -d ':' -f1 |sort -u`
files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4`
for f in $files; do
cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp
mv $f.tmp $f
done
done
metze
2008-12-29 20:46:40 +01:00
Jelmer Vernooij
dcc4081f75
Fix more compiler warnings.
2008-12-23 23:22:57 +01:00
Jeremy Allison
f1389a3950
Make it clearer when RAW-STREAMS is failing (don't always print names).
...
Jeremy.
2008-12-22 11:58:38 -08:00
Jeremy Allison
fcadf47a15
Add torture test for bug #5986 - streams rename, so we don't regress.
...
Jeremy.
2008-12-19 18:01:26 -08:00
Stefan Metzmacher
0df3036730
RAW-CHKPATH: not every server behaves like samba3...
...
metze
2008-12-18 13:31:41 +01:00
Jeremy Allison
55620b4e3c
Samba3 smbd now passes test BATCH23 (with the fix for bug #5979 ), only BATCH22 left to fix.
...
Jeremy.
2008-12-17 17:30:18 -08:00
Jeremy Allison
3c5c3aaa74
Added torture test for doing an openX over a directory
...
to ensure we get the correct error message.
Jeremy.
2008-12-13 13:10:48 -08:00
Stefan Metzmacher
db369b5567
RAW-STREAMS: test stream renames
...
metze
2008-12-01 14:45:06 -08:00
Stefan Metzmacher
540e6376cc
RAW-STREAMS: some more tests...
...
metze
2008-12-01 14:44:42 -08:00
Stefan Metzmacher
87bb9e178f
RAW-STREAMS: test valid character in the range of 0x01 => 0x7F
...
metze
2008-12-01 14:43:58 -08:00
Stefan Metzmacher
b25d69e3a8
RAW-STREAMS: check some strange stream name combinations
...
metze
2008-12-01 14:43:23 -08:00
Stefan Metzmacher
9519d5dd71
RAW-CHKPATH: test every character in the range of 0x01 => 0x7F
...
metze
2008-12-01 14:42:48 -08:00
Jeremy Allison
d64caaf593
Remove debug code added in error.
...
Jeremy.
2008-11-08 23:06:21 -08:00
Jeremy Allison
813bf8b4f4
Fix a subtle logic bug in the adaption of se_create_child_secdesc(), pass RAW-ACL inheritance tests. Only access masks for SD get/set left to fix.
...
Jeremy.
2008-11-08 22:57:57 -08:00
Jeremy Allison
87f563c230
Start factoring out the inheritance differences.
...
Jeremy.
2008-11-06 01:58:56 -08:00
Jeremy Allison
bfc59f63f3
Pass all of RAW-ACLS except for inheritence. Working on that next.
...
Jeremy.
2008-11-04 01:34:08 -08:00
Volker Lendecke
0953688012
Trigger (and fix) a bug in Samba3 making smbd an infinite data source
...
A deferred open directly followed by a ulogoffX makes smbd3 send an infinite
stream of ERRinvuid replies :-(
2008-11-04 09:41:15 +01:00
Jeremy Allison
d98e48c7cb
Be more verbose about a directory ACL error.
...
Jeremy.
2008-11-03 23:54:05 -08:00
Jelmer Vernooij
ff36c52d8c
Remove another use of global_loadparm.
...
Eventually, we should move some of these parameters into a separate
struct (perhaps into smb_transport_options?), to avoid the long lists of
parameters.
2008-11-02 16:07:28 +01:00
Jelmer Vernooij
3ebc574be4
Fix the build.
2008-11-02 02:30:21 +01:00
Jelmer Vernooij
b034c519f5
Add gensec_settings structure. This wraps loadparm_context for now, but
...
should in the future only contain some settings required for gensec.
2008-11-02 02:05:48 +01:00
Jelmer Vernooij
7a6190e9a7
Remove another use of global_loadparm.
2008-11-02 01:03:26 +01:00
Stefan Metzmacher
67c5aca1e8
RAW-ACLS: test the behavior of NULL DACL vs. empty DACL
...
This is based on the torture test attached to bug 4284
by Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>.
metze
2008-10-28 17:14:53 +01:00
Jelmer Vernooij
23302413b3
Remove unused include param/param.h.
2008-10-24 16:37:56 +02:00
Jelmer Vernooij
8b06312f7e
Eliminate another instance of global_loadparm.
2008-10-24 13:13:27 +02:00
Volker Lendecke
e037305187
Add the oplock-batch25 test showing that a writeattr does not break an oplock
...
Probably that's already somewhere else, but I did not find it.
2008-10-14 13:30:13 +02:00
Jelmer Vernooij
63291018df
Use const.
2008-10-10 15:00:35 +02:00
root
687ce0b60a
Use a getatr instead to make things cleaner.
...
Jeremy.
2008-09-30 12:44:24 -07:00
Jeremy Allison
a238f17e27
Add in test name visible on the wire or in debug logs so you can see when particular tests start.
...
Jeremy.
2008-09-30 12:33:00 -07:00
Jelmer Vernooij
235b729309
Cope with API changes.
2008-09-30 03:07:08 +02:00
Jelmer Vernooij
181ee01da6
Pass session options around; saves another use of global_loadparm.
2008-09-30 02:47:19 +02:00
Jelmer Vernooij
4e8cb60222
Remove global_loadparm instance.
2008-09-30 02:11:55 +02:00
Jelmer Vernooij
c8a19f0b83
Pass options struct into session initialization functions rather than
...
using global_loadparm.
2008-09-30 01:29:53 +02:00
Jeremy Allison
857609732f
Add test to show you can open for delete a readonly file.
...
Jeremy.
2008-09-26 15:20:27 -07:00
Andrew Tridgell
a22b9d6485
fixed the data in SAVEFILE op in RAW-OFFLINE
...
(This used to be commit 3441ea5df5b750442d17b90de73d392d2d802ab1)
2008-08-24 17:42:29 +10:00
Andrew Tridgell
b030743d74
show the bad data in RAW-OFFLINE
...
also show the worst case latencies so far, matching tsm_torture
(This used to be commit 5859bb337ce2ec5091425ebd02cad14c4da40457)
2008-08-24 17:38:43 +10:00
Andrew Tridgell
3efd7d2262
don't use zero data for the first file in RAW-OFFLINE
...
the most likely bugs in HSM involve zero data, due to the
dm_punch_hole() request
(This used to be commit 330ab956ea7e0b344450eee60b1357d854fbef28)
2008-08-23 11:54:02 +10:00
Stefan Metzmacher
c1c6c1b609
RAW-OPEN: be more strict in create_option checking
...
metze
(This used to be commit d548f5dee5980eae0aea25f1314238eb4f963568)
2008-08-14 15:14:53 +02:00
Andrew Tridgell
336f6810ce
expanded the SMB2-CREATE and RAW-OPEN tests to explore more of how the
...
create options fields are supposed to work
(This used to be commit 0576875eccaa21ad529c9db41db91781ad400d0f)
2008-08-14 17:26:30 +10:00
Volker Lendecke
853ef0d5ef
Fix RAW-OPEN against Samba3
...
This test assumed that fnums are recycled immediately after a close. This is
not true on Samba 3.
Andrew B., I assume this is just a bug in the test. Assuming recycled fnums
might be true on Windows and Samba 4, but I don't think we should assume this
everywhere.
Volker
(This used to be commit a4c3a59d47b2b1c794eda556d252c61907be1b3c)
2008-07-19 12:47:31 +02:00
Andrew Bartlett
853194c308
More 'must be ignored' options from the MS-SMB doc.
...
Also in particular the 'sync' flags (which Samba has traditionally
ignored).
Thanks to Olivier Salamin <olivier.salamin@gmail.com> for pointing out
more flags that needed to be handled.
Andrew Bartlett
(This used to be commit 370bb39cd79fe49efd36a1ceb3e896d386e6d3ce)
2008-07-18 18:40:19 +10:00