]> git.sur5r.net Git - openldap/commitdiff
added attr strip test
authorPierangelo Masarati <ando@openldap.org>
Wed, 5 Feb 2003 12:40:08 +0000 (12:40 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 5 Feb 2003 12:40:08 +0000 (12:40 +0000)
tests/data/slapd-repl-submaster.conf
tests/scripts/test011-subtree-repl

index 699dedbcc9a0ca4003aa1088660eea9d6a153312..fc76bc13c31746cecf8acee0cbb23737d65ab344 100644 (file)
@@ -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
index a8c9af5a8133227d2c6acbd6f3983340051c42d8..e26941f0088e939198fba090f83a4d286791af6c 100755 (executable)
@@ -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