2006-03-17 19:45:24 +03:00
/*
Unix SMB / CIFS implementation .
SMB torture tester
Copyright ( C ) Jelmer Vernooij 2006
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
2007-07-10 06:07:03 +04:00
the Free Software Foundation ; either version 3 of the License , or
2006-03-17 19:45:24 +03:00
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
2007-07-10 06:07:03 +04:00
along with this program . If not , see < http : //www.gnu.org/licenses/>.
2006-03-17 19:45:24 +03:00
*/
# include "includes.h"
# include "torture/torture.h"
# include "torture/libnet/proto.h"
NTSTATUS torture_net_init ( void )
{
2006-12-13 02:23:50 +03:00
struct torture_suite * suite = torture_suite_create ( talloc_autofree_context ( ) , " NET " ) ;
2006-10-16 17:06:41 +04:00
torture_suite_add_simple_test ( suite , " USERINFO " , torture_userinfo ) ;
torture_suite_add_simple_test ( suite , " USERADD " , torture_useradd ) ;
torture_suite_add_simple_test ( suite , " USERDEL " , torture_userdel ) ;
torture_suite_add_simple_test ( suite , " USERMOD " , torture_usermod ) ;
torture_suite_add_simple_test ( suite , " DOMOPEN " , torture_domainopen ) ;
2007-08-20 01:09:15 +04:00
torture_suite_add_simple_test ( suite , " GROUPINFO " , torture_groupinfo ) ;
2007-09-27 04:27:26 +04:00
torture_suite_add_simple_test ( suite , " GROUPADD " , torture_groupadd ) ;
2006-10-16 17:06:41 +04:00
torture_suite_add_simple_test ( suite , " API-LOOKUP " , torture_lookup ) ;
torture_suite_add_simple_test ( suite , " API-LOOKUPHOST " , torture_lookup_host ) ;
torture_suite_add_simple_test ( suite , " API-LOOKUPPDC " , torture_lookup_pdc ) ;
torture_suite_add_simple_test ( suite , " API-LOOKUPNAME " , torture_lookup_sam_name ) ;
torture_suite_add_simple_test ( suite , " API-CREATEUSER " , torture_createuser ) ;
torture_suite_add_simple_test ( suite , " API-DELETEUSER " , torture_deleteuser ) ;
torture_suite_add_simple_test ( suite , " API-MODIFYUSER " , torture_modifyuser ) ;
torture_suite_add_simple_test ( suite , " API-USERINFO " , torture_userinfo_api ) ;
2006-11-07 02:23:47 +03:00
torture_suite_add_simple_test ( suite , " API-USERLIST " , torture_userlist ) ;
2007-08-27 01:48:26 +04:00
torture_suite_add_simple_test ( suite , " API-GROUPINFO " , torture_groupinfo_api ) ;
2006-10-16 17:06:41 +04:00
torture_suite_add_simple_test ( suite , " API-RPCCONN-BIND " , torture_rpc_connect_binding ) ;
torture_suite_add_simple_test ( suite , " API-RPCCONN-SRV " , torture_rpc_connect_srv ) ;
torture_suite_add_simple_test ( suite , " API-RPCCONN-PDC " , torture_rpc_connect_pdc ) ;
torture_suite_add_simple_test ( suite , " API-RPCCONN-DC " , torture_rpc_connect_dc ) ;
torture_suite_add_simple_test ( suite , " API-RPCCONN-DCINFO " , torture_rpc_connect_dc_info ) ;
torture_suite_add_simple_test ( suite , " API-LISTSHARES " , torture_listshares ) ;
torture_suite_add_simple_test ( suite , " API-DELSHARE " , torture_delshare ) ;
torture_suite_add_simple_test ( suite , " API-DOMOPENLSA " , torture_domain_open_lsa ) ;
torture_suite_add_simple_test ( suite , " API-DOMCLOSELSA " , torture_domain_close_lsa ) ;
torture_suite_add_simple_test ( suite , " API-DOMOPENSAMR " , torture_domain_open_samr ) ;
torture_suite_add_simple_test ( suite , " API-DOMCLOSESAMR " , torture_domain_close_samr ) ;
2006-12-13 02:23:50 +03:00
torture_suite_add_simple_test ( suite , " API-BECOME-DC " , torture_net_become_dc ) ;
2007-04-29 16:32:17 +04:00
torture_suite_add_simple_test ( suite , " API-DOMLIST " , torture_domain_list ) ;
2006-10-16 17:06:41 +04:00
2006-12-13 02:23:50 +03:00
suite - > description = talloc_strdup ( suite , " libnet convenience interface tests " ) ;
2006-10-16 17:06:41 +04:00
torture_register_suite ( suite ) ;
2006-03-17 19:45:24 +03:00
return NT_STATUS_OK ;
}