summaryrefslogtreecommitdiffstats
path: root/source4/torture/rpc/wkssvc.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-11-27 12:08:01 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:46:30 +0100
commite84236a095324bd5aae46b1fb1d1e40b1c706446 (patch)
tree76d9996b0c2aa59a30aa5d2a3eaeb60239ad2ccd /source4/torture/rpc/wkssvc.c
parent73ff60a85a6b2d6c47e1f013018f977a9b340c08 (diff)
downloadsamba-e84236a095324bd5aae46b1fb1d1e40b1c706446.tar.gz
samba-e84236a095324bd5aae46b1fb1d1e40b1c706446.tar.xz
samba-e84236a095324bd5aae46b1fb1d1e40b1c706446.zip
r26163: Add IDL and torture test for wkssvc_NetrGetJoinInformation().
Guenther (This used to be commit 234b380669a146cfe4a8a28d66c4efafcae93446)
Diffstat (limited to 'source4/torture/rpc/wkssvc.c')
-rw-r--r--source4/torture/rpc/wkssvc.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/source4/torture/rpc/wkssvc.c b/source4/torture/rpc/wkssvc.c
index 8c86b7e98a1..4ab6b79ce6f 100644
--- a/source4/torture/rpc/wkssvc.c
+++ b/source4/torture/rpc/wkssvc.c
@@ -978,6 +978,28 @@ static bool test_NetrMessageBufferSend(struct torture_context *tctx,
return true;
}
+static bool test_NetrGetJoinInformation(struct torture_context *tctx,
+ struct dcerpc_pipe *p)
+{
+ NTSTATUS status;
+ struct wkssvc_NetrGetJoinInformation r;
+ enum wkssvc_NetJoinStatus join_status;
+ const char *name_buffer = "";
+
+ r.in.server_name = dcerpc_server_name(p);
+ r.in.name_buffer = r.out.name_buffer = &name_buffer;
+ r.out.name_type = &join_status;
+
+ torture_comment(tctx, "testing NetrGetJoinInformation\n");
+
+ status = dcerpc_wkssvc_NetrGetJoinInformation(p, tctx, &r);
+ torture_assert_ntstatus_ok(tctx, status,
+ "NetrGetJoinInformation failed");
+ torture_assert_werr_ok(tctx, r.out.result,
+ "NetrGetJoinInformation failed");
+ return true;
+}
+
struct torture_suite *torture_rpc_wkssvc(TALLOC_CTX *mem_ctx)
{
struct torture_suite *suite;
@@ -1036,6 +1058,9 @@ 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, "NetrGetJoinInformation",
+ test_NetrGetJoinInformation);
+
torture_rpc_tcase_add_test(tcase, "NetrWorkstationStatisticsGet",
test_NetrWorkstationStatisticsGet);
torture_rpc_tcase_add_test(tcase, "NetrMessageBufferSend",