Line data Source code
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/libnet.h"
25 : #include "torture/libnet/proto.h"
26 :
27 2354 : NTSTATUS torture_net_init(TALLOC_CTX *ctx)
28 : {
29 2354 : struct torture_suite *suite = torture_suite_create(
30 : ctx, "net");
31 :
32 2354 : torture_suite_add_simple_test(suite, "userinfo", torture_userinfo);
33 2354 : torture_suite_add_simple_test(suite, "useradd", torture_useradd);
34 2354 : torture_suite_add_simple_test(suite, "userdel", torture_userdel);
35 2354 : torture_suite_add_simple_test(suite, "usermod", torture_usermod);
36 2354 : torture_suite_add_simple_test(suite, "domopen", torture_domainopen);
37 2354 : torture_suite_add_simple_test(suite, "groupinfo", torture_groupinfo);
38 2354 : torture_suite_add_simple_test(suite, "groupadd", torture_groupadd);
39 2354 : torture_suite_add_simple_test(suite, "api.lookup", torture_lookup);
40 2354 : torture_suite_add_simple_test(suite, "api.lookuphost", torture_lookup_host);
41 2354 : torture_suite_add_simple_test(suite, "api.lookuppdc", torture_lookup_pdc);
42 2354 : torture_suite_add_simple_test(suite, "api.lookupname", torture_lookup_sam_name);
43 2354 : torture_suite_add_simple_test(suite, "api.createuser", torture_createuser);
44 2354 : torture_suite_add_simple_test(suite, "api.deleteuser", torture_deleteuser);
45 2354 : torture_suite_add_simple_test(suite, "api.modifyuser", torture_modifyuser);
46 2354 : torture_suite_add_simple_test(suite, "api.userinfo", torture_userinfo_api);
47 2354 : torture_suite_add_simple_test(suite, "api.userlist", torture_userlist);
48 2354 : torture_suite_add_simple_test(suite, "api.groupinfo", torture_groupinfo_api);
49 2354 : torture_suite_add_simple_test(suite, "api.grouplist", torture_grouplist);
50 2354 : torture_suite_add_simple_test(suite, "api.creategroup", torture_creategroup);
51 2354 : torture_suite_add_simple_test(suite, "api.rpcconn.bind", torture_rpc_connect_binding);
52 2354 : torture_suite_add_simple_test(suite, "api.rpcconn.srv", torture_rpc_connect_srv);
53 2354 : torture_suite_add_simple_test(suite, "api.rpcconn.pdc", torture_rpc_connect_pdc);
54 2354 : torture_suite_add_simple_test(suite, "api.rpcconn.dc", torture_rpc_connect_dc);
55 2354 : torture_suite_add_simple_test(suite, "api.rpcconn.dcinfo", torture_rpc_connect_dc_info);
56 2354 : torture_suite_add_simple_test(suite, "api.listshares", torture_listshares);
57 2354 : torture_suite_add_simple_test(suite, "api.delshare", torture_delshare);
58 2354 : torture_suite_add_simple_test(suite, "api.domopenlsa", torture_domain_open_lsa);
59 2354 : torture_suite_add_simple_test(suite, "api.domcloselsa", torture_domain_close_lsa);
60 2354 : torture_suite_add_simple_test(suite, "api.domopensamr", torture_domain_open_samr);
61 2354 : torture_suite_add_simple_test(suite, "api.domclosesamr", torture_domain_close_samr);
62 2354 : torture_suite_add_simple_test(suite, "api.become.dc", torture_net_become_dc);
63 2354 : torture_suite_add_simple_test(suite, "api.domlist", torture_domain_list);
64 :
65 2354 : suite->description = talloc_strdup(suite, "libnet convenience interface tests");
66 :
67 2354 : torture_register_suite(ctx, suite);
68 :
69 2354 : return NT_STATUS_OK;
70 : }
|