s4 torture: add new rpc torture tests for backup key remote protocol
[mat/samba.git] / source4 / torture / rpc / rpc.c
index 63ebe6ce9a47b737c148da4404fc4e8030e804d1..9a761fa0483dbd126ce03488a3e23fb1d1f344b5 100644 (file)
@@ -151,7 +151,7 @@ static bool torture_rpc_setup_machine_workstation(struct torture_context *tctx,
 
        torture_assert_ntstatus_ok(tctx, status, "Error connecting to server");
 
-       return true;
+       return NT_STATUS_IS_OK(status);
 }
 
 static bool torture_rpc_setup_machine_bdc(struct torture_context *tctx,
@@ -183,7 +183,7 @@ static bool torture_rpc_setup_machine_bdc(struct torture_context *tctx,
 
        torture_assert_ntstatus_ok(tctx, status, "Error connecting to server");
 
-       return true;
+       return NT_STATUS_IS_OK(status);
 }
 
 _PUBLIC_ struct torture_rpc_tcase *torture_suite_add_machine_workstation_rpc_iface_tcase(
@@ -259,7 +259,7 @@ static bool torture_rpc_setup_anonymous(struct torture_context *tctx,
 
        torture_assert_ntstatus_ok(tctx, status, "Error connecting to server");
 
-       return true;
+       return NT_STATUS_IS_OK(status);
 }
 
 static bool torture_rpc_setup (struct torture_context *tctx, void **data)
@@ -278,7 +278,7 @@ static bool torture_rpc_setup (struct torture_context *tctx, void **data)
 
        torture_assert_ntstatus_ok(tctx, status, "Error connecting to server");
 
-       return true;
+       return NT_STATUS_IS_OK(status);
 }
 
 
@@ -430,6 +430,7 @@ NTSTATUS torture_rpc_init(void)
        torture_suite_add_suite(suite, torture_rpc_lsa_lookup_names(suite));
        torture_suite_add_suite(suite, torture_rpc_lsa_secrets(suite));
        torture_suite_add_suite(suite, torture_rpc_lsa_trusted_domains(suite));
+       torture_suite_add_suite(suite, torture_rpc_lsa_forest_trust(suite));
        torture_suite_add_suite(suite, torture_rpc_lsa_privileges(suite));
        torture_suite_add_suite(suite, torture_rpc_echo(suite));
        torture_suite_add_suite(suite, torture_rpc_dfs(suite));
@@ -444,8 +445,8 @@ NTSTATUS torture_rpc_init(void)
        torture_suite_add_suite(suite, torture_rpc_spoolss(suite));
        torture_suite_add_suite(suite, torture_rpc_spoolss_notify(suite));
        torture_suite_add_suite(suite, torture_rpc_spoolss_win(suite));
-       torture_suite_add_suite(suite, torture_rpc_spoolss_printer(suite));
        torture_suite_add_suite(suite, torture_rpc_spoolss_driver(suite));
+       torture_suite_add_suite(suite, torture_rpc_spoolss_access(suite));
        torture_suite_add_simple_test(suite, "SAMR", torture_rpc_samr);
        torture_suite_add_simple_test(suite, "SAMR-USERS", torture_rpc_samr_users);
        torture_suite_add_simple_test(suite, "SAMR-PASSWORDS", torture_rpc_samr_passwords);
@@ -484,11 +485,12 @@ NTSTATUS torture_rpc_init(void)
        torture_suite_add_suite(suite, torture_rpc_browser(suite));
        torture_suite_add_simple_test(suite, "ALTERCONTEXT", torture_rpc_alter_context);
        torture_suite_add_simple_test(suite, "JOIN", torture_rpc_join);
-       torture_drs_rpc_dssync_tcase(suite);
        torture_drs_rpc_dsgetinfo_tcase(suite);
        torture_suite_add_simple_test(suite, "BENCH-RPC", torture_bench_rpc);
        torture_suite_add_simple_test(suite, "ASYNCBIND", torture_async_bind);
        torture_suite_add_suite(suite, torture_rpc_ntsvcs(suite));
+       torture_suite_add_suite(suite, torture_rpc_bind(suite));
+       torture_suite_add_suite(suite, torture_rpc_backupkey(suite));
 
        suite->description = talloc_strdup(suite, "DCE/RPC protocol and interface tests");