]> git.sur5r.net Git - openldap/commitdiff
unambiguate last set of tests
authorPierangelo Masarati <ando@openldap.org>
Sat, 17 Apr 2004 18:21:26 +0000 (18:21 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 17 Apr 2004 18:21:26 +0000 (18:21 +0000)
tests/data/slapd-limits.conf
tests/scripts/test025-limits

index b37cf9524ee399344cb4ee91581fbac07f8d548e..9be0262b89dda8d2dc69d86bca20da6fd7120ae5 100644 (file)
@@ -45,9 +45,9 @@ limits        dn.exact="cn=Soft Limited User,ou=People,o=University of Michigan,c=US" s
 limits dn.exact="cn=Hard Limited User,ou=People,o=University of Michigan,c=US" size.soft=4 size.hard=8
 limits dn.exact="cn=Unchecked Limited User,ou=People,o=University of Michigan,c=US" size.unchecked=4
 limits group="cn=Unchecked Limited Users,ou=Groups,o=University of Michigan,c=US" size.unchecked=4
-limits dn.regex="^cn=Foo User,ou=[^,]+,o=University of Michigan,c=US$" size.unchecked=4
-limits dn.onelevel="ou=People,o=University of Michigan,c=US" size.unchecked=4
-limits dn.children="ou=Groups,o=University of Michigan,c=US" size.unchecked=4
-limits dn.subtree="ou=Admin,o=University of Michigan,c=US" size.unchecked=4
-limits users size.unchecked=4
-limits anonymous size.unchecked=4
+limits dn.regex="^cn=Foo User,ou=[^,]+,o=University of Michigan,c=US$" size.soft=6
+limits dn.onelevel="ou=People,o=University of Michigan,c=US" size.soft=5
+limits dn.children="ou=Groups,o=University of Michigan,c=US" size.soft=4
+limits dn.subtree="ou=Admin,o=University of Michigan,c=US" size.soft=3
+limits users size.soft=2
+limits anonymous size.soft=1
index d098b97955ef8f4e60918ddb8f59685880386ee5..7e9c771c85ca2ef50e2e3236c1f2aabd709d5204 100755 (executable)
@@ -315,10 +315,18 @@ RC=$?
 COUNT=`cat $SEARCHOUT | grep '^# numEntries:' | sed 's;.*\([0-9]\+\)$;\1;'`
 case $RC in
        0)
-               echo "...success; didn't bump into server-side unchecked limit (got $COUNT entries)"
+               echo "...success; didn't bump into either requested ($SIZELIMIT) or server-side size limit (got $COUNT entries)"
        ;;
-       11)
-               echo "...bumped into server-side unchecked limit"
+       4)
+               if test "x$COUNT" != "x" ; then
+                       if test $SIZELIMIT = $COUNT ; then
+                               echo "...bumped into requested ($SIZELIMIT) size limit"
+                       else
+                               echo "...bumped into server-side size limit ($COUNT)"
+                       fi
+               else
+                       echo "...bumped into either requested ($SIZELIMIT) or server-side size limit"
+               fi
        ;;
        *)
                echo "ldapsearch failed ($RC)!"
@@ -335,10 +343,18 @@ RC=$?
 COUNT=`cat $SEARCHOUT | grep '^# numEntries:' | sed 's;.*\([0-9]\+\)$;\1;'`
 case $RC in
        0)
-               echo "...success; didn't bump into server-side unchecked limit (got $COUNT entries)"
+               echo "...success; didn't bump into either requested ($SIZELIMIT) or server-side size limit (got $COUNT entries)"
        ;;
-       11)
-               echo "...bumped into server-side unchecked limit"
+       4)
+               if test "x$COUNT" != "x" ; then
+                       if test $SIZELIMIT = $COUNT ; then
+                               echo "...bumped into requested ($SIZELIMIT) size limit"
+                       else
+                               echo "...bumped into server-side size limit ($COUNT)"
+                       fi
+               else
+                       echo "...bumped into either requested ($SIZELIMIT) or server-side size limit"
+               fi
        ;;
        *)
                echo "ldapsearch failed ($RC)!"
@@ -355,10 +371,18 @@ RC=$?
 COUNT=`cat $SEARCHOUT | grep '^# numEntries:' | sed 's;.*\([0-9]\+\)$;\1;'`
 case $RC in
        0)
-               echo "...success; didn't bump into server-side unchecked limit (got $COUNT entries)"
+               echo "...success; didn't bump into either requested ($SIZELIMIT) or server-side size limit (got $COUNT entries)"
        ;;
-       11)
-               echo "...bumped into server-side unchecked limit"
+       4)
+               if test "x$COUNT" != "x" ; then
+                       if test $SIZELIMIT = $COUNT ; then
+                               echo "...bumped into requested ($SIZELIMIT) size limit"
+                       else
+                               echo "...bumped into server-side size limit ($COUNT)"
+                       fi
+               else
+                       echo "...bumped into either requested ($SIZELIMIT) or server-side size limit"
+               fi
        ;;
        *)
                echo "ldapsearch failed ($RC)!"
@@ -375,10 +399,18 @@ RC=$?
 COUNT=`cat $SEARCHOUT | grep '^# numEntries:' | sed 's;.*\([0-9]\+\)$;\1;'`
 case $RC in
        0)
-               echo "...success; didn't bump into server-side unchecked limit (got $COUNT entries)"
+               echo "...success; didn't bump into either requested ($SIZELIMIT) or server-side size limit (got $COUNT entries)"
        ;;
-       11)
-               echo "...bumped into server-side unchecked limit"
+       4)
+               if test "x$COUNT" != "x" ; then
+                       if test $SIZELIMIT = $COUNT ; then
+                               echo "...bumped into requested ($SIZELIMIT) size limit"
+                       else
+                               echo "...bumped into server-side size limit ($COUNT)"
+                       fi
+               else
+                       echo "...bumped into either requested ($SIZELIMIT) or server-side size limit"
+               fi
        ;;
        *)
                echo "ldapsearch failed ($RC)!"
@@ -395,10 +427,18 @@ RC=$?
 COUNT=`cat $SEARCHOUT | grep '^# numEntries:' | sed 's;.*\([0-9]\+\)$;\1;'`
 case $RC in
        0)
-               echo "...success; didn't bump into server-side unchecked limit (got $COUNT entries)"
+               echo "...success; didn't bump into either requested ($SIZELIMIT) or server-side size limit (got $COUNT entries)"
        ;;
-       11)
-               echo "...bumped into server-side unchecked limit"
+       4)
+               if test "x$COUNT" != "x" ; then
+                       if test $SIZELIMIT = $COUNT ; then
+                               echo "...bumped into requested ($SIZELIMIT) size limit"
+                       else
+                               echo "...bumped into server-side size limit ($COUNT)"
+                       fi
+               else
+                       echo "...bumped into either requested ($SIZELIMIT) or server-side size limit"
+               fi
        ;;
        *)
                echo "ldapsearch failed ($RC)!"
@@ -414,10 +454,18 @@ RC=$?
 COUNT=`cat $SEARCHOUT | grep '^# numEntries:' | sed 's;.*\([0-9]\+\)$;\1;'`
 case $RC in
        0)
-               echo "...success; didn't bump into server-side unchecked limit (got $COUNT entries)"
+               echo "...success; didn't bump into either requested ($SIZELIMIT) or server-side size limit (got $COUNT entries)"
        ;;
-       11)
-               echo "...bumped into server-side unchecked limit"
+       4)
+               if test "x$COUNT" != "x" ; then
+                       if test $SIZELIMIT = $COUNT ; then
+                               echo "...bumped into requested ($SIZELIMIT) size limit"
+                       else
+                               echo "...bumped into server-side size limit ($COUNT)"
+                       fi
+               else
+                       echo "...bumped into either requested ($SIZELIMIT) or server-side size limit"
+               fi
        ;;
        *)
                echo "ldapsearch failed ($RC)!"