From f04689ae63a9dfdca6d5eb8679186561d3e450b4 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 6 Apr 2011 20:14:54 +0200 Subject: s4:ldb/tests: add tests for ldbmodify and 'modrdn' Signed-off-by: Simo Sorce metze --- source4/lib/ldb/tests/test-generic.sh | 5 ++++- source4/lib/ldb/tests/test-modify-modrdn.ldif | 12 ++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 source4/lib/ldb/tests/test-modify-modrdn.ldif (limited to 'source4/lib/ldb') diff --git a/source4/lib/ldb/tests/test-generic.sh b/source4/lib/ldb/tests/test-generic.sh index 8bbb7698fd..ae9ff7344a 100755 --- a/source4/lib/ldb/tests/test-generic.sh +++ b/source4/lib/ldb/tests/test-generic.sh @@ -22,7 +22,10 @@ $VALGRIND ldbmodify$EXEEXT $LDBDIR/tests/test-modify.ldif || exit 1 echo "Showing modified record" $VALGRIND ldbsearch$EXEEXT '(uid=uham)' || exit 1 -echo "Rename entry" +echo "Rename entry with ldbmodify - modrdn" +$VALGRIND ldbmodify$EXEEXT $LDBDIR/tests/test-modify-modrdn.ldif || exit 1 + +echo "Rename entry with ldbrename" OLDDN="cn=Ursula Hampster,ou=Alumni Association,ou=People,o=University of Michigan,c=TEST" NEWDN="cn=Hampster Ursula,ou=Alumni Association,ou=People,o=University of Michigan,c=TEST" $VALGRIND ldbrename$EXEEXT "$OLDDN" "$NEWDN" || exit 1 diff --git a/source4/lib/ldb/tests/test-modify-modrdn.ldif b/source4/lib/ldb/tests/test-modify-modrdn.ldif new file mode 100644 index 0000000000..efa3149462 --- /dev/null +++ b/source4/lib/ldb/tests/test-modify-modrdn.ldif @@ -0,0 +1,12 @@ +dn: cn=Ursula Hampster,ou=Alumni Association,ou=People,o=University of Michiga + n,c=TEST +changetype: moddn +newrdn: cn=Hampster Ursula +deleteoldrdn: 1 +newsuperior: ou=Alumni Association,ou=People,o=University of Michigan,c=TEST + +dn: cn=Hampster Ursula,ou=Alumni Association,ou=People,o=University of Michiga + n,c=TEST +changetype: modrdn +newrdn: cn=Ursula Hampster +deleteoldrdn: 1 -- cgit