s4-smbtorture: remove trailing whitespace in libnet torture tests.
[gd/samba-autobuild/.git] / source4 / torture / libnet / libnet.c
1 /* 
2    Unix SMB/CIFS implementation.
3    SMB torture tester
4    Copyright (C) Jelmer Vernooij 2006
5    
6    This program is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 3 of the License, or
9    (at your option) any later version.
10    
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15    
16    You should have received a copy of the GNU General Public License
17    along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #include "includes.h"
21 #include "torture/smbtorture.h"
22 #include "librpc/rpc/dcerpc.h"
23 #include "librpc/gen_ndr/lsa.h"
24 #include "libnet/composite.h"
25 #include "torture/libnet/proto.h"
26
27 NTSTATUS torture_net_init(void)
28 {
29         struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "NET");
30
31         torture_suite_add_simple_test(suite, "USERINFO", torture_userinfo);
32         torture_suite_add_simple_test(suite, "USERADD", torture_useradd);
33         torture_suite_add_simple_test(suite, "USERDEL", torture_userdel);
34         torture_suite_add_simple_test(suite, "USERMOD", torture_usermod);
35         torture_suite_add_simple_test(suite, "DOMOPEN", torture_domainopen);
36         torture_suite_add_simple_test(suite, "GROUPINFO", torture_groupinfo);
37         torture_suite_add_simple_test(suite, "GROUPADD", torture_groupadd);
38         torture_suite_add_simple_test(suite, "API-LOOKUP", torture_lookup);
39         torture_suite_add_simple_test(suite, "API-LOOKUPHOST", torture_lookup_host);
40         torture_suite_add_simple_test(suite, "API-LOOKUPPDC", torture_lookup_pdc);
41         torture_suite_add_simple_test(suite, "API-LOOKUPNAME", torture_lookup_sam_name);
42         torture_suite_add_simple_test(suite, "API-CREATEUSER", torture_createuser);
43         torture_suite_add_simple_test(suite, "API-DELETEUSER", torture_deleteuser);
44         torture_suite_add_simple_test(suite, "API-MODIFYUSER", torture_modifyuser);
45         torture_suite_add_simple_test(suite, "API-USERINFO", torture_userinfo_api);
46         torture_suite_add_simple_test(suite, "API-USERLIST", torture_userlist);
47         torture_suite_add_simple_test(suite, "API-GROUPINFO", torture_groupinfo_api);
48         torture_suite_add_simple_test(suite, "API-GROUPLIST", torture_grouplist);
49         torture_suite_add_simple_test(suite, "API-CREATEGROUP", torture_creategroup);
50         torture_suite_add_simple_test(suite, "API-RPCCONN-BIND", torture_rpc_connect_binding);
51         torture_suite_add_simple_test(suite, "API-RPCCONN-SRV", torture_rpc_connect_srv);
52         torture_suite_add_simple_test(suite, "API-RPCCONN-PDC", torture_rpc_connect_pdc);
53         torture_suite_add_simple_test(suite, "API-RPCCONN-DC", torture_rpc_connect_dc);
54         torture_suite_add_simple_test(suite, "API-RPCCONN-DCINFO", torture_rpc_connect_dc_info);
55         torture_suite_add_simple_test(suite, "API-LISTSHARES", torture_listshares);
56         torture_suite_add_simple_test(suite, "API-DELSHARE", torture_delshare);
57         torture_suite_add_simple_test(suite, "API-DOMOPENLSA", torture_domain_open_lsa);
58         torture_suite_add_simple_test(suite, "API-DOMCLOSELSA", torture_domain_close_lsa);
59         torture_suite_add_simple_test(suite, "API-DOMOPENSAMR", torture_domain_open_samr);
60         torture_suite_add_simple_test(suite, "API-DOMCLOSESAMR", torture_domain_close_samr);
61         torture_suite_add_simple_test(suite, "API-BECOME-DC", torture_net_become_dc);
62         torture_suite_add_simple_test(suite, "API-DOMLIST", torture_domain_list);
63
64         suite->description = talloc_strdup(suite, "libnet convenience interface tests");
65
66         torture_register_suite(suite);
67
68         return NT_STATUS_OK;
69 }