From 6a680cea6a58f4a0d980be8ba47286293ab6f9ab Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Mon, 5 Oct 2009 18:39:13 +0300 Subject: s4/drs(tort): TORTURE_DRS torture module - initial implementation Drsuapi tests module registers two suites: - DRS-RPC - tests to be executed against remote machine - DRS-UNIT - unit test for internal testing --- source4/torture/drs/drs_init.c | 68 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 source4/torture/drs/drs_init.c (limited to 'source4/torture/drs/drs_init.c') diff --git a/source4/torture/drs/drs_init.c b/source4/torture/drs/drs_init.c new file mode 100644 index 0000000000..f26a66818a --- /dev/null +++ b/source4/torture/drs/drs_init.c @@ -0,0 +1,68 @@ +/* + Unix SMB/CIFS implementation. + + DRSUAPI utility functions to be used in torture tests + + Copyright (C) Kamen Mazdrashki 2009 + + 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 + the Free Software Foundation; either version 3 of the License, or + (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 + along with this program. If not, see . +*/ + +#include "includes.h" +#include "torture/smbtorture.h" +#include "torture/drs/proto.h" + +/** + * DRSUAPI tests to be executed remotely + */ +static struct torture_suite * torture_drs_rpc_suite(TALLOC_CTX *mem_ctx) +{ + struct torture_suite *suite = torture_suite_create( + talloc_autofree_context(), + "RPC"); + + return suite; +} + +/** + * DRSUAPI tests to be executed remotely + */ +static struct torture_suite * torture_drs_unit_suite(TALLOC_CTX *mem_ctx) +{ + struct torture_suite *suite = torture_suite_create( + talloc_autofree_context(), + "UNIT"); + + return suite; +} + +/** + * DRSUAPI torture module initialization + */ +NTSTATUS torture_drs_init(void) +{ + struct torture_suite *suite = torture_suite_create( + talloc_autofree_context(), + "DRS"); + + torture_suite_add_suite(suite, torture_drs_rpc_suite(suite)); + torture_suite_add_suite(suite, torture_drs_unit_suite(suite)); + + suite->description = talloc_strdup(suite, + "DRSUAPI related tests - Remote and Local"); + + torture_register_suite(suite); + + return NT_STATUS_OK; +} -- cgit From 47f30fd3e785f51f3a14c407e20cf1dcaa747660 Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Wed, 7 Oct 2009 18:32:43 +0300 Subject: s4/drs(tort): fix compile time warning --- source4/torture/drs/drs_init.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/torture/drs/drs_init.c') diff --git a/source4/torture/drs/drs_init.c b/source4/torture/drs/drs_init.c index f26a66818a..7c7581326f 100644 --- a/source4/torture/drs/drs_init.c +++ b/source4/torture/drs/drs_init.c @@ -21,6 +21,7 @@ #include "includes.h" #include "torture/smbtorture.h" +#include "torture/rpc/drsuapi.h" #include "torture/drs/proto.h" /** -- cgit From 421191a4433e289adf6c2d9739d1ce091af3774f Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Thu, 8 Oct 2009 02:56:22 +0300 Subject: s4/drs(tort): prefixMap unit test initial implementatoin --- source4/torture/drs/drs_init.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/torture/drs/drs_init.c') diff --git a/source4/torture/drs/drs_init.c b/source4/torture/drs/drs_init.c index 7c7581326f..081565fc57 100644 --- a/source4/torture/drs/drs_init.c +++ b/source4/torture/drs/drs_init.c @@ -45,6 +45,8 @@ static struct torture_suite * torture_drs_unit_suite(TALLOC_CTX *mem_ctx) talloc_autofree_context(), "UNIT"); + torture_drs_unit_prefixmap(suite); + return suite; } -- cgit