From c76e9b4c3437b1c5dd1b40f86c50c8f291cc3ed8 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 20 May 2004 00:41:16 +0000 Subject: [PATCH] ITS#3144, ITS#3152 verify cache results --- tests/data/proxycache.out | 231 +++++++++++++++++++++++++++++++ tests/scripts/test020-proxycache | 8 ++ 2 files changed, 239 insertions(+) create mode 100644 tests/data/proxycache.out diff --git a/tests/data/proxycache.out b/tests/data/proxycache.out new file mode 100644 index 0000000000..69eaf789b0 --- /dev/null +++ b/tests/data/proxycache.out @@ -0,0 +1,231 @@ +dn: cn=James A Jones 1,ou=Alumni Association,ou=People,dc=example,dc=com +objectClass: OpenLDAPperson +cn: James A Jones 1 +cn: James Jones +cn: Jim Jones +sn: Jones +uid: jaj +title: Mad Cow Researcher, UM Alumni Association + +dn: cn=James A Jones 2,ou=Information Technology Division,ou=People,dc=example + ,dc=com +objectClass: OpenLDAPperson +cn: James A Jones 2 +cn: James Jones +cn: Jim Jones +sn: Doe +uid: jjones +title: Senior Manager, Information Technology Division + +dn: cn=John Doe,ou=Information Technology Division,ou=People,dc=example,dc=com +objectClass: OpenLDAPperson +cn: John Doe +cn: Jonathon Doe +sn: Doe +uid: johnd +title: System Administrator, Information Technology Division + +dn: cn=Jennifer Smith,ou=Alumni Association,ou=People,dc=example,dc=com +objectClass: OpenLDAPperson +cn: Jennifer Smith +cn: Jen Smith +sn: Smith +uid: jen +title: Telemarketer, UM Alumni Association + +dn: cn=James A Jones 2,ou=Information Technology Division,ou=People,dc=example + ,dc=com +objectClass: OpenLDAPperson +cn: James A Jones 2 +cn: James Jones +cn: Jim Jones +sn: Doe +uid: jjones +title: Senior Manager, Information Technology Division + +dn: cn=Jane Doe,ou=Alumni Association,ou=People,dc=example,dc=com +objectClass: OpenLDAPperson +cn: Jane Doe +cn: Jane Alverson +sn: Doe +uid: jdoe +title: Programmer Analyst, UM Alumni Association + +dn: cn=John Doe,ou=Information Technology Division,ou=People,dc=example,dc=com +objectClass: OpenLDAPperson +cn: John Doe +cn: Jonathon Doe +sn: Doe +uid: johnd +title: System Administrator, Information Technology Division + +dn: cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc + =com +objectClass: OpenLDAPperson +cn: Bjorn Jensen +cn: Biiff Jensen +uid: bjorn +postalAddress: Info Tech Division $ 535 W. William St. $ Anytown, MI 48103 +mail: bjorn@mailgw.example.com +telephoneNumber: +1 313 555 0355 + +dn: cn=Dorothy Stevens,ou=Alumni Association,ou=People,dc=example,dc=com +objectClass: OpenLDAPperson +cn: Dorothy Stevens +cn: Dot Stevens +sn: Stevens +uid: dots +title: Secretary, UM Alumni Association +mail: dots@mail.alumni.example.com + +dn: cn=James A Jones 1,ou=Alumni Association,ou=People,dc=example,dc=com +objectClass: OpenLDAPperson +cn: James A Jones 1 +cn: James Jones +cn: Jim Jones +sn: Jones +uid: jaj +title: Mad Cow Researcher, UM Alumni Association +mail: jaj@mail.alumni.example.com + +dn: cn=Jennifer Smith,ou=Alumni Association,ou=People,dc=example,dc=com +objectClass: OpenLDAPperson +cn: Jennifer Smith +cn: Jen Smith +sn: Smith +uid: jen +title: Telemarketer, UM Alumni Association +mail: jen@mail.alumni.example.com + +dn: cn=Mark Elliot,ou=Alumni Association,ou=People,dc=example,dc=com +objectClass: OpenLDAPperson +cn: Mark Elliot +cn: Mark A Elliot +sn: Elliot +uid: melliot +title: Director, UM Alumni Association +mail: melliot@mail.alumni.example.com + +dn: cn=Ursula Hampster,ou=Alumni Association,ou=People,dc=example,dc=com +objectClass: OpenLDAPperson +cn: Ursula Hampster +sn: Hampster +uid: uham +title: Secretary, UM Alumni Association +mail: uham@mail.alumni.example.com + +dn: cn=Barbara Jensen,ou=Information Technology Division,ou=People,dc=example, + dc=com +cn: Barbara Jensen +cn: Babs Jensen +sn:: IEplbnNlbiA= +uid: bjensen +title: Mythical Manager, Research Systems + +dn: cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc + =com +cn: Bjorn Jensen +cn: Biiff Jensen +sn: Jensen +uid: bjorn +title: Director, Embedded Systems + +dn: cn=Dorothy Stevens,ou=Alumni Association,ou=People,dc=example,dc=com +cn: Dorothy Stevens +cn: Dot Stevens +sn: Stevens +uid: dots +title: Secretary, UM Alumni Association + +dn: cn=James A Jones 1,ou=Alumni Association,ou=People,dc=example,dc=com +cn: James A Jones 1 +cn: James Jones +cn: Jim Jones +sn: Jones +uid: jaj +title: Mad Cow Researcher, UM Alumni Association + +dn: cn=James A Jones 2,ou=Information Technology Division,ou=People,dc=example + ,dc=com +cn: James A Jones 2 +cn: James Jones +cn: Jim Jones +sn: Doe +uid: jjones +title: Senior Manager, Information Technology Division + +dn: cn=Jane Doe,ou=Alumni Association,ou=People,dc=example,dc=com +cn: Jane Doe +cn: Jane Alverson +sn: Doe +uid: jdoe +title: Programmer Analyst, UM Alumni Association + +dn: cn=Jennifer Smith,ou=Alumni Association,ou=People,dc=example,dc=com +cn: Jennifer Smith +cn: Jen Smith +sn: Smith +uid: jen +title: Telemarketer, UM Alumni Association + +dn: cn=John Doe,ou=Information Technology Division,ou=People,dc=example,dc=com +cn: John Doe +cn: Jonathon Doe +sn: Doe +uid: johnd +title: System Administrator, Information Technology Division + +dn: cn=Mark Elliot,ou=Alumni Association,ou=People,dc=example,dc=com +cn: Mark Elliot +cn: Mark A Elliot +sn: Elliot +uid: melliot +title: Director, UM Alumni Association + +dn: cn=Ursula Hampster,ou=Alumni Association,ou=People,dc=example,dc=com +cn: Ursula Hampster +sn: Hampster +uid: uham +title: Secretary, UM Alumni Association + +dn: cn=James A Jones 1,ou=Alumni Association,ou=People,dc=example,dc=com +cn: James A Jones 1 +cn: James Jones +cn: Jim Jones +sn: Jones +uid: jaj +title: Mad Cow Researcher, UM Alumni Association + +dn: cn=James A Jones 2,ou=Information Technology Division,ou=People,dc=example + ,dc=com +cn: James A Jones 2 +cn: James Jones +cn: Jim Jones +sn: Doe +uid: jjones +title: Senior Manager, Information Technology Division + +dn: cn=Jennifer Smith,ou=Alumni Association,ou=People,dc=example,dc=com +cn: Jennifer Smith +cn: Jen Smith +sn: Smith +uid: jen +title: Telemarketer, UM Alumni Association + +dn: cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc + =com +cn: Bjorn Jensen +cn: Biiff Jensen +uid: bjorn +postalAddress: Info Tech Division $ 535 W. William St. $ Anytown, MI 48103 +mail: bjorn@mailgw.example.com +telephoneNumber: +1 313 555 0355 + +dn: cn=James A Jones 1,ou=Alumni Association,ou=People,dc=example,dc=com +cn: James A Jones 1 +cn: James Jones +cn: Jim Jones +sn: Jones +uid: jaj +title: Mad Cow Researcher, UM Alumni Association + diff --git a/tests/scripts/test020-proxycache b/tests/scripts/test020-proxycache index 633e4a464d..79c96dd9bc 100755 --- a/tests/scripts/test020-proxycache +++ b/tests/scripts/test020-proxycache @@ -257,5 +257,13 @@ else exit 1 fi +echo "Comparing cache output..." +$CMP $SLAVEOUT $PROXYCACHEOUT > $CMPOUT + +if test $? != 0 ; then + echo "Comparison failed" + exit 1 +fi + echo ">>>>> Test succeeded" exit 0 -- 2.39.5