directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1414177 - in /directory/apacheds/trunk/service: setup-mmr.sh src/test/resources/peer1.ldif src/test/resources/peer2.ldif
Date Tue, 27 Nov 2012 13:23:32 GMT
Author: kayyagari
Date: Tue Nov 27 13:23:31 2012
New Revision: 1414177

URL: http://svn.apache.org/viewvc?rev=1414177&view=rev
Log:
resources to create a test MMR setup

Added:
    directory/apacheds/trunk/service/setup-mmr.sh   (with props)
    directory/apacheds/trunk/service/src/test/resources/peer1.ldif
    directory/apacheds/trunk/service/src/test/resources/peer2.ldif

Added: directory/apacheds/trunk/service/setup-mmr.sh
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/service/setup-mmr.sh?rev=1414177&view=auto
==============================================================================
--- directory/apacheds/trunk/service/setup-mmr.sh (added)
+++ directory/apacheds/trunk/service/setup-mmr.sh Tue Nov 27 13:23:31 2012
@@ -0,0 +1,58 @@
+#!/bin/bash
+#
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+#
+
+# A script to setup MMR between two server instances
+
+JAR=`find . -name "apacheds-service-*[!s].jar"`
+
+# Checking if the final jar exists
+if [ -e $JAR ] ; then
+  echo "Service jar exists"
+else
+  echo "Service jar not found, need to build it"
+  mvn clean install
+fi
+
+#copies the apache DS jar file to two different instances
+PEER1=/tmp/peer1
+CONF1=$PEER1/target/instance/conf
+mkdir -p $PEER1
+mkdir -p $CONF1
+cp $JAR $PEER1/target
+cp apacheds.sh $PEER1
+cp log4j.properties $PEER1
+cp ../server-config/src/main/resources/config.ldif $CONF1
+sed -i -e "s/ads-systemport:\ 10389/ads-systemport:\ 16389/" $CONF1/config.ldif
+sed -i -e "s/ads-systemport:\ 10636/ads-systemport:\ 16636/" $CONF1/config.ldif
+echo >> $CONF1/config.ldif
+cat src/test/resources/peer1.ldif >> $CONF1/config.ldif
+
+PEER2=/tmp/peer2
+CONF2=$PEER2/target/instance/conf
+mkdir -p $PEER2
+mkdir -p $CONF2
+cp $JAR $PEER2/target
+cp apacheds.sh $PEER2
+cp log4j.properties $PEER2
+cp ../server-config/src/main/resources/config.ldif $CONF2
+sed -i -e "s/ads-systemport:\ 10389/ads-systemport:\ 17389/" $CONF2/config.ldif
+sed -i -e "s/ads-systemport:\ 10636/ads-systemport:\ 17636/" $CONF2/config.ldif
+echo >> $CONF2/config.ldif
+cat src/test/resources/peer2.ldif >> $CONF2/config.ldif

Propchange: directory/apacheds/trunk/service/setup-mmr.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: directory/apacheds/trunk/service/src/test/resources/peer1.ldif
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/service/src/test/resources/peer1.ldif?rev=1414177&view=auto
==============================================================================
--- directory/apacheds/trunk/service/src/test/resources/peer1.ldif (added)
+++ directory/apacheds/trunk/service/src/test/resources/peer1.ldif Tue Nov 27 13:23:31 2012
@@ -0,0 +1,19 @@
+dn: ads-replConsumerId=1,ou=replConsumers,ads-serverId=ldapServer,ou=servers,a
+ ds-directoryServiceId=default,ou=config
+ads-replRefreshNPersist: true
+ads-replAliasDerefMode: never
+ads-replProvPort: 17389
+ads-replSearchSizeLimit: 0
+ads-replProvHostName: localhost
+objectClass: ads-base
+objectClass: ads-replConsumer
+objectClass: top
+ads-replUserDn: uid=admin,ou=system
+ads-replRefreshInterval: 60000
+ads-replUserPassword:: c2VjcmV0
+ads-replConsumerId: 1
+ads-replAttributes: *
+ads-replSearchScope: sub
+ads-replSearchTimeOut: 0
+ads-replSearchFilter: (objectClass=*)
+ads-searchBaseDN: dc=example,dc=com	

Added: directory/apacheds/trunk/service/src/test/resources/peer2.ldif
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/service/src/test/resources/peer2.ldif?rev=1414177&view=auto
==============================================================================
--- directory/apacheds/trunk/service/src/test/resources/peer2.ldif (added)
+++ directory/apacheds/trunk/service/src/test/resources/peer2.ldif Tue Nov 27 13:23:31 2012
@@ -0,0 +1,19 @@
+dn: ads-replConsumerId=1,ou=replConsumers,ads-serverId=ldapServer,ou=servers,a
+ ds-directoryServiceId=default,ou=config
+ads-replRefreshNPersist: true
+ads-replAliasDerefMode: never
+ads-replProvPort: 16389
+ads-replSearchSizeLimit: 0
+ads-replProvHostName: localhost
+objectClass: ads-base
+objectClass: ads-replConsumer
+objectClass: top
+ads-replUserDn: uid=admin,ou=system
+ads-replRefreshInterval: 60000
+ads-replUserPassword:: c2VjcmV0
+ads-replConsumerId: 1
+ads-replAttributes: *
+ads-replSearchScope: sub
+ads-replSearchTimeOut: 0
+ads-replSearchFilter: (objectClass=*)
+ads-searchBaseDN: dc=example,dc=com	



Mime
View raw message