ITS#9010 - Fix test suite

Some additional fixes for the testsuite now that back-bdb/hdb are no
longer present.
This commit is contained in:
Quanah Gibson-Mount 2019-05-13 19:41:36 +00:00
parent 2a215dcd77
commit 262a074303
3 changed files with 3 additions and 13 deletions

View File

@ -10,9 +10,6 @@ structuralObjectClass: monitoredObject
monitorIsShadow: FALSE
namingContexts: o=OpenLDAP Project,l=Internet
readOnly: FALSE
olmBDBEntryCache: 0
olmBDBDNCache: 0
olmBDBIDLCache: 0
entryDN: cn=Database 1,cn=Databases,cn=Monitor
dn: cn=Database 2,cn=Databases,cn=Monitor

View File

@ -72,7 +72,7 @@ EOF
fi
fi
indexInclude="" mainInclude="" " nullExclude=""
indexInclude="" mainInclude="" nullExclude=""
test $INDEXDB = indexdb || indexInclude="# "
test $MAINDB = maindb || mainInclude="# "
case $BACKEND in

View File

@ -85,7 +85,7 @@ echo "Using ldapsearch to read database monitor entries..."
$LDAPSEARCH -S "" -b "$DATABASESMONITORDN" -h $LOCALHOST -p $PORT1 \
'objectclass=*' \
structuralObjectClass entryDN namingContexts readOnly \
monitorIsShadow monitorContext
monitorIsShadow monitorContext \
> $SEARCHOUT 2>&1
RC=$?
@ -98,15 +98,8 @@ fi
echo "Filtering ldapsearch results..."
$LDIFFILTER -b monitor < $SEARCHOUT > $SEARCHFLT
TMPMONITOROUT2=$MONITOROUT2
case $BACKEND in
*)
TMPMONITOROUT2=$TESTDIR/monitor2.out
;;
esac
echo "Comparing filter output..."
$CMP $SEARCHFLT $TMPMONITOROUT2 > $CMPOUT
$CMP $SEARCHFLT $MONITOROUT2 > $CMPOUT
if test $? != 0 ; then
echo "comparison failed - database monitor output is not correct"