]> git.sur5r.net Git - openldap/commitdiff
add back-meta to relay testing; disabled by now, needs work to line up with the rwm...
authorPierangelo Masarati <ando@openldap.org>
Thu, 30 Dec 2004 15:10:31 +0000 (15:10 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 30 Dec 2004 15:10:31 +0000 (15:10 +0000)
tests/data/slapd-relay.conf
tests/run.in
tests/scripts/conf.sh
tests/scripts/defines.sh
tests/scripts/relay
tests/scripts/test030-relay

index 5014f6812d3d1faba79bd1813e688b7da77b769c..7030ae5e4c44186e3ffd7b35bc18ddd2cfbd350f 100644 (file)
@@ -28,6 +28,8 @@ argsfile    ./test-db/slapd.args
 #relaymod#moduleload back_relay.la
 #ldapmod#modulepath ../servers/slapd/back-ldap/
 #ldapmod#moduleload back_ldap.la
+#metamod#modulepath ../servers/slapd/back-meta/
+#metamod#moduleload back_meta.la
 #monitormod#modulepath ../servers/slapd/back-monitor/
 #monitormod#moduleload back_monitor.la
 #rwmmod#modulepath ../servers/slapd/overlays/
@@ -52,15 +54,21 @@ suffix              "o=Example,c=US"
 #ldap#uri              "@URI1@"
 #ldap#overlay          rwm
 #ldap#rwm-suffixmassage        "dc=example,dc=com"
+#meta#uri              "@URI1@o=Example,c=US"
+#meta#suffixmassage    "o=Example,c=US" "dc=example,dc=com"
 
 database       @RELAY@
 suffix         "o=Esempio,c=IT"
-### back-ldap needs URI
-#ldap#uri              "@URI1@"
 ### use this alternate form of back-relay, without the "relay" directive,
 ### which causes the target database to be selected after DN massaging
-overlay                rwm
-rwm-suffixmassage      "dc=example,dc=com"
+#relay#overlay         rwm
+#relay#rwm-suffixmassage       "dc=example,dc=com"
+### back-ldap needs URI
+#ldap#uri              "@URI1@"
+#ldap#overlay          rwm
+#ldap#rwm-suffixmassage        "dc=example,dc=com"
+#meta#uri              "@URI1@o=Esempio,c=IT"
+#meta#suffixmassage    "o=Esempio,c=IT" "dc=example,dc=com"
 
 database       @RELAY@
 suffix         "o=Beispiel,c=DE"
@@ -70,5 +78,7 @@ suffix                "o=Beispiel,c=DE"
 #ldap#uri              "@URI1@"
 #ldap#overlay          rwm
 #ldap#rwm-suffixmassage        "dc=example,dc=com"
+#meta#uri              "@URI1@o=Beispiel,c=DE"
+#meta#suffixmassage    "o=Beispiel,c=DE" "dc=example,dc=com"
 
 #monitor#database monitor
index e0ecc26fa4d9fc4386fb39a10f718dfda0375476..37aa4b66f5ee65e4125b4895aea698d9d4712fec 100644 (file)
@@ -27,6 +27,7 @@ AC_bdb=@BUILD_BDB@
 AC_hdb=@BUILD_HDB@
 AC_ldap=ldap@BUILD_LDAP@
 AC_ldbm=@BUILD_LDBM@
+AC_meta=meta@BUILD_META@
 AC_monitor=@BUILD_MONITOR@
 AC_relay=relay@BUILD_RELAY@
 AC_sql=sql@BUILD_SQL@
@@ -45,7 +46,7 @@ AC_WITH_SASL=@WITH_SASL@
 AC_WITH_TLS=@WITH_TLS@
 AC_WITH_MODULES_ENABLED=@WITH_MODULES_ENABLED@
 
-export AC_bdb AC_hdb AC_ldap AC_ldbm AC_monitor AC_relay AC_sql 
+export AC_bdb AC_hdb AC_ldap AC_ldbm AC_meta AC_monitor AC_relay AC_sql 
 export AC_glue AC_pcache AC_ppolicy AC_refint AC_unique AC_rwm AC_syncprov
 export AC_WITH_SASL AC_WITH_TLS AC_WITH_MODULES_ENABLED
 
index 7c43b3d91b9f25cee2e8400a2d71d03ab33743f1..abc94ea4359035c7339e44e388b9964e43781b87 100755 (executable)
@@ -38,6 +38,7 @@ sed -e "s/@BACKEND@/${BACKEND}/"                      \
        -e "s/^#${RELAY}#//"                            \
        -e "s/^#${BACKENDTYPE}#//"                      \
        -e "s/^#${AC_ldap}#//"                          \
+       -e "s/^#${AC_meta}#//"                          \
        -e "s/^#${AC_relay}#//"                         \
        -e "s/^#${AC_sql}#//"                           \
                -e "s/^#${RDBMS}#//"                    \
index 527eb7a559b56dcfff0271a2f915e2f2c053aa56..98e89b9ae0641c4c6327cb11f274fd2ca3955c82 100755 (executable)
@@ -15,6 +15,7 @@
 
 MONITORDB=${AC_monitor-no}
 BACKLDAP=${AC_ldap-ldapno}
+BACKMETA=${AC_meta-metano}
 BACKRELAY=${AC_relay-relayno}
 BACKSQL=${AC_sql-sqlno}
 RDBMS=${SLAPD_USE_SQL-rdbmsno}
index 261200030bbbfc16f65105ea6aa35e994af2ec0b..32486c8980eafe300331ff2ab5a961c81b1fbaef 100755 (executable)
 ## top-level directory of the distribution or, alternatively, at
 ## <http://www.OpenLDAP.org/license.html>.
 
-if test $RWM = rwmno ; then 
-       echo "Rewrite/remap overlay not available, test skipped"
-       exit 0
-fi 
-
-mkdir -p $TESTDIR $DBDIR1
+echo "Testing virtual naming context mapping with $RELAY backend..."
+echo ""
 
 echo "Starting slapd on TCP/IP port $PORT1..."
 . $CONFFILTER $BACKEND $MONITORDB < $RWMCONF > $CONF1
@@ -309,6 +305,3 @@ fi
 
 test $KILLSERVERS != no && kill -HUP $KILLPIDS
 
-echo ">>>>> Test succeeded"
-exit 0
-
index 5f732ec1af8f93a32dbdc750a8dfa85ddfc6536b..0e0c11a83bf27a1c11c4bf5527a9addc6a843ac0 100755 (executable)
 echo "running defines.sh"
 . $SRCDIR/scripts/defines.sh
 
+if test $RWM = rwmno ; then 
+       echo "Rewrite/remap overlay not available, test skipped"
+       exit 0
+fi 
+
+echo ""
+
+RELAYS=
+# back-relay
 if test $BACKRELAY = relayno ; then 
        echo "relay backend not available, test skipped"
-       exit 0
+else
+       RELAYS="$RELAYS relay"
+fi
+
+# back-ldap
+if test $BACKLDAP = ldapno ; then 
+       echo "ldap backend not available, test skipped"
+else
+       RELAYS="$RELAYS ldap"
+fi
+
+# back-meta - disable by now, needs work to line up with rwm
+if test $BACKMETA = metano ; then 
+       echo "meta backend not available, test skipped"
+else
+       # RELAYS="$RELAYS meta"
+       echo "==> back-meta disabled by now, needs work"
+       echo ""
 fi 
 
-RELAY=relay
-. $SRCDIR/scripts/relay
+first=1
+for RELAY in $RELAYS ; do
+       if test $first = 1 ; then
+               first=0
+       else
+               echo ">>>>> waiting 10 seconds for things to exit"
+               sleep 10
+               echo ""
+
+               rm -rf $TESTDIR
+       fi
+
+       mkdir -p $TESTDIR $DBDIR1
+
+       . $SRCDIR/scripts/relay
+done
+
+echo ">>>>> Test succeeded"
+exit 0