Günther Deschner
29775e39b1
s4-smbtorture: add RPC-SPOOLSS-DRIVER test.
...
Guenther
2010-04-23 02:16:09 +02:00
Günther Deschner
431faed5f4
s4-smbtorture: rework EnumPrinterDrivers tests a bit.
...
Guenther
2010-04-23 02:15:13 +02:00
Günther Deschner
6bf4dbb955
s4-smbtorture: add spoolss DriverInfo and winreg consistency test.
...
Guenther
2010-04-20 20:02:53 +02:00
Günther Deschner
0833c9639e
s4-smbtorture: add function to get a printserver's environment.
...
Guenther
2010-04-20 19:29:12 +02:00
Günther Deschner
545ef2ca76
s4-smbtorture: simplify macros used in PrinterInfo winreg consistency teste.
...
Guenther
2010-04-20 18:16:03 +02:00
Günther Deschner
e647b8c61f
s4-smbtorture: refactor test_GetPrinterDriver2().
...
Guenther
2010-04-20 17:01:48 +02:00
Günther Deschner
4f5298cbb4
s4-smbtorture: add test for csetprinter field behaviour in printer info level 0.
...
Suprisingly, that value is always 0 (at least on w2k8r2).
Guenther
2010-04-20 14:34:55 +02:00
Matthias Dieter Wallnöfer
39d612ff4c
s4:torture/rpc/netlogon.c - fix typo
2010-04-20 09:01:22 +02:00
Stefan Metzmacher
279bf89fb3
s4:torture/rpc/countcalls: check for NT_STATUS_IS_RPC() instead of NT_STATUS_NET_WRITE_FAULT
...
metze
2010-04-15 17:32:31 +02:00
Stefan Metzmacher
e9d4f1578c
s4:torture/rpc/autoidl.c: check for NT_STATUS_RPC_* instead of p->last_fault_code
...
metze
2010-04-15 09:34:06 +02:00
Stefan Metzmacher
51f7b1382b
s4:torture/rpc/dsgetinfo.c: check for NT_STATUS_RPC_ENUM_VALUE_OUT_OF_RANGE instead of DCERPC_FAULT_INVALID_TAG
...
metze
2010-04-15 09:34:06 +02:00
Stefan Metzmacher
c85884ecc8
s4:torture/rpc/spoolss.c: check for NT_STATUS_RPC_* instead of p->last_fault_code
...
metze
2010-04-15 09:34:06 +02:00
Stefan Metzmacher
98464853f4
s4:torture/rpc/scanner.c: check for NT_STATUS_RPC_* instead of p->last_fault_code
...
metze
2010-04-15 09:34:05 +02:00
Stefan Metzmacher
2aba845816
s4:torture/rpc/samr.c: check for NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE instead of DCERPC_FAULT_OP_RNG_ERROR
...
metze
2010-04-15 09:34:05 +02:00
Stefan Metzmacher
6f4218a4aa
s4:torture/rpc/drsuapi.c: check for NT_STATUS_RPC_ENUM_VALUE_OUT_OF_RANGE instead of DCERPC_FAULT_INVALID_TAG
...
metze
2010-04-15 09:34:05 +02:00
Stefan Metzmacher
1864cd8fa7
s4:torture/rpc/countcalls.c: check for NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE instead of DCERPC_FAULT_OP_RNG_ERROR
...
metze
2010-04-15 09:34:05 +02:00
Stefan Metzmacher
0cc24f2f9b
s4:torture/rpc/alter_context: check for NT_STATUS_RPC_PROTOCOL_ERROR instead of DCERPC_NCA_S_PROTO_ERROR
...
metze
2010-04-15 09:34:05 +02:00
Stefan Metzmacher
cf9d425e3d
s4:torture/rpc/dssync.c: check for NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE instead of DCERPC_FAULT_OP_RNG_ERROR
...
metze
2010-04-15 09:34:04 +02:00
Stefan Metzmacher
de94672fe0
s4:torture/rpc/alter_context.c: check for NT_STATUS_RPC_BAD_STUB_DATA instead of NT_STATUS_NET_WRITE_FAULT
...
metze
2010-04-15 09:34:04 +02:00
Stefan Metzmacher
bb4a958c6d
s4:torture/rpc/handles.c: check for NT_STATUS_RPC_SS_CONTEXT_MISMATCH instead of DCERPC_FAULT_CONTEXT_MISMATCH
...
metze
2010-04-15 09:34:04 +02:00
Stefan Metzmacher
34a6350715
s4:torture/rpc/lsa.c: test for NT_STATUS_RPC_SS_CONTEXT_MISMATCH instead of NT_STATUS_NET_WRITE_FAULT
...
metze
2010-04-15 09:34:04 +02:00
Stefan Metzmacher
c0736c70d6
s4:torture/rpc: don't look at p->last_fault_code for debugging anymore
...
metze
2010-04-15 09:34:03 +02: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
Stefan Metzmacher
bc6a43aeb4
s4:torture/rpc/winreg: fix compiler warnings
...
metze
2010-04-14 12:01:30 +02:00
Stefan Metzmacher
d0180570b3
s4:torture/rpc/dsgetinfo: first check the rpc layer status before looking at the application result
...
metze
2010-04-14 12:01:30 +02:00
Matthias Dieter Wallnöfer
7d5a8c3506
s4:torture/netlogon - enhance test for "dcesrv_netr_DsRGetDCNameEx2"
...
Test for right domainname handling.
2010-04-13 15:26:55 +02:00
Stefan Metzmacher
4cff89a585
s4:tortore/rpc/spoolss: some compilers don't like .foo.bar = 5
...
metze
2010-04-13 09:55:56 +02:00
Stefan Metzmacher
9ef235ed0a
s4:tortore/rpc/spoolss.c: fix declaration after code warning
...
metze
2010-04-12 16:18:11 +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
Günther Deschner
5eedaaea43
s4-smbtorture: skip winreg symlink test against Samba in RPC-SPOOLSS.
...
Guenther
2010-04-09 20:00:56 +02:00
Günther Deschner
bc2e675c3a
s4-smbtorture: make sure to check for result of spoolss_GetJob tests.
...
This avoids returning potentially uninitialised data. Thanks Andreas for
pointing this out.
Guenther
2010-04-09 20:00:56 +02:00
Günther Deschner
1cec3029e5
s4-smbtorture: display helpful error message when winreg_QueryMultipleValues fails.
...
Guenther
2010-04-09 18:33:45 +02:00
Stefan Metzmacher
0bf6043df9
RPC-ALTERCONTEXT: let the test pass against w2k3 and w2k8
...
The behavior between w2k3 and w2k8 differs:
- w2k3 just ignores alter_context requests which try to change
an existing presentation context.
- w2k8 returns DERPC_NCA_S_PROTO_ERROR and closes the transport
connection.
metze
2010-04-09 16:28:31 +02:00
Stefan Metzmacher
5844a7dfe6
s4:torture/rpc/lsa.c: add test_lsa_OpenPolicy2_ex() that takes an expected status
...
metze
2010-04-09 16:28:31 +02:00
Günther Deschner
48daa0b6ee
s4-smbtorture: add test to check for registry symlinks in RPC-SPOOLSS-PRINTER.
...
Guenther
2010-04-09 16:17:54 +02:00
Günther Deschner
a21be5fc1b
s4-smbtorture: fix build after winreg IDL renames, sorry..
...
Guenther
2010-04-09 14:46:28 +02:00
Günther Deschner
5d04aadcb9
s4-smbtorture: Fix winreg test after keytype renameing.
...
Guenther
2010-04-09 13:57:18 +02:00
Günther Deschner
8c593f6355
s4-smbtorture: when creating winreg-symlinks during a test, it is very wise to make them volatile.
...
Guenther
2010-04-09 13:57:17 +02:00
Günther Deschner
299a6ffe9e
s4-smbtorture: winreg keytype options is a bitmask.
...
Guenther
2010-04-09 13:57:17 +02:00
Günther Deschner
bc9289995a
s4-smbtorture: more work on registry REG_LINK (in-registry symlinks) test.
...
Guenther
2010-04-09 13:57:17 +02:00
Günther Deschner
1c4c4dd7e0
s4-smbtorture: protect against full UNC paths in winreg printerinfo test.
...
Guenther
2010-04-08 16:14:20 +02:00
Günther Deschner
16deed7199
s4-smbtorture: add PrinterInfo level 2 / winreg consistency test.
...
This compares PrinterInfo2 with contents of
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\printername and
HKLM\SYSTEM\CurrentControlSet\Control\Print\Printers\printername
Guenther
2010-04-08 15:03:56 +02:00
Günther Deschner
f87a18ec3b
s4-smbtorture: minor cleanup, use data_blob_talloc_zero() in RPC-SPOOLSS.
...
Guenther
2010-04-08 15:03:56 +02:00
Günther Deschner
0ec6f297ee
s4-smbtorture: minor typo in SetJob test in RPC-SPOOLSS.
...
Guenther
2010-04-07 23:53:19 +02:00
Günther Deschner
345fcf5875
s4-smbtorture: test for invalid form flags in RPC-SPOOLSS.
...
Guenther
2010-04-07 14:56:07 +02:00
Günther Deschner
f63c345bbd
s4-smbtorture: test all types and also use a wellknown builtin form name in RPC-SPOOLSS.
...
Guenther
2010-04-07 14:41:13 +02:00
Günther Deschner
4712940e7c
s4-smbtorture: merge badname spoolss openprinter tests.
...
Guenther
2010-04-07 11:40:41 +02:00
Günther Deschner
8bb30ffcf6
s4-smbtorture: avoid passing down a full test_spoolss_context to directory
...
spoolss tests when not used.
Guenther
2010-04-07 11:40:31 +02:00
Günther Deschner
4d482d9c19
s4-smbtorture: more work on forms tests in RPC-SPOOLSS.
...
Guenther
2010-04-06 21:13:19 +02:00
Matthias Dieter Wallnöfer
5b824eb17b
s4:torture - remove unused variables
2010-04-06 14:54:11 +02:00
Günther Deschner
55e1af856e
s4-smbtorture: fix correct result error code in SetForm spoolss test.
...
Guenther
2010-04-06 12:13:54 +02:00
Günther Deschner
12bd7a1230
s4-smbtorture: fix two context arguments in RPC-SAMSYNC test.
...
Guenther
2010-04-06 10:56:55 +02:00
Günther Deschner
979c50eff7
s4:torture/rpc/samba3rpc.c: add explicit check for NTSTATUS r.out.result
...
Guenther
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-29 15:35:52 +02:00
Stefan Metzmacher
10e46e52ab
s4:torture/rpc/lsa.c: add explicit check for NTSTATUS r.out.result
...
metze
2010-03-29 15:35:51 +02:00
Günther Deschner
1a4d9b95ee
s4:torture/rpc/samr.c: add explicit check for NTSTATUS r.out.result
...
Guenther
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-29 15:35:50 +02:00
Günther Deschner
e531b52ab9
s4:torture/rpc/handles.c: add explicit check for NTSTATUS r.out.result
...
Guenther
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-29 15:35:50 +02:00
Günther Deschner
3398636a3b
s4:torture/rpc/samr_accessmask.c: add explicit check for NTSTATUS r.out.result
...
Guenther
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-29 15:35:50 +02:00
Stefan Metzmacher
08177e98b2
s4:torture/rpc/samsync.c: add explicit check for NTSTATUS r.out.result
2010-03-29 15:35:49 +02:00
Günther Deschner
5dcb1e5030
s4:torture/rpc/samlogon.c: add explicit check for NTSTATUS r.out.result
...
Guenther
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-29 15:35:49 +02:00
Günther Deschner
2f7f7257d9
s4:torture/rpc/netlogon.c: add explicit check for NTSTATUS r.out.result
...
Guenther
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-29 15:35:48 +02:00
Günther Deschner
8ac42bc0dc
s4:torture/rpc/lsa_lookup.c:add explicit check for NTSTATUS r.out.result
...
Guenther
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-29 15:35:48 +02:00
Günther Deschner
2d35523f24
s4:torture/rpc/schannel.c: add explicit check for NTSTATUS r.out.result
...
Guenther
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-29 15:35:47 +02:00
Günther Deschner
940c6ab29f
s4:torture/rpc/remote_pac.c: add explicit check for NTSTATUS r.out.result
...
Guenther
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-29 15:35:47 +02:00
Günther Deschner
a154bb5629
s4:torture/rpc/testjoin.c: add explicit check for NTSTATUS r.out.result
...
Guenther
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-29 15:35:47 +02:00
Günther Deschner
959a128c7b
s4:torture/rpc/session_key.c: add explicit check for NTSTATUS r.out.result
...
Guenther
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-29 15:35:46 +02:00
Günther Deschner
583c7cbd4c
s4:torture/rpc/eventlog.c: add explicit check for NTSTATUS r.out.result
...
Guenther
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-29 15:35:46 +02:00
Günther Deschner
159ca62094
s4:torture/rpc/unixinfo.c: add explicit check for NTSTATUS r.out.result
...
Guenther
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-29 15:35:45 +02:00
Günther Deschner
0590e7ef36
s4:torture/rpc/atsvc.c: add explicit check for NTSTATUS r.out.result
...
Guenther
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-29 15:35:45 +02:00
Stefan Metzmacher
fd9495491d
s4:torture/rpc/echo.c: remove NTSTATUS status variables
...
metze
2010-03-29 15:35:44 +02:00
Stefan Metzmacher
870a21b3ec
s4:torture/rpc/echo.c: add explicit check for NTSTATUS r.out.result
...
metze
2010-03-29 15:35:43 +02:00
Günther Deschner
0909696261
s4-smbtorture: more JobInfo testing.
...
Guenther
2010-03-26 23:01:19 +01:00
Günther Deschner
f70e1b4d43
s4-smbtorture: fail spoolss test on SetJob failure.
...
Guenther
2010-03-26 14:36:47 +01:00
Günther Deschner
2e20cdaeeb
s4-smbtorture: activate job control tests against s3 in spoolss tests.
...
Spoolss job control commands work for cups in s3 now but not for other
backends. We need to investigate why.
Guenther
2010-03-25 11:04:52 +01:00
Günther Deschner
426cb9be1c
s4-smbtorture: add print test to RPC-SPOOLSS-PRINTER as well.
...
Guenther
2010-03-25 00:50:44 +01:00
Günther Deschner
6913c57b2f
s4-smbtorture: create several printjobs during print test in RPC-SPOOLSS.
...
Guenther
2010-03-25 00:50:44 +01:00
Günther Deschner
27c50255f6
s4-smbtorture: mention job id in GetJob test output in RPC-SPOOLSS.
...
Guenther
2010-03-25 00:50:30 +01:00
Günther Deschner
1bb8341871
s4-smbtorture: mention job id in SetJob test output in RPC-SPOOLSS.
...
Guenther
2010-03-25 00:50:18 +01:00
Günther Deschner
fcad13500b
s4-smbtorture: add missing checks for WERROR results in RPC-SAMBA3 tests.
...
Guenther
2010-03-24 13:34:01 +01:00
Günther Deschner
8cd63a854e
s4-smbtorture: fix some invalid parameters in RPC-SAMSYNC test.
...
Guenther
2010-03-24 13:18:33 +01:00
Günther Deschner
9fd24eb9c5
s4-smbtorture: cleanup some of the RPC-SAMBA3 tests.
...
This avoids printf, uses simplication functions where appropriate, etc.
Guenther
2010-03-24 12:48:29 +01:00
Günther Deschner
5e87e8576c
s4-smbtorture: add rap_get_servername to RPC-SAMBA3 family of tests.
...
Guenther
2010-03-24 12:48:29 +01:00
Günther Deschner
247c6f53f9
s4-smbtorture: remove tailing whitespace in samba3rpc testsuite.
...
Guenther
2010-03-23 19:05:25 +01:00
Günther Deschner
bf9f24f571
s4-smbtorture: use torture_context in samsync test.
...
Guenther
2010-03-23 17:28:55 +01:00
Günther Deschner
9c586e6b1b
s4-smbtorture: remove trailing whitespace from samsync torture test.
...
Guenther
2010-03-23 17:16:23 +01:00
Matthias Dieter Wallnöfer
bebb17ad0e
s4:WINREG torture - fix an error (missing "break" in a "switch")
...
Sorry my fault - I didn't discover that earlier since we had binary data types
support activated in s4.
2010-03-23 16:46:17 +01:00
Matthias Dieter Wallnöfer
f39ef98668
Revert "s4:torture - WINREG RPC - reactivate test "SetValueExtended" for s4"
...
This reverts commit 0f2cf82e5e
.
Naturally we have to revert this for s4 until a new storage mechanism for binary
REG_SZ and REG_*WORD values has been found.
2010-03-23 00:16:19 +01:00
Matthias Dieter Wallnöfer
0f2cf82e5e
s4:torture - WINREG RPC - reactivate test "SetValueExtended" for s4
...
Should be definitely fixed now.
2010-03-21 14:30:53 +01:00
Matthias Dieter Wallnöfer
d82b325bc3
s4:torture WINREG - enhance test for "QWORD" type
...
We need to know how this behaves.
2010-03-21 14:03:56 +01:00
Matthias Dieter Wallnöfer
66f94ca3ec
s4:torture WINREG - enhance test for "DWORD_BIG_ENDIAN" type
...
We need to know how this behaves.
2010-03-21 14:03:56 +01:00
Günther Deschner
3cb56942ed
s4-smbtorture: rework RPC-DFS test a bit.
...
Guenther
2010-03-19 22:46:16 +01:00
Günther Deschner
f5ab6fd788
s4-smbtorture: put all RPC-SAMB3-X torture tests into their own torture_suite.
...
Guenther
2010-03-19 20:23:33 +01:00
Günther Deschner
dd4e2ebda5
s4-smbtorture: use torture_context in policy function in RPC-LSA-LOOKUP test.
...
Guenther
2010-03-19 09:21:15 +01:00
Stefan Metzmacher
95cefcfa4a
s4:torture/rpc/browser.c: make use of dcerpc_binding_handle stubs
...
metze
2010-03-18 12:39:43 +01:00
Stefan Metzmacher
18fa68f259
s4:torture/rpc/ntsvcs.c: make use of dcerpc_binding_handle stubs
...
metze
2010-03-18 12:39:43 +01:00
Stefan Metzmacher
7456df5e75
s4:torture/rpc/frsapi.c: make use of dcerpc_binding_handle stubs
...
metze
2010-03-18 12:39:43 +01:00
Stefan Metzmacher
61c62a7fd1
s4:torture/rpc/handles.c: make use of dcerpc_binding_handle stubs
...
metze
2010-03-18 12:39:42 +01:00
Stefan Metzmacher
cef46436fc
s4:torture/rpc/handles: check the correct last_fault_code
...
metze
2010-03-18 12:39:42 +01:00
Günther Deschner
b05f0db957
s4-smbtorture: fix typo in RPC-SAMR-PASSWORDS-LOCKOUT test.
...
Guenther
2010-03-17 23:58:56 +01:00
Günther Deschner
453fed4efd
s4-smbtorture: skip BackupLog test against samba in RPC-EVENTLOG.
...
Guenther
2010-03-17 22:59:12 +01:00
Stefan Metzmacher
4b80e145b4
s4:torture/rpc/samba3rpc.c: make use of dcerpc_binding_handle stubs
...
metze
2010-03-17 18:26:24 +01:00