diff options
author | Andrew Tridgell <tridge@samba.org> | 2008-02-16 07:27:49 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2008-02-16 07:27:49 +1100 |
commit | 10e2530eed6e9ce0c532a2b62eee4c315e62b2ea (patch) | |
tree | 426d2d1290083bd414b1a445f6f10ceed17b4f5f /source4/torture/local | |
parent | 2e4e06c6e69d881b0fc3c53df50db607fcce4a91 (diff) | |
parent | 57e910668d70a266ddf3a1296625fec17661a882 (diff) | |
download | samba-10e2530eed6e9ce0c532a2b62eee4c315e62b2ea.tar.gz samba-10e2530eed6e9ce0c532a2b62eee4c315e62b2ea.tar.bz2 samba-10e2530eed6e9ce0c532a2b62eee4c315e62b2ea.zip |
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit 26475a231f73aaeef31e433b33dbfee6158e321d)
Diffstat (limited to 'source4/torture/local')
-rw-r--r-- | source4/torture/local/torture.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/source4/torture/local/torture.c b/source4/torture/local/torture.c index b57361bc8d..3273015347 100644 --- a/source4/torture/local/torture.c +++ b/source4/torture/local/torture.c @@ -39,12 +39,47 @@ static bool test_tempdir(struct torture_context *tctx) return true; } +static bool test_provision(struct torture_context *tctx) +{ + NTSTATUS status; + struct provision_settings settings; + + settings.dns_name = "example.com"; + settings.site_name = "SOME-SITE-NAME"; + settings.root_dn_str = "DC=EXAMPLE,DC=COM"; + settings.domain_dn_str = "DC=EXAMPLE,DC=COM"; + settings.config_dn_str = NULL; + settings.schema_dn_str = NULL; + settings.invocation_id = NULL; + settings.netbios_name = "FOO"; + settings.realm = "EXAMPLE.COM"; + settings.domain = "EXAMPLE"; + settings.ntds_guid = NULL; + settings.ntds_dn_str = NULL; + settings.machine_password = "geheim"; + settings.samdb_ldb = NULL; + settings.secrets_ldb = NULL; + settings.secrets_keytab = NULL; + settings.schemadn_ldb = NULL; + settings.configdn_ldb = NULL; + settings.domaindn_ldb = NULL; + settings.templates_ldb = NULL; + settings.dns_keytab = NULL; + + status = provision_bare(tctx, tctx->lp_ctx, &settings); + + 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; } |