summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamen.mazdrashki@postpath.com>2009-08-28 18:35:31 +0300
committerAndrew Bartlett <abartlet@samba.org>2009-09-08 22:44:50 +1000
commit29040344105988cb9674c0f450ef9e739e9ece2a (patch)
treed629ad466ebd09f5501b27cc8e318243325fd29f /source4/torture
parent899fc0ddde8307e7af218b37a21404e4285da7e6 (diff)
downloadsamba-29040344105988cb9674c0f450ef9e739e9ece2a.tar.gz
samba-29040344105988cb9674c0f450ef9e739e9ece2a.tar.bz2
samba-29040344105988cb9674c0f450ef9e739e9ece2a.zip
tort: RPC-CRACKNAMES test case refactored
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/drsuapi_cracknames.c17
-rw-r--r--source4/torture/rpc/rpc.c2
2 files changed, 18 insertions, 1 deletions
diff --git a/source4/torture/rpc/drsuapi_cracknames.c b/source4/torture/rpc/drsuapi_cracknames.c
index 42373a8c4f..5377882446 100644
--- a/source4/torture/rpc/drsuapi_cracknames.c
+++ b/source4/torture/rpc/drsuapi_cracknames.c
@@ -1002,3 +1002,20 @@ bool test_DsCrackNames(struct torture_context *tctx,
return test_DsCrackNamesMatrix(tctx, priv, FQDN_1779_name,
user_principal_name, service_principal_name);
}
+
+/**
+ * CRACKNAMES test suite implementation
+ */
+void torture_rpc_drsuapi_cracknames_tcase(struct torture_suite *suite)
+{
+ typedef bool (*run_func) (struct torture_context *test, void *tcase_data);
+
+ struct torture_test *test;
+ struct torture_tcase *tcase = torture_suite_add_tcase(suite, "CRACKNAMES");
+
+ torture_tcase_set_fixture(tcase,
+ torture_rpc_drsuapi_tcase_setup,
+ torture_rpc_drsuapi_tcase_teardown);
+
+ test = torture_tcase_add_simple_test(tcase, "CRACKNAMES-TEST", (run_func)test_DsCrackNames);
+}
diff --git a/source4/torture/rpc/rpc.c b/source4/torture/rpc/rpc.c
index 736b037600..d0448c8d48 100644
--- a/source4/torture/rpc/rpc.c
+++ b/source4/torture/rpc/rpc.c
@@ -490,7 +490,7 @@ NTSTATUS torture_rpc_init(void)
torture_suite_add_simple_test(suite, "SAMBA3-WKSSVC", torture_samba3_rpc_wkssvc);
torture_suite_add_simple_test(suite, "SAMBA3-WINREG", torture_samba3_rpc_winreg);
torture_suite_add_simple_test(suite, "DRSUAPI", torture_rpc_drsuapi);
- torture_suite_add_simple_test(suite, "CRACKNAMES", torture_rpc_drsuapi_cracknames);
+ torture_rpc_drsuapi_cracknames_tcase(suite);
torture_suite_add_suite(suite, torture_rpc_dssetup(suite));
torture_suite_add_suite(suite, torture_rpc_browser(suite));
torture_suite_add_simple_test(suite, "SAMBA3-REGCONFIG", torture_samba3_regconfig);