summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-09-20 21:28:06 +0300
committerKamen Mazdrashki <kamenim@samba.org>2010-09-21 00:15:24 +0300
commit4752a6b6d7767a62f322ee3d8e3a412e7699fcea (patch)
tree74ab4ee9a0f5cd1e0dd0bcf21d50b1f61eb0f298 /source4
parentf06d98764a455981c664512acc423715dec3d7a4 (diff)
downloadsamba-4752a6b6d7767a62f322ee3d8e3a412e7699fcea.tar.gz
samba-4752a6b6d7767a62f322ee3d8e3a412e7699fcea.tar.bz2
samba-4752a6b6d7767a62f322ee3d8e3a412e7699fcea.zip
s4-test: yet another test for ATTID-ot-OID conversion
Test with a valid ATTID for prefixMap lookups, but supplied ATTID is with index not to be found in the test prefixMap
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/drs/unit/prefixmap_tests.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source4/torture/drs/unit/prefixmap_tests.c b/source4/torture/drs/unit/prefixmap_tests.c
index a4521eb675..a954399771 100644
--- a/source4/torture/drs/unit/prefixmap_tests.c
+++ b/source4/torture/drs/unit/prefixmap_tests.c
@@ -394,8 +394,13 @@ static bool torture_drs_unit_pfm_oid_from_attid_check_attid(struct torture_conte
const char *oid;
/* Test with valid prefixMap attid */
- werr = dsdb_schema_pfm_oid_from_attid(priv->pfm_full, 0x00000000, tctx, &oid);
- torture_assert_werr_ok(tctx, werr, "Testing prefixMap type attid = 0x0000000");
+ werr = dsdb_schema_pfm_oid_from_attid(priv->pfm_full, 0x00010001, tctx, &oid);
+ torture_assert_werr_ok(tctx, werr, "Testing prefixMap type attid = 0x00010001");
+
+ /* Test with valid attid but invalid index */
+ werr = dsdb_schema_pfm_oid_from_attid(priv->pfm_full, 0x01110001, tctx, &oid);
+ torture_assert_werr_equal(tctx, werr, WERR_DS_NO_ATTRIBUTE_OR_VALUE,
+ "Testing invalid-index attid = 0x01110001");
/* Test with attid in msDS-IntId range */
werr = dsdb_schema_pfm_oid_from_attid(priv->pfm_full, 0x80000000, tctx, &oid);