From: Pierangelo Masarati Date: Wed, 5 Feb 2003 12:40:08 +0000 (+0000) Subject: added attr strip test X-Git-Tag: NO_SLAP_OP_BLOCKS~437 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8547e09c6ec5dbf49cb2fc574d63aec3dd2bc6b1;p=openldap added attr strip test --- diff --git a/tests/data/slapd-repl-submaster.conf b/tests/data/slapd-repl-submaster.conf index 699dedbcc9..fc76bc13c3 100644 --- a/tests/data/slapd-repl-submaster.conf +++ b/tests/data/slapd-repl-submaster.conf @@ -30,6 +30,7 @@ replogfile ./test-db/slapd.replog replica host=localhost:9010 suffix="ou=Groups,o=University of Michigan,c=US" + attr!=description binddn="cn=Replica,ou=Groups,o=University of Michigan,c=US" bindmethod=simple credentials=secret diff --git a/tests/scripts/test011-subtree-repl b/tests/scripts/test011-subtree-repl index a8c9af5a81..e26941f008 100755 --- a/tests/scripts/test011-subtree-repl +++ b/tests/scripts/test011-subtree-repl @@ -224,7 +224,7 @@ SEARCHOUT=$SUBMASTEROUT LDIF=$SLAVEOUT echo "Filtering master ldapsearch results..." -. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT +. $LDIFFILTER < $SEARCHOUT | egrep -iv ^description > $SEARCHFLT echo "Filtering slave ldapsearch results..." . $LDIFFILTER < $LDIF > $LDIFFLT @@ -239,14 +239,14 @@ fi SEARCHOUT=$MASTEROUT echo "Filtering remaining data" -. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT +. $LDIFFILTER < $SEARCHOUT | egrep -iv ^description > $SEARCHFLT echo "Stripping slave entries from master output..." $CMP $SEARCHFLT $LDIFFLT | $UNDIFFFILTER > $SUBFLT echo "Stripping subtree entries from master output..." . $SUBFILTER 'ou=Groups,[ ]?o=University of Michigan,[ ]?c=US' < $SEARCHOUT \ - | $UNDIFFFILTER > $SUBFLT2 + | $UNDIFFFILTER | egrep -iv ^description > $SUBFLT2 echo "Comparing master minus subtree and master minus slave..." $CMP $SUBFLT $SUBFLT2 > $CMPOUT