summaryrefslogtreecommitdiff
path: root/source4/dsdb/common/tests
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-11-10 15:21:40 +1100
committerAndrew Bartlett <abartlet@samba.org>2009-11-12 16:34:12 +1100
commit2a601719f219686b3a3b38b61b8f549941ecf632 (patch)
tree19e1cd0597902b7288597b2ae8233c985728c35b /source4/dsdb/common/tests
parent9ba1870fb9ae784b429b8e13b4ab0cc3def06aee (diff)
downloadsamba-2a601719f219686b3a3b38b61b8f549941ecf632.tar.gz
samba-2a601719f219686b3a3b38b61b8f549941ecf632.tar.bz2
samba-2a601719f219686b3a3b38b61b8f549941ecf632.zip
s4:dsdb Add expected value tests for most DRS syntax conversions
I've left out those for which I could not find an expected value in my default Windows 2003 server's database, and the values that rely on the current prefix map at the time. Andrew Bartlett
Diffstat (limited to 'source4/dsdb/common/tests')
-rw-r--r--source4/dsdb/common/tests/dsdb_dn.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/dsdb/common/tests/dsdb_dn.c b/source4/dsdb/common/tests/dsdb_dn.c
index 68f4dd1584..8f1aeca082 100644
--- a/source4/dsdb/common/tests/dsdb_dn.c
+++ b/source4/dsdb/common/tests/dsdb_dn.c
@@ -111,7 +111,7 @@ static bool torture_dsdb_dn_attrs(struct torture_context *torture)
return true;
}
-static bool torture_dsdb_dn(struct torture_context *torture)
+static bool torture_dsdb_dn_valid(struct torture_context *torture)
{
TALLOC_CTX *mem_ctx = talloc_new(torture);
struct ldb_context *ldb;
@@ -339,17 +339,17 @@ static bool torture_dsdb_dn_invalid(struct torture_context *torture)
return true;
}
-struct torture_suite *torture_dsdb(TALLOC_CTX *mem_ctx)
+struct torture_suite *torture_dsdb_dn(TALLOC_CTX *mem_ctx)
{
- struct torture_suite *suite = torture_suite_create(mem_ctx, "DSDB");
+ struct torture_suite *suite = torture_suite_create(mem_ctx, "DSDB-DN");
if (suite == NULL) {
return NULL;
}
- torture_suite_add_simple_test(suite, "DN", torture_dsdb_dn);
- torture_suite_add_simple_test(suite, "DN-INVALID", torture_dsdb_dn_invalid);
- torture_suite_add_simple_test(suite, "DN-ATTRS", torture_dsdb_dn_attrs);
+ torture_suite_add_simple_test(suite, "VALID", torture_dsdb_dn_valid);
+ torture_suite_add_simple_test(suite, "INVALID", torture_dsdb_dn_invalid);
+ torture_suite_add_simple_test(suite, "ATTRS", torture_dsdb_dn_attrs);
suite->description = talloc_strdup(suite, "DSDB DN tests");