diff options
author | Günther Deschner <gd@samba.org> | 2007-11-27 11:14:51 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:46:26 +0100 |
commit | 722851c78e0861987488898941c5fa93bbc4d8ce (patch) | |
tree | ede8a3a7333e7d891588fdf95fdeb2caebbb8b05 /source4/torture/rpc | |
parent | 65c35b80e2c70e03756a5cb305b10c00cd8ac8b3 (diff) | |
download | samba-722851c78e0861987488898941c5fa93bbc4d8ce.tar.gz samba-722851c78e0861987488898941c5fa93bbc4d8ce.tar.bz2 samba-722851c78e0861987488898941c5fa93bbc4d8ce.zip |
r26154: Add IDL and torture test for wkssvc_NetrWorkstationStatistics(). A lot of
unknowns, I know...
Guenther
(This used to be commit de2c5d702ef6b14cb8ddf926f4c7e417ea9ebd5a)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/wkssvc.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/source4/torture/rpc/wkssvc.c b/source4/torture/rpc/wkssvc.c index 215ea7546e..f4141ce32b 100644 --- a/source4/torture/rpc/wkssvc.c +++ b/source4/torture/rpc/wkssvc.c @@ -716,6 +716,30 @@ static bool test_NetrRemoveAlternateComputerName(struct torture_context *tctx, return true; } +static bool test_NetrWorkstationStatisticsGet(struct torture_context *tctx, + struct dcerpc_pipe *p) +{ + NTSTATUS status; + struct wkssvc_NetrWorkstationStatisticsGet r; + struct wkssvc_NetrWorkstationStatistics *info; + + ZERO_STRUCT(r); + + info = talloc_zero(tctx, struct wkssvc_NetrWorkstationStatistics); + + r.in.server_name = dcerpc_server_name(p); + r.out.info = &info; + + torture_comment(tctx, "testing NetrWorkstationStatisticsGet\n"); + + status = dcerpc_wkssvc_NetrWorkstationStatisticsGet(p, tctx, &r); + torture_assert_ntstatus_ok(tctx, status, + "NetrWorkstationStatisticsGet failed"); + torture_assert_werr_ok(tctx, r.out.result, + "NetrWorkstationStatisticsGet failed"); + return true; +} + struct torture_suite *torture_rpc_wkssvc(TALLOC_CTX *mem_ctx) { struct torture_suite *suite; @@ -764,5 +788,8 @@ struct torture_suite *torture_rpc_wkssvc(TALLOC_CTX *mem_ctx) torture_rpc_tcase_add_test(tcase, "NetrEnumerateComputerNames", test_NetrEnumerateComputerNames); + torture_rpc_tcase_add_test(tcase, "NetrWorkstationStatisticsGet", + test_NetrWorkstationStatisticsGet); + return suite; } |