svn commit: samba r25409 - in branches/SAMBA_4_0/source/torture/winbind: .

obnox at samba.org obnox at samba.org
Fri Sep 28 18:46:57 GMT 2007


Author: obnox
Date: 2007-09-28 18:46:55 +0000 (Fri, 28 Sep 2007)
New Revision: 25409

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25409

Log:
Add SHOW_SEQUENCE winbind test (struct based).

Michael


Modified:
   branches/SAMBA_4_0/source/torture/winbind/struct_based.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/winbind/struct_based.c
===================================================================
--- branches/SAMBA_4_0/source/torture/winbind/struct_based.c	2007-09-28 18:26:51 UTC (rev 25408)
+++ branches/SAMBA_4_0/source/torture/winbind/struct_based.c	2007-09-28 18:46:55 UTC (rev 25409)
@@ -585,6 +585,25 @@
 	return true;
 }
 
+static bool torture_winbind_struct_show_sequence(struct torture_context *torture)
+{
+	struct winbindd_request req;
+	struct winbindd_response rep;
+
+	torture_comment(torture, "Running WINBINDD_SHOW_SEQUENCE (struct based)\n");
+
+	ZERO_STRUCT(req);
+	ZERO_STRUCT(rep);
+
+	DO_STRUCT_REQ_REP(WINBINDD_SHOW_SEQUENCE, &req, &rep);
+
+	if (rep.extra_data.data) {
+		torture_comment(torture, "%s", (char *)rep.extra_data.data);
+	}
+
+	return true;
+}
+
 struct torture_suite *torture_winbind_struct_init(void)
 {
 	struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "STRUCT");
@@ -602,6 +621,7 @@
 	torture_suite_add_simple_test(suite, "DSGETDCNAME", torture_winbind_struct_dsgetdcname);
 	torture_suite_add_simple_test(suite, "LIST_USERS", torture_winbind_struct_list_users);
 	torture_suite_add_simple_test(suite, "LIST_GROUPS", torture_winbind_struct_list_groups);
+	torture_suite_add_simple_test(suite, "SHOW_SEQUENCE", torture_winbind_struct_show_sequence);
 
 	suite->description = talloc_strdup(suite, "WINBIND - struct based protocol tests");
 



More information about the samba-cvs mailing list