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

obnox at samba.org obnox at samba.org
Sun Sep 30 09:19:10 GMT 2007


Author: obnox
Date: 2007-09-30 09:19:10 +0000 (Sun, 30 Sep 2007)
New Revision: 25440

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

Log:
Add simple WINBINDD_SETPWENT and WINBINDD_ENDPWENT tests.
WINBINDD_GETPWENT is to follow.

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-30 09:15:04 UTC (rev 25439)
+++ branches/SAMBA_4_0/source/torture/winbind/struct_based.c	2007-09-30 09:19:10 UTC (rev 25440)
@@ -626,6 +626,36 @@
 	return true;
 }
 
+static bool torture_winbind_struct_setpwent(struct torture_context *torture)
+{
+	struct winbindd_request req;
+	struct winbindd_response rep;
+
+	torture_comment(torture, "Running WINBINDD_SETPWENT (struct based)\n");
+
+	ZERO_STRUCT(req);
+	ZERO_STRUCT(rep);
+
+	DO_STRUCT_REQ_REP(WINBINDD_SETPWENT, &req, &rep);
+
+	return true;
+}
+
+static bool torture_winbind_struct_endpwent(struct torture_context *torture)
+{
+	struct winbindd_request req;
+	struct winbindd_response rep;
+
+	torture_comment(torture, "Running WINBINDD_ENDPWENT (struct based)\n");
+
+	ZERO_STRUCT(req);
+	ZERO_STRUCT(rep);
+
+	DO_STRUCT_REQ_REP(WINBINDD_ENDPWENT, &req, &rep);
+
+	return true;
+}
+
 struct torture_suite *torture_winbind_struct_init(void)
 {
 	struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "STRUCT");
@@ -644,6 +674,8 @@
 	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);
+	torture_suite_add_simple_test(suite, "SETPWENT", torture_winbind_struct_setpwent);
+	torture_suite_add_simple_test(suite, "ENDPWENT", torture_winbind_struct_endpwent);
 
 	suite->description = talloc_strdup(suite, "WINBIND - struct based protocol tests");
 



More information about the samba-cvs mailing list