mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-01 03:57:15 +00:00
run LDAP tests on Travis CI
git-svn-id: http://svn.redmine.org/redmine/trunk@14785 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
7019f3416a
commit
786e3cff10
@ -145,6 +145,7 @@ before_install:
|
||||
psql -c "SHOW SERVER_ENCODING" -U postgres ;
|
||||
psql -c "SHOW DateStyle" -U postgres ;
|
||||
fi
|
||||
- sudo sh -x test/travis/install-openldap.sh
|
||||
script:
|
||||
- export DATABASE_ADAPTER=${DB}
|
||||
- "SCMS=bazaar,cvs,subversion,git,mercurial,filesystem"
|
||||
|
||||
23
test/fixtures/ldap/slapd.ubuntu.12.04.conf
vendored
Normal file
23
test/fixtures/ldap/slapd.ubuntu.12.04.conf
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
# Sample OpenLDAP configuration file for Redmine LDAP test server
|
||||
# Ubuntu 12.04 LTS Server Edition 64 bit slapd (2.4.28-1.1ubuntu4.6)
|
||||
#
|
||||
|
||||
include /etc/ldap/schema/core.schema
|
||||
include /etc/ldap/schema/cosine.schema
|
||||
include /etc/ldap/schema/inetorgperson.schema
|
||||
include /etc/ldap/schema/openldap.schema
|
||||
include /etc/ldap/schema/nis.schema
|
||||
|
||||
pidfile /var/run/slapd/slapd.pid
|
||||
argsfile /var/run/slapd/slapd.args
|
||||
|
||||
modulepath /usr/lib/ldap
|
||||
moduleload back_bdb.la
|
||||
|
||||
database bdb
|
||||
suffix "dc=redmine,dc=org"
|
||||
rootdn "cn=Manager,dc=redmine,dc=org"
|
||||
rootpw secret
|
||||
|
||||
# Indices to maintain
|
||||
index objectClass eq
|
||||
20
test/travis/install-openldap.sh
Normal file
20
test/travis/install-openldap.sh
Normal file
@ -0,0 +1,20 @@
|
||||
#! /bin/sh
|
||||
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes slapd ldap-utils
|
||||
dpkg -l *slapd* *ldap-utils*
|
||||
|
||||
TOP_DIR=`dirname $0`/../..
|
||||
|
||||
/etc/init.d/slapd stop
|
||||
|
||||
rm -rf /etc/ldap/slapd.d/*
|
||||
rmdir /etc/ldap/slapd.d/
|
||||
rm -rf /var/lib/ldap/*
|
||||
|
||||
cp ${TOP_DIR}/test/fixtures/ldap/slapd.ubuntu.12.04.conf /etc/ldap/slapd.conf
|
||||
slaptest -u -v -f /etc/ldap/slapd.conf
|
||||
|
||||
/etc/init.d/slapd start
|
||||
|
||||
ldapadd -x -D "cn=Manager,dc=redmine,dc=org" \
|
||||
-w secret -h localhost -p 389 -f ${TOP_DIR}/test/fixtures/ldap/test-ldap.ldif
|
||||
Loading…
x
Reference in New Issue
Block a user