s4-smbtorture: Make test names lowercase and dot-separated.
[metze/samba/wip.git] / source4 / torture / rpc / samr_accessmask.c
index 1bdfe22783d7551a62096c53d1cfa9a959493fe3..118026f80ffba8689c72677dc494e92876351573 100644 (file)
@@ -446,7 +446,7 @@ static bool test_samr_accessmask_LookupDomain(struct torture_context *tctx,
                        ld.in.connect_handle = &ch;
                        ld.in.domain_name    = &dn;
                        ld.out.sid           = &sid;
-                       dn.string            = lp_workgroup(tctx->lp_ctx);
+                       dn.string            = lpcfg_workgroup(tctx->lp_ctx);
 
                        torture_assert_ntstatus_ok(tctx, dcerpc_samr_LookupDomain_r(b, tctx, &ld),
                                "LookupDomain failed");
@@ -472,7 +472,7 @@ static bool test_samr_accessmask_LookupDomain(struct torture_context *tctx,
                        ld.in.connect_handle = &ch;
                        ld.in.domain_name    = &dn;
                        ld.out.sid           = &sid;
-                       dn.string            = lp_workgroup(tctx->lp_ctx);
+                       dn.string            = lpcfg_workgroup(tctx->lp_ctx);
 
                        torture_assert_ntstatus_ok(tctx, dcerpc_samr_LookupDomain_r(b, tctx, &ld),
                                "LookupDomain failed");
@@ -528,7 +528,7 @@ static bool test_samr_accessmask_OpenDomain(struct torture_context *tctx,
        ld.in.connect_handle = &ch;
        ld.in.domain_name    = &dn;
        ld.out.sid           = &sid;
-       dn.string            = lp_workgroup(tctx->lp_ctx);
+       dn.string            = lpcfg_workgroup(tctx->lp_ctx);
        torture_assert_ntstatus_ok(tctx, dcerpc_samr_LookupDomain_r(b, tctx, &ld),
                "LookupDomain failed");
        if (!NT_STATUS_IS_OK(ld.out.result)) {
@@ -616,7 +616,7 @@ static bool test_samr_connect(struct torture_context *tctx,
        }
 
        /* create a test user */
-       testuser = torture_create_testuser(tctx, TEST_USER_NAME, lp_workgroup(tctx->lp_ctx),
+       testuser = torture_create_testuser(tctx, TEST_USER_NAME, lpcfg_workgroup(tctx->lp_ctx),
                                           ACB_NORMAL, &testuser_passwd);
        if (!testuser) {
                printf("Failed to create test user\n");
@@ -624,7 +624,7 @@ static bool test_samr_connect(struct torture_context *tctx,
        }
        test_credentials = cli_credentials_init(tctx);
        cli_credentials_set_workstation(test_credentials, "localhost", CRED_SPECIFIED);
-       cli_credentials_set_domain(test_credentials, lp_workgroup(tctx->lp_ctx),
+       cli_credentials_set_domain(test_credentials, lpcfg_workgroup(tctx->lp_ctx),
                                   CRED_SPECIFIED);
        cli_credentials_set_username(test_credentials, TEST_USER_NAME, CRED_SPECIFIED);
        cli_credentials_set_password(test_credentials, testuser_passwd, CRED_SPECIFIED);
@@ -660,13 +660,13 @@ static bool test_samr_connect(struct torture_context *tctx,
 
 struct torture_suite *torture_rpc_samr_accessmask(TALLOC_CTX *mem_ctx)
 {
-       struct torture_suite *suite = torture_suite_create(mem_ctx, "SAMR-ACCESSMASK");
+       struct torture_suite *suite = torture_suite_create(mem_ctx, "samr.accessmask");
        struct torture_rpc_tcase *tcase;
 
        tcase = torture_suite_add_rpc_iface_tcase(suite, "samr",
                                                  &ndr_table_samr);
 
-       torture_rpc_tcase_add_test(tcase, "CONNECT", test_samr_connect);
+       torture_rpc_tcase_add_test(tcase, "connect", test_samr_connect);
 
        /* test which bits in the accessmask to Connect5 will allow
         * us to call OpenDomain() */
@@ -812,7 +812,7 @@ static bool test_samr_group(struct torture_context *tctx,
        }
        {
                struct samr_QueryGroupMember r;
-               struct samr_RidTypeArray *rids;
+               struct samr_RidAttrArray *rids;
 
                r.in.group_handle = &group_handle;
                r.out.rids = &rids;
@@ -1145,7 +1145,7 @@ static bool torture_rpc_samr_workstation_query(struct torture_context *tctx,
 
        torture_assert(tctx,
                test_samr_domain(tctx, b, SEC_FLAG_MAXIMUM_ALLOWED,
-                                lp_workgroup(tctx->lp_ctx),
+                                lpcfg_workgroup(tctx->lp_ctx),
                                 &connect_handle, &domain_handle),
                "failed to test domain");
 
@@ -1183,7 +1183,7 @@ static bool torture_rpc_samr_workstation_query(struct torture_context *tctx,
 
 struct torture_suite *torture_rpc_samr_workstation_auth(TALLOC_CTX *mem_ctx)
 {
-       struct torture_suite *suite = torture_suite_create(mem_ctx, "SAMR-MACHINE-AUTH");
+       struct torture_suite *suite = torture_suite_create(mem_ctx, "samr.machine.auth");
        struct torture_rpc_tcase *tcase;
 
        tcase = torture_suite_add_machine_workstation_rpc_iface_tcase(suite, "samr",