summaryrefslogtreecommitdiff
path: root/source4/torture/local
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-02-15 01:37:57 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-02-15 01:37:57 +0100
commitd499dfd9388f39d0b45ba586169bd3c4b7138dd7 (patch)
tree940ee4622b044a243972f292ba4aca85da68bd9c /source4/torture/local
parent3d6da3b162561b756a002c54f94a6739cfbb08fe (diff)
downloadsamba-d499dfd9388f39d0b45ba586169bd3c4b7138dd7.tar.gz
samba-d499dfd9388f39d0b45ba586169bd3c4b7138dd7.tar.bz2
samba-d499dfd9388f39d0b45ba586169bd3c4b7138dd7.zip
Add test for provision_bare() code.
(This used to be commit 0f3a1dbb5355bf5181d9a100af35be8a7f292be6)
Diffstat (limited to 'source4/torture/local')
-rw-r--r--source4/torture/local/torture.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/source4/torture/local/torture.c b/source4/torture/local/torture.c
index b57361bc8d..7d12c467df 100644
--- a/source4/torture/local/torture.c
+++ b/source4/torture/local/torture.c
@@ -39,12 +39,33 @@ static bool test_tempdir(struct torture_context *tctx)
return true;
}
+static bool test_provision(struct torture_context *tctx)
+{
+ NTSTATUS status;
+
+ status = provision_bare(tctx, tctx->lp_ctx,
+ "example.com", "SOME-SITE-NAME",
+ "DC=EXAMPLE,DC=COM",
+ "DC=EXAMPLE,DC=COM",
+ NULL, NULL, NULL,
+ "FOO", "EXAMPLE.COM",
+ "EXAMPLE", NULL,
+ NULL, "geheim",
+ NULL, NULL,
+ NULL, NULL, NULL, NULL, NULL, NULL);
+
+ torture_assert_ntstatus_ok(tctx, status, "provision");
+
+ return true;
+}
+
struct torture_suite *torture_local_torture(TALLOC_CTX *mem_ctx)
{
struct torture_suite *suite = torture_suite_create(mem_ctx,
"TORTURE");
torture_suite_add_simple_test(suite, "tempdir", test_tempdir);
+ torture_suite_add_simple_test(suite, "provision", test_provision);
return suite;
}