From 72c558f20251acb2e0f4ecd55fade23d489bfee8 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 12 Jun 2004 11:39:23 +0000 Subject: [PATCH] use '/noprompt' parameter when requesting paged results --- tests/scripts/test025-limits | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/tests/scripts/test025-limits b/tests/scripts/test025-limits index 1f22388fab..1329f81d93 100755 --- a/tests/scripts/test025-limits +++ b/tests/scripts/test025-limits @@ -498,7 +498,7 @@ PAGESIZE=5 echo "Testing no limits requested for unlimited ID..." $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \ -D 'cn=Unlimited User,ou=People,dc=example,dc=com' \ - -E '!pr='$PAGESIZE '(objectClass=*)' $SEARCHOUT 2>&1 + -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' >$SEARCHOUT 2>&1 RC=$? COUNT=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT` case $RC in @@ -516,7 +516,7 @@ SIZELIMIT=2 echo "Testing size limit request ($SIZELIMIT) for unlimited ID..." $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret -z $SIZELIMIT \ -D 'cn=Unlimited User,ou=People,dc=example,dc=com' \ - -E '!pr='$PAGESIZE '(objectClass=*)' $SEARCHOUT 2>&1 + -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1 RC=$? COUNT=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT` case $RC in @@ -537,7 +537,7 @@ TIMELIMIT=10 echo "Testing time limit request ($TIMELIMIT s) for unlimited ID..." $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret -l $TIMELIMIT \ -D 'cn=Unlimited User,ou=People,dc=example,dc=com' \ - -E '!pr='$PAGESIZE '(objectClass=*)' $SEARCHOUT 2>&1 + -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1 RC=$? COUNT=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT` case $RC in @@ -557,7 +557,7 @@ esac echo "Testing no limits requested for soft limited ID..." $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \ -D 'cn=Soft Limited User,ou=People,dc=example,dc=com' \ - -E '!pr='$PAGESIZE '(objectClass=*)' $SEARCHOUT 2>&1 + -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1 RC=$? COUNT=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT` case $RC in @@ -578,7 +578,7 @@ SIZELIMIT=2 echo "Testing lower than soft limit request ($SIZELIMIT) for soft limited ID..." $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret -z $SIZELIMIT \ -D 'cn=Soft Limited User,ou=People,dc=example,dc=com' \ - -E '!pr='$PAGESIZE '(objectClass=*)' $SEARCHOUT 2>&1 + -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1 RC=$? COUNT=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT` case $RC in @@ -607,7 +607,7 @@ SIZELIMIT=100 echo "Testing higher than soft limit request ($SIZELIMIT) for soft limited ID..." $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret -z $SIZELIMIT \ -D 'cn=Soft Limited User,ou=People,dc=example,dc=com' \ - -E '!pr='$PAGESIZE '(objectClass=*)' $SEARCHOUT 2>&1 + -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1 RC=$? COUNT=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT` case $RC in @@ -636,7 +636,7 @@ SIZELIMIT=2 echo "Testing lower than hard limit request ($SIZELIMIT) for hard limited ID..." $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret -z $SIZELIMIT \ -D 'cn=Hard Limited User,ou=People,dc=example,dc=com' \ - -E '!pr='$PAGESIZE '(objectClass=*)' $SEARCHOUT 2>&1 + -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1 RC=$? COUNT=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT` case $RC in @@ -657,7 +657,7 @@ SIZELIMIT=100 echo "Testing higher than hard limit request ($SIZELIMIT) for hard limited ID..." $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret -z $SIZELIMIT \ -D 'cn=Hard Limited User,ou=People,dc=example,dc=com' \ - -E '!pr='$PAGESIZE '(objectClass=*)' $SEARCHOUT 2>&1 + -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1 RC=$? COUNT=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT` case $RC in @@ -680,7 +680,7 @@ esac echo "Testing lower than unchecked limit request for unchecked limited ID..." $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \ -D 'cn=Unchecked Limited User,ou=People,dc=example,dc=com' \ - -E '!pr='$PAGESIZE '(uid=uncheckedlimited)' $SEARCHOUT 2>&1 + -E '!pr='$PAGESIZE'/noprompt' '(uid=uncheckedlimited)' > $SEARCHOUT 2>&1 RC=$? COUNT=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT` case $RC in @@ -700,7 +700,7 @@ esac echo "Testing higher than unchecked limit requested for unchecked limited ID..." $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \ -D 'cn=Unchecked Limited User,ou=People,dc=example,dc=com' \ - -E '!pr='$PAGESIZE '(objectClass=*)' $SEARCHOUT 2>&1 + -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1 RC=$? COUNT=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT` case $RC in @@ -724,7 +724,7 @@ echo "" echo "Testing no limit requested for unlimited page size ID..." $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \ -D 'cn=Unlimited User,ou=Paged Results Users,dc=example,dc=com' \ - -E '!pr='$PAGESIZE '(objectClass=*)' $SEARCHOUT 2>&1 + -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1 RC=$? COUNT=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT` case $RC in @@ -744,7 +744,7 @@ esac echo "Testing no limit requested for limited page size ID..." $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \ -D 'cn=Page Size Limited User,ou=Paged Results Users,dc=example,dc=com' \ - -E '!pr='$PAGESIZE '(objectClass=*)' $SEARCHOUT 2>&1 + -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1 RC=$? COUNT=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT` case $RC in @@ -767,7 +767,7 @@ esac echo "Testing no limit requested for pagedResults disabled ID..." $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \ -D 'cn=Paged Results Disabled User,ou=Paged Results Users,dc=example,dc=com' \ - -E '!pr='$PAGESIZE '(objectClass=*)' $SEARCHOUT 2>&1 + -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1 RC=$? COUNT=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT` case $RC in @@ -790,7 +790,7 @@ esac echo "Testing no limit requested for pagedResults total count limited ID..." $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \ -D 'cn=Paged Results Limited User,ou=Paged Results Users,dc=example,dc=com' \ - -E '!pr='$PAGESIZE '(objectClass=*)' $SEARCHOUT 2>&1 + -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1 RC=$? COUNT=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT` case $RC in @@ -814,7 +814,7 @@ SIZELIMIT=8 echo "Testing higher than hard but lower then total count limit requested for pagedResults total count limited ID..." $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \ -D 'cn=Paged Results Limited User,ou=Paged Results Users,dc=example,dc=com' \ - -z $SIZELIMIT -E '!pr='$PAGESIZE '(objectClass=*)' $SEARCHOUT 2>&1 + -z $SIZELIMIT -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1 RC=$? COUNT=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT` case $RC in @@ -846,7 +846,7 @@ SIZELIMIT=15 echo "Testing higher than total count limit requested for pagedResults total count limited ID..." $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \ -D 'cn=Paged Results Limited User,ou=Paged Results Users,dc=example,dc=com' \ - -z $SIZELIMIT -E '!pr='$PAGESIZE '(objectClass=*)' $SEARCHOUT 2>&1 + -z $SIZELIMIT -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1 RC=$? COUNT=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT` case $RC in -- 2.39.5