Günther Deschner
f6bdfd9423
s4-smbtorture: test both 32bit and 64bit driver uploads in RPC-SPOOLSS-DRIVER.
...
Guenther
2010-04-23 02:16:59 +02:00
Günther Deschner
74592f47f5
s4-smbtorture: allow to upload and later remove printer driver files in RPC-SPOOLSS-DRIVER.
...
Guenther
2010-04-23 02:16:28 +02:00
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
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
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
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
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
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
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
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
4ca2cc348e
s4-smbtorture: workaround broken REG_MULTI_SZ from winreg in s3
...
during SetPrinterDataEx SPOOLSS test.
Guenther
2010-03-17 15:55:23 +01:00
Günther Deschner
481402bae5
s4-smbtorture: workaround the fact that you cannot fully rename a printer in samba.
...
Guenther
2010-03-17 15:54:58 +01:00
Günther Deschner
c05a06187d
s4-smbtorture: only use "friendly" data in extended SetPrinterDataEx test.
...
Passes against windows but not against samba yet :-(
Guenther
2010-03-17 15:43:06 +01:00
Stefan Metzmacher
c1bf3244df
s4:torture/rpc/spoolss.c: make use of dcerpc_binding_handle stubs
...
metze
2010-03-16 15:35:31 +01:00
Stefan Metzmacher
28a6e5398d
s4:tortore/rpc/spoolss.c: fix compiler warning
...
metze
2010-03-16 15:35:30 +01:00
Günther Deschner
27d46ba266
s4-smbtorture: make it a bit easier to track failures in RPC-SPOOLSS-PRINTER.
...
Guenther
2010-03-16 15:13:52 +01:00
Günther Deschner
4379b082b8
s3-spoolss: be very strict on OpenPrinter{Ex} failures for bad names.
...
Guenther
2010-03-16 10:43:57 +01:00
Günther Deschner
83b9e12513
s4-smbtorture: add simple printer rename test to RPC-SPOOLSS-PRINTER.
...
Guenther
2010-03-15 18:35:19 +01:00
Günther Deschner
08ec9b7e73
s4-smbtorture: fill PrinterDriverData with more values for consistency test.
...
Guenther
2010-03-15 17:27:12 +01:00
Günther Deschner
1eb0fbe68d
s4-smbtorture: cleanup data after enumdata{ex} consistency test.
...
Guenther
2010-03-15 14:55:25 +01:00
Günther Deschner
06cbf05e8b
s4-smbtorture: when cross checking enumdata{ex} make sure to have at least one entry.
...
Guenther
2010-03-15 14:16:03 +01:00
Günther Deschner
6bfde084e6
s4-smbtorture: add PrinterInfo_to_SetPrinterInfo helper to RPC-SPOOLSS.
...
Guenther
2010-03-15 14:16:03 +01:00
Günther Deschner
c3eb509dea
s4-smbtorture: fix torture_comment in RPC-SPOOLSS.
...
Guenther
2010-03-15 10:20:27 +01:00
Stefan Metzmacher
b52b357ede
s4:torture/rpc/spoolss.c: fix compiler warnings
...
metze
2010-03-13 08:20:24 +01:00
Günther Deschner
8f07737714
s4-smbtorture: warn on unexpected devicenames in spoolss devicemode test.
...
Guenther
2010-03-13 02:26:59 +01:00
Günther Deschner
33d9901ecb
s4-smbtorture: fix build and handle in spoolss test.
...
it's friday night...
Guenther
2010-03-13 01:34:31 +01:00
Günther Deschner
d39ece17e0
s4-smbtorture: add spoolss EnumPrinterData vs EnumPrinterDataEx consistency test.
...
Guenther
2010-03-13 01:12:22 +01:00
Günther Deschner
ab33b991de
s4-smbtorture: refactor spoolss EnumPrinterData test.
...
Guenther
2010-03-13 01:12:21 +01:00
Günther Deschner
1d9d617d97
s4-smbtorture: refactor SetPrinterData() calls a little more.
...
Guenther
2010-03-13 01:12:21 +01:00
Günther Deschner
3de2f0475d
s4-smbtorture: re-arrange spoolss_SetPrinterData() tests.
...
Guenther
2010-03-13 01:12:21 +01:00
Günther Deschner
f064a182eb
s4-smbtorture: make sure RPC-SPOOLSS passes against 64bit archs (w2k8r2).
...
Guenther
2010-03-13 01:12:21 +01:00
Günther Deschner
e0d85f87b7
winreg: add winreg_KeyType enum.
...
Guenther
2010-03-11 20:23:47 +01:00
Günther Deschner
3a8d85da68
s4-smbtorture: more work on test_key_value() RPC-WINREG test.
...
Guenther
2010-03-11 19:01:07 +01:00
Günther Deschner
3fd5ac6344
s4-smbtorture: only look at DATA_BLOB pointer when einfo[0].data_length > 0.
...
Guenther
2010-03-11 00:09:04 +01:00
Günther Deschner
01801f3f94
s4-smbtorture: while testing PrinterDataEx also compare Get and Enum results.
...
Guenther
2010-03-10 23:10:44 +01:00
Günther Deschner
0a253e6b72
s4-smbtorture: fix some build warnings in RPC-SPOOLSS test.
...
Guenther
2010-03-10 02:54:26 +01:00
Günther Deschner
62b41e6842
s4-smbtorture: rework test_winreg_QueryValue in RPC-SPOOLSS-PRINTER once again.
...
Guenther
2010-03-10 00:46:23 +01:00
Günther Deschner
48cdca0d47
s4-smbtorture: fix uninitialized variable in winreg QueryValue call.
...
Guenther
2010-03-09 16:14:39 +01:00
Günther Deschner
6cbb8fdc48
s4-smbtorture: fix test_SetPrinterDataEx_matrix() call. sorry...
...
Guenther
2010-03-05 16:01:33 +01:00
Günther Deschner
d4db966c06
s4-smbtorture: when checking PrinterData matrix, include winreg cross reference checks.
...
Guenther
2010-03-05 15:19:50 +01:00
Günther Deschner
f385f4aeb0
s4-smbtorture: hand down printername to test_SetPrinterDataEx_matrix.
...
Guenther
2010-03-05 15:18:30 +01:00
Günther Deschner
c5fb6551d9
s4-smbtorture: add more paranoid checks for REG_DWORD SetPrinterDataEx tests.
...
Guenther
2010-03-05 15:18:17 +01:00
Günther Deschner
65f453ce71
s4-smbtorture: remove check for selfmade parsing artefact.
...
We were checking against a phenomenon that we created ourselves at the pidl
layer...
Guenther
2010-03-05 15:18:01 +01:00
Günther Deschner
f797ec9d81
s4-smbtorture: fix smbtorture after GetPrinterData{Ex} after IDL changes.
...
Guenther
2010-03-05 15:18:00 +01:00
Günther Deschner
ca319bfff2
s4-smbtorture: fix smbtorture after SetPrinterData{Ex} IDL changes.
...
Guenther
2010-03-05 15:17:59 +01:00
Günther Deschner
1a64d3cbc6
s4-smbtorture: add stricter SetPrinterDataEx tests to spoolss tests.
...
Guenther
2010-03-01 15:22:29 +01:00
Günther Deschner
4f6634e56d
s4-smbtorture: add test_SetPrinterDataEx to RPC-SPOOLSS-PRINTER.
...
Guenther
2010-03-01 15:22:29 +01:00
Günther Deschner
74c7c1cc7f
s4-smbtorture: return needed size pointer from test_GetPrinterDataEx.
...
Guenther
2010-03-01 15:22:29 +01:00
Günther Deschner
e76b8a0700
s4-smbtorture: test at least three different regtypes in test_SetPrinterDataEx.
...
Guenther
2010-03-01 15:22:29 +01:00
Günther Deschner
8ee516eb9e
s4-smbtorture: define environment in one place in RPC-SPOOLSS test.
...
Guenther
2010-02-25 19:10:43 +01:00
Günther Deschner
d6cb1cc85f
s4-smbtorture: try to set every single devicemode component in RPC-SPOOLSS-PRINTER.
...
Guenther
2010-02-25 13:13:57 +01:00
Günther Deschner
bbdd1412b2
s4-smbtorture: move ChangeID test to the list of tests we run against created printers.
...
Guenther
2010-02-25 13:13:33 +01:00
Günther Deschner
1b78573c2d
s4-smbtorture: verify that the client cpu architecture has no influence on the
...
calculated buffer size in RPC-SPOOLSS.
Guenther
2010-02-24 11:43:20 +01:00
Günther Deschner
ec0aa8a5c9
s4-smbtorture: more work on devicemode tests.
...
Guenther
2010-02-19 15:25:42 +01:00
Günther Deschner
0e95a6a09c
s4-smbtorture: explain failure conditions in printer device mode tests a little more.
...
Guenther
2010-02-19 14:27:31 +01:00
Günther Deschner
f2ecec3dcd
s4-smbtorture: add --option=torture:spoolss_check_size=yes.
...
This disables the size calculation comparison by default.
Guenther
2010-02-19 14:25:19 +01:00
Günther Deschner
299e5bc2ba
s4-smbtorture: print more comments while running SD and DM tests in RPC-SPOOLSS-PRINTER.
...
Guenther
2010-02-19 14:24:18 +01:00
Günther Deschner
998a7b4e3f
s4-smbtorture: skip printer info cross tests against samba 3 for now.
...
Not even w2k8r2 passes them atm.
Guenther
2010-02-18 01:49:02 +01:00
Günther Deschner
97d36377d3
s4-smbtorture: try more combinations to find printers in test_EnumPrinters_findname().
...
Also take a note of servers returning full UNC printer paths although we did not
set the servername.
Guenther
2010-02-18 01:48:52 +01:00
Günther Deschner
a1ba72f84c
s4-smbtorture: simplify test_PrinterInfo_DevMode a bit.
...
Guenther
2010-02-18 01:48:45 +01:00
Günther Deschner
57847c2fee
s4-smbtorture: avoid potential loop while adding a new printer in RPC-SPOOLSS-PRINTER.
...
Guenther
2010-02-18 01:48:36 +01:00
Günther Deschner
3a9dc490b4
s4-smbtorture: unify test list to run against single created printers in RPC-SPOOLSS-PRINTER.
...
This is to make sure we run the same tests for printers created via AddPrinter
and via AddPrinterEx.
Guenther
2010-02-17 11:29:37 +01:00
Günther Deschner
b32c1e2975
s4-smbtorture: also test level 2 sets for devicemodes and see if they persist.
...
Guenther
2010-02-17 11:29:37 +01:00
Günther Deschner
ff5bfb9708
s4-smbtorture: refactor setprinter devicemode calls in RPC-SPOOLSS-PRINTER.
...
Guenther
2010-02-17 11:29:36 +01:00
Günther Deschner
020c8df281
s4-smbtorture: fix spoolss SD test against w2k8r2.
...
Guenther
2010-02-16 10:47:05 +01:00
Günther Deschner
41bb8767a2
s4-smbtorture: more work on test_PrinterInfo_DevMode RPC-SPOOLSS-PRINTER.
...
Guenther
2010-02-16 09:22:35 +01:00
Günther Deschner
1e59e5d8c9
s4-smbtorture: allow to call OpenPrinterEx with devicemode.
...
Guenther
2010-02-16 09:20:25 +01:00
Günther Deschner
bb05595b0a
s4-smbtorture: more work on SD tests for RPC-SPOOLSS.
...
Guenther
2010-02-15 22:17:01 +01:00
Günther Deschner
71cfcee6ba
s4-smbtorture: add rather simple spoolss device mode test.
...
Guenther
2010-02-15 22:16:25 +01:00
Günther Deschner
a6192d766f
s4-smbtorture: use test_SetPrinter call in spoolss security descriptor tests.
...
Guenther
2010-02-15 22:15:33 +01:00
Günther Deschner
cdf2f6b672
s4-smbtorture: w2k8r2 allows to add printers w/o defining printprocessor.
...
Guenther
2010-02-15 22:12:55 +01:00
Günther Deschner
72f250ac16
s4-smbtorture: add some security descriptor tests to RPC-SPOOLSS and RPC-SPOOLSS-PRINTER.
...
Guenther
2010-02-15 11:08:16 +01:00
Günther Deschner
f8778ba8f4
s4-smbtorture: use test_GetPrinter_level in RPC-SPOOLSS-NOTIFY.
...
Guenther
2010-02-10 01:00:25 +01: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
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
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
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
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
Günther Deschner
8de6f7178c
s4-smbtorture: disable some spoolss printerdata tests which s3 does not pass at the moment.
...
Guenther
2009-12-07 14:42:13 +01:00
Günther Deschner
123d8d1c2c
s4-smbtorture: fix RPC-SPOOLSS after _spoolss_SetPrinterDataEx IDL change.
...
Guenther
2009-12-07 14:42:13 +01:00
Günther Deschner
02fe863039
s4-smbtorture: heavily expand printerdata tests in RPC-SPOOLSS.
...
Including new tests for:
- spoolss_SetPrinterDataEx
- spoolss_DeletePrinterDataEx
- spoolss_DeletePrinterKey
Guenther
2009-12-04 12:55:52 +01:00
Günther Deschner
2f0548fd98
s4-smbtorture: check more WERRORs in RPC-SPOOLSS.
...
Guenther
2009-12-03 23:48:59 +01:00
Günther Deschner
4e20a6f83b
s4-smbtorture: call test_EnumPrinterDrivers with architecture in RPC-SPOOLSS.
...
Guenther
2009-12-03 22:16:24 +01:00
Günther Deschner
450211b610
s4-smbtorture: be very strict in checking spools_EnumPrinterKey results.
...
Guenther
2009-12-03 01:04:02 +01:00
Günther Deschner
5f60855ba2
samba-spoolss: use spoolss_StringArray2 in spoolss_EnumPrinterKey.
...
This should finally resolve the endian issues we were seeing on sparc and is
much cleaner for spoolss clients and servers.
Guenther
2009-12-02 14:56:17 +01:00
Günther Deschner
8f6df5d3ec
s4-smbtorture: more and stricter tests for printer and data keys in RPC-SPOOLSS.
...
Guenther
2009-11-27 23:16:21 +01:00
Günther Deschner
d66b7d80d5
s4-smbtorture: add tests for spoolss_EnumPrinterKey to RPC-SPOOLSS-PRINTER.
...
Guenther
2009-11-23 12:17:54 +01:00
Günther Deschner
c3f461c35f
s4-smbtorture: some work on getprinterdriver and getprinterdriver2 tests.
...
Guenther
2009-07-16 03:05:44 +02:00
Günther Deschner
b6fb8cf5f3
s4-smbtorture: add RPC-SPOOLSS-PRINTER test.
...
Guenther
2009-07-14 23:03:58 +02:00
Günther Deschner
3a367ab10d
s4-smbtorture: add some tests to check spoolss_SetPrinter behavior.
...
Guenther
2009-07-14 22:59:45 +02:00
Günther Deschner
b0cce950ba
s4-smbtorture: restructure test_OpenPrinter_server in RPC-SPOOLSS a bit.
...
Guenther
2009-07-14 22:58:55 +02:00
Günther Deschner
f729abaa94
s4-smbtorture: fix getjob test in RPC-SPOOLSS.
...
Guenther
2009-07-02 22:00:41 +02:00
Günther Deschner
e7d72b585a
s4-smbtorture: Test for newly added form with enum call in RPC-SPOOLSS.
...
Guenther
2009-06-30 13:34:41 +02:00
Günther Deschner
66780e016b
s4-smbtorture: remove trailing whitespace from RPC-SPOOLSS.
...
Guenther
2009-06-30 11:38:41 +02:00
Günther Deschner
d11d4382b9
s4-smbtorture: also test for "all" architecture in enum driver tests in RPC-SPOOLSS.
...
Guenther
2009-06-08 21:24:31 +02:00
Günther Deschner
5f0c9c57f5
s4-smbtorture: test all levels in test_GetJob().
...
Guenther
2009-04-20 00:59:36 +02:00
Günther Deschner
fe2828c353
s4-smbtorture: Skip Job pause and resume on paused printers for Samba 3 for now.
...
Guenther
2009-04-17 17:27:42 +02:00
Günther Deschner
cb9c0cefaf
s4-smbtorture: rework test_EnumPrinterDrivers() a little to succeed with s3.
...
Yes, I feel dirty for this but promise to come back and fix appropriately.
Guenther
2009-04-17 17:25:14 +02:00
Günther Deschner
4a2dfbf3c9
s4-smbtorture: print SPOOLSS_JOB_CONTROL flags in RPC-SPOOLSS test.
...
Guenther
2009-04-14 12:13:08 +02:00
Günther Deschner
1dbb6530fa
s4-smbtorture: fix two valgrind warnings.
...
Guenther
2009-04-13 23:45:45 +02:00
Günther Deschner
56f5105400
s4-smbtorture: disable test_SecondaryClosePrinter when running against s3 for now.
...
Guenther
2009-04-13 23:45:37 +02:00
Günther Deschner
0f76e2d0bd
s4-smbtorture: move test_ReplyOpenPrinter from RPC-SPOOLSS to RPC-SPOOLSS-NOTIFY.
...
Guenther
2009-04-13 23:45:29 +02:00
Günther Deschner
81aca44d30
s4-smbtorture: use printerinfo level 1 name, not description in
...
test_EnumPrinters_old().
Guenther
2009-04-13 16:10:50 +02:00
Günther Deschner
6e52c232c7
s4-smbtorture: fix spoolss_EnumPrinterDataEx tests.
...
sorry, I could swear this did compile...
Guenther
2009-03-18 01:42:56 +01:00
Günther Deschner
0e2139c693
s4-smbtorture: fix RPC-SPOOLSS test after PrinterData changes.
...
Guenther
2009-03-17 11:14:54 +01:00
Günther Deschner
c6e3e5eabc
s4-smbtorture: fix test_GetPrinterData tests after out pointer changes.
...
Guenther
2009-03-17 10:58:22 +01:00
Günther Deschner
ec0c6e1617
s4-smbtorture: fix build warning in test_EnumPrintProcDataTypes.
...
Guenther
2009-03-14 23:25:29 +01:00
Günther Deschner
a93fbf8b26
s4-smbtorture: add test_EnumPrintProcDataTypes to RPC-SPOOLSS test.
...
Guenther
2009-03-07 00:25:44 +01:00
Günther Deschner
8bc7bb77be
s4-smbtorture: exit early in test_EnumPorts when no port info has been returned.
...
Guenther
2009-03-06 14:28:22 +01:00
Günther Deschner
47adaea11e
s4-smbtorture: fix RPC-SPOOLSS test after enum out info pointer changes.
...
Guenther
2009-03-06 14:28:04 +01:00
Günther Deschner
8bf0c256d7
s4-smbtorture: add test_AddJob test to RPC-SPOOLSS test.
...
Guenther
2009-02-25 23:48:29 +01:00
Günther Deschner
6cd30a351a
s4-smbtorture: expand RPC-SPOOLSS enumform and getform tests for level 2 forms.
...
Guenther
2009-02-25 21:17:19 +01:00
Günther Deschner
666cc916eb
s4-smbtorture: add test_GetPrintProcessorDirectory to RPC-SPOOLSS.
...
Guenther
2009-02-25 21:17:18 +01:00
Günther Deschner
64cec99843
s4-smbtorture: fix spoolss test after count out,ref idl changes.
...
Guenther
2009-02-17 16:15:52 +01:00
Günther Deschner
886c028e44
s4-smbtorture: fix test_PausePrinter and test_ResumePrinter.
...
Guenther
2009-02-14 01:21:21 +01:00
Günther Deschner
c1dbcd4cf8
s4-smbtorture: fix SPOOLSS test w.r.t. spoolss_ReplyOpenPrinter.
...
Guenther
2009-02-10 23:57:30 +01:00
Günther Deschner
cd5a314b51
s4-smbtorture: fix test_GetPrinterData.
...
Guenther
2009-02-06 18:37:02 +01:00
Günther Deschner
afe300cb52
s4-smbtorture: fix spoolss enum tests.
...
Guenther
2009-02-06 17:36:10 +01:00
Günther Deschner
88aaac39fa
s4-smbtorture: fix test_EnumPrinterDataEx.
...
Guenther
2009-02-06 14:59:22 +01:00
Günther Deschner
8ddb81ca0a
s4-smbtorture: fix test_GetPrinterDataEx.
...
Guenther
2009-02-06 14:59:22 +01:00
Günther Deschner
3954cd83aa
s4-smbtorture: fix test_GetPrinterDriver2.
...
Guenther
2009-02-06 14:59:22 +01:00
Günther Deschner
99398e8768
s4-smbtorture: fix test_GetForm.
...
Guenther
2009-02-06 14:59:21 +01:00
Günther Deschner
d400de2ffa
s4-smbtorture: fix test_DoPrintTest.
...
Guenther
2009-02-06 14:59:21 +01:00
Günther Deschner
6e1c008913
s4-smbtorture: fix test_DoPrintTest.
...
Guenther
2009-02-06 14:59:21 +01:00
Günther Deschner
0d4dbe6012
s4-smbtorture: fix test_GetPrinterDriverDirectory.
...
Guenther
2009-02-06 14:59:21 +01:00
Günther Deschner
8153916f4a
s4-smbtorture: fix test_GetPrinter.
...
Guenther
2009-02-06 14:59:21 +01:00
Günther Deschner
22e2f220be
s4-smbtorture: fix test_GetJob.
...
Guenther
2009-02-06 14:59:20 +01:00
Stefan Metzmacher
c41944b9f9
spoolss.idl: improve idl for EnumPrinterData and not use 'lstring' any more
...
metze
(This used to be commit d6cdddbcf3
)
2008-02-13 10:39:25 +01:00
Kai Blin
9532bced6c
r26048: spoolss: Fix test_SecondaryClosePrinter.
...
The test was trying to be too smart. Fixed to not reuse test_ClosePrinter.
(This used to be commit 5f688d1fdd
)
2007-12-21 05:45:47 +01:00
Kai Blin
e35e41a8f9
r26047: spoolss: OpenPrinterEx with an invalid server/printer name returns WERR_INVALID_PARAM
...
This is observed against a Win2k3 DC, and different tothe WERR_INVALID_PRINTER_NAME
returned by OpenPrinter.
(This used to be commit 7e78dc7cfe
)
2007-12-21 05:45:46 +01:00
Kai Blin
1eaefd15cb
r25642: Fix a small typo.
...
(This used to be commit 7416a1d606
)
2007-12-21 05:43:02 +01:00
Jelmer Vernooij
2151cde580
r25554: Convert last instances of BOOL, True and False to the standard types.
...
(This used to be commit 566aa14139
)
2007-10-10 15:07:55 -05:00
Jelmer Vernooij
2f3551ca7c
r25446: Merge some changes I made on the way home from SFO:
...
2007-09-29 More higher-level passing around of lp_ctx.
2007-09-29 Fix warning.
2007-09-29 Pass loadparm contexts on a higher level.
2007-09-29 Avoid using global loadparm context.
(This used to be commit 3468952e77
)
2007-10-10 15:07:34 -05:00
Jelmer Vernooij
8e2d624a58
r24937: Merge tests spoolss RPC callbacks.
...
(This used to be commit 9b256a0ca2
)
2007-10-10 15:03:39 -05:00
Jelmer Vernooij
3e7203d0b3
r24755: Use common code for finding the RPC binding in the torture tests.
...
(This used to be commit e3310e7739
)
2007-10-10 15:03:03 -05:00
Jelmer Vernooij
919aa6b27e
r24735: Use torture API in more places.
...
(This used to be commit 1319d88c09
)
2007-10-10 15:03:00 -05:00
Stefan Metzmacher
f14bd1a90a
r24557: rename 'dcerpc_table_' -> 'ndr_table_'
...
metze
(This used to be commit 84651aee81
)
2007-10-10 15:02:15 -05:00
Andrew Tridgell
0479a2f1cb
r23792: convert Samba4 to GPLv3
...
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
(This used to be commit fcf38a38ac
)
2007-10-10 14:59:12 -05:00
Stefan Metzmacher
5dd8496af6
r23687: not every compiler supports __typeof__()
...
metze
(This used to be commit d0f77f7bd7
)
2007-10-10 14:59:01 -05:00
Stefan Metzmacher
403530d0ec
r17787: ifdef out unused macros and generate a smb_panic()
...
when the wrong macro is used on a field.
metze
(This used to be commit dd0f692d19
)
2007-10-10 14:16:42 -05:00
Jelmer Vernooij
909b111f58
r14720: Add torture_context argument to all torture tests
...
(This used to be commit 3c7a5ce291
)
2007-10-10 13:59:13 -05:00
Jelmer Vernooij
4f1c8daa36
r14470: Remove some unnecessary headers.
...
(This used to be commit f7312dab3b
)
2007-10-10 13:57:29 -05:00
Jelmer Vernooij
1060f6b3f6
r14402: Generate seperate headers for RPC client functions.
...
(This used to be commit 7054ebf024
)
2007-10-10 13:57:19 -05:00
Jelmer Vernooij
eefe30b7d8
r14379: Build torture/rpc/ as a seperate smbtorture module. Move helper
...
functions for rpc out of torture/torture.c
(This used to be commit 1d2d970f3b
)
2007-10-10 13:57:16 -05:00
Jelmer Vernooij
25bb00fbcd
r12693: Move core data structures out of smb.h into core.h
...
torture prototypes in seperate header
(This used to be commit 73610639b2
)
2007-10-10 13:49:39 -05:00
Jelmer Vernooij
acd6a086b3
r12510: Change the DCE/RPC interfaces to take a pointer to a
...
dcerpc_interface_table struct rather then a tuple of interface
name, UUID and version.
This removes the requirement for having a global list of DCE/RPC interfaces,
except for these parts of the code that use that list explicitly
(ndrdump and the scanner torture test).
This should also allow us to remove the hack that put the authservice parameter
in the dcerpc_binding struct as it can now be read directly from
dcerpc_interface_table.
I will now modify some of these functions to take a dcerpc_syntax_id
structure rather then a full dcerpc_interface_table.
(This used to be commit 8aae0f168e
)
2007-10-10 13:47:48 -05:00
Stefan Metzmacher
1598aaca95
r11676: as tridge uses 0x%llx in his latest commits...
...
try to use it every where and see how portable it is
metze
(This used to be commit 66a94de5dd
)
2007-10-10 13:46:12 -05:00
Stefan Metzmacher
ccaf752e35
r8054: add OSVersion, OSVersionEx, DNSMachineName PrintServerData
...
metze
(This used to be commit 47781fccbc
)
2007-10-10 13:19:03 -05:00
Stefan Metzmacher
88df3c81ee
r8050: - make use of more [value()] properties
...
- the out subcontext's need to have a fixed size of r->in.offered,
to make windows clients happy
metze
(This used to be commit 054e1ca434
)
2007-10-10 13:19:02 -05:00
Stefan Metzmacher
fe94ba6e71
r8046: - add somemore failure checks in the RPC-SPOOLSS test
...
- test AddForm on the PrintServer object
- GetForm() isn't allowed on the PrintServer object so remove NTPTR
function for it
- accept the dns name as servername in the spoolss server
metze
(This used to be commit d8c308a465
)
2007-10-10 13:19:02 -05:00
Andrew Tridgell
ffa3632188
r7650: fixed a typo
...
(This used to be commit 331afee4ca
)
2007-10-10 13:18:17 -05:00
Stefan Metzmacher
038628b9c5
r7642: - test NULL server_name in GetPrinterDriverDirectory() too, (same result as "")
...
- test EnumForms() on the PrintServer (NT4 returns WERR_BADFID)
(jerry: how do it get the lists of forms in the printserver gui)
metze
(This used to be commit fddfe1f04b
)
2007-10-10 13:18:16 -05:00
Stefan Metzmacher
056d63c62f
r7580: - add GetPrinterDriverDirectory() idl, torture test and server code
...
- add EnumMonitors() server code and return "Standard TCP/IP Port"
- add parsing for opening Ports and Monitors with OpenPrinterEx()
metze
(This used to be commit 08e6de37bc
)
2007-10-10 13:18:11 -05:00
Stefan Metzmacher
04c3bbe053
r7574: - seperate [in] and [out] buffers and buf_sizes
...
- use the same names as etherel (offered,needed) for the buffer sizes
(and they are really independently used)
metze
(This used to be commit f5532a5b74
)
2007-10-10 13:18:11 -05:00
Stefan Metzmacher
56af29caa5
r7464: add newline to printf
...
metze
(This used to be commit 7123cd1116
)
2007-10-10 13:17:56 -05:00
Stefan Metzmacher
30da4d8d93
r7369: allow no entries returned by Enum*()
...
metze
(This used to be commit 3778da9d17
)
2007-10-10 13:17:47 -05:00
Stefan Metzmacher
22ae788666
r7346: use StartPagePrinter(), WritePrinter() and EndPagePrinter() to print a few test pages
...
on each printer
(we don't actually print because we have paused the printer before...)
metze
(This used to be commit 6bccf55ab9
)
2007-10-10 13:17:45 -05:00
Stefan Metzmacher
f9716b51cd
r7342: submit a test job for each printer and delete this job
...
metze
(This used to be commit b71d577097
)
2007-10-10 13:17:44 -05:00
Stefan Metzmacher
6484698ee4
r7340: fix the build
...
and some more error checks
metze
(This used to be commit da6263d421
)
2007-10-10 13:17:44 -05:00
Stefan Metzmacher
87bbda10bf
r7333: Pause and resume each printer
...
metze
(This used to be commit 191375f417
)
2007-10-10 13:17:43 -05:00
Stefan Metzmacher
d8889b6f8d
r7329: test some more PrinterData values
...
metze
(This used to be commit ad35bfb225
)
2007-10-10 13:17:42 -05:00
Stefan Metzmacher
9a831a3963
r7328: fix GetPrinterData and SetPrinterData, with zero length subcontexts
...
metze
(This used to be commit 73d597bacf
)
2007-10-10 13:17:42 -05:00
Stefan Metzmacher
62480f1252
r7120: make use of the new 'noopnum' property and get rid of handwritten
...
parsing code for the spoolss_Enum* functions, there still same handwritten code needed
but just to stack the autogenerated code into the correct way
metze
(This used to be commit 155d18e8b7
)
2007-10-10 13:17:19 -05:00
Stefan Metzmacher
4baf0b01c4
r6197: fix for my last commit, I removed SPOOLSS_ARCHITECTURE, which was "Architecture"
...
(sorry richard:-)
disable lookup for DefaultSpoolDirectory until, I have fixed the parsing when WERR_MORE_DATA
is returned
metze
(This used to be commit d5993337b8
)
2007-10-10 13:11:25 -05:00
Richard Sharpe
d3911fa5d7
r6195: I think Metze meant SPOOLSS_ARCHITECTURE_NT_X86, but I could be wrong.
...
(This used to be commit 85c2b8b944
)
2007-10-10 13:11:25 -05:00
Stefan Metzmacher
746bb14367
r6194: - fix some spoolss_*Form names and types
...
- fix GetPrinterData(), look inside the datablob
- add idl for RemoteFindFirstChangeNotify(), without meaning yet, just to not return a DCERPC_FAULT
when receiving this request
metze
(This used to be commit 92f3d5bd9c
)
2007-10-10 13:11:25 -05:00
Stefan Metzmacher
3abce73193
r6179: - add new spoolss tests for all spoolss_Enum*() calls which didn't need
...
a handle as parameter,
EnumPorts
EnumPrinterDrivers
EnumMonitors
EnumPrintProcessors
EnumPrinters
we now do cross checks between the different info levels
and sore the results in a global context,
so that we later can add cross checks between the different object types
- add idl for EnumMonitors and EnumPrintProcessors
metze
(This used to be commit 92a3721bc7
)
2007-10-10 13:11:23 -05:00
Andrew Bartlett
645711c602
r5941: Commit this patch much earlier than I would normally prefer, but metze needs a working tree...
...
The main volume of this patch was what I started working on today:
- Cleans up memory handling around DCE/RPC pipes, to have a parent talloc context.
- Uses sepereate inner loops for some of the DCE/RPC tests
The other and more important part of this patch fixes issues
surrounding the new credentials framwork:
This makes the struct cli_credentials always a talloc() structure,
rather than on the stack. Parts of the cli_credentials code already
assumed this.
There were other issues, particularly in the DCERPC over SMB handling,
as well as little things that had to be tidied up before test_w2k3.sh
would start to pass.
Andrew Bartlett
(This used to be commit 0453f9d05d
)
2007-10-10 13:11:11 -05:00
Andrew Bartlett
df64302213
r5902: A rather large change...
...
I wanted to add a simple 'workstation' argument to the DCERPC
authenticated binding calls, but this patch kind of grew from there.
With SCHANNEL, the 'workstation' name (the netbios name of the client)
matters, as this is what ties the session between the NETLOGON ops and
the SCHANNEL bind. This changes a lot of files, and these will again
be changed when jelmer does the credentials work.
I also correct some schannel IDL to distinguish between workstation
names and account names. The distinction matters for domain trust
accounts.
Issues in handling this (issues with lifetime of talloc pointers)
caused me to change the 'creds_CredentialsState' and 'struct
dcerpc_binding' pointers to always be talloc()ed pointers.
In the schannel DB, we now store both the domain and computername, and
query on both. This should ensure we fault correctly when the domain
is specified incorrectly in the SCHANNEL bind.
In the RPC-SCHANNEL test, I finally fixed a bug that vl pointed out,
where the comment claimed we re-used a connection, but in fact we made
a new connection.
This was achived by breaking apart some of the
dcerpc_secondary_connection() logic.
The addition of workstation handling was also propogated to NTLMSSP
and GENSEC, for completeness.
The RPC-SAMSYNC test has been cleaned up a little, using a loop over
usernames/passwords rather than manually expanded tests. This will be
expanded further (the code in #if 0 in this patch) to use a newly
created user account for testing.
In making this test pass test_rpc.sh, I found a bug in the RPC-ECHO
server, caused by the removal of [ref] and the assoicated pointer from
the IDL. This has been re-added, until the underlying pidl issues are
solved.
(This used to be commit 824289dcc2
)
2007-10-10 13:11:07 -05:00
Günther Deschner
0dcd79b92a
r5611: Add EnumPrinterDataEx-test (for now just for PrinterDriverData, we need
...
to enumerate (recursively!) over all keys with EnumPrinterKey later on.
Guenther
(This used to be commit 46ae4010f2
)
2007-10-10 13:10:56 -05:00