Skip to content

Add CI build for OpenLDAP integration #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 33 commits into from
Oct 8, 2014
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
58a5315
Hook up separate OpenLDAP install, build steps
mtodd Sep 27, 2014
8759205
RVM exec rake for testing ApacheDS tests
mtodd Sep 27, 2014
392410f
Simplify a bit
mtodd Sep 27, 2014
5844fe6
Fast finish, simplify script, remove extraneous bits
mtodd Sep 29, 2014
2397389
Compute relative path to cd into, add debugging output
mtodd Sep 29, 2014
efcd72e
Bundle exec
mtodd Sep 29, 2014
f566aba
bundle install
mtodd Sep 29, 2014
4efafa6
Install, configure, seed OpenLDAP
mtodd Sep 30, 2014
6058337
:fire: unnecessary debugging
mtodd Sep 30, 2014
af39c0c
Fail on error, adjust base path computation
mtodd Sep 30, 2014
6e2d2c3
Wipe out old config first
mtodd Sep 30, 2014
e4f0a19
Switch things around to keep the path sane
mtodd Sep 30, 2014
2e4ce0f
Run the test suite with OpenLDAP
mtodd Sep 30, 2014
19d2fb9
Go back to dc=github,dc=com to match existing fixtures
mtodd Sep 30, 2014
2c6e174
Start test server with ladle when in apacheds test env only
mtodd Sep 30, 2014
33ad5a8
I hear commas are good
mtodd Sep 30, 2014
94d5b82
Create a 'common' fixture file
mtodd Oct 6, 2014
d2065f7
Hardcode server options
mtodd Oct 6, 2014
1e2b52e
Remove test-specific fixtures, use common seed
mtodd Oct 6, 2014
f0a3d75
Remove quiet option when verbose is set
mtodd Oct 6, 2014
19aa507
Use ENV.fetch with default
mtodd Oct 6, 2014
d80dbc5
Update one Domain test with correct fixture
mtodd Oct 6, 2014
010fbc4
Fix Domain posixGroup tests, fixtures
mtodd Oct 6, 2014
b3ac5f3
Add byebug as an development, test bundler dependency
mtodd Oct 6, 2014
1fe748e
Experiment with reusing the ApacheDS LDAP server for each test
mtodd Oct 6, 2014
34d63f6
byebug is supported on MRI 2.0, 2.1 only
mtodd Oct 6, 2014
84e37ce
Add supporting fixtures, fix email domain
mtodd Oct 6, 2014
919734e
Use common seed for OpenLDAP
mtodd Oct 6, 2014
46fea0d
Rewrite Domain tests
mtodd Oct 6, 2014
a1988ab
Include gidNumber in seed; fix posixGroup schema
mtodd Oct 6, 2014
102351c
Rewrite GitHub::Ldap tests
mtodd Oct 6, 2014
6502ab1
Fix Group tests, add fixture group with missing members
mtodd Oct 7, 2014
15953cc
Fix up posixGroup tests
mtodd Oct 8, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Switch things around to keep the path sane
  • Loading branch information
mtodd committed Sep 30, 2014
commit e4f0a198b2acb3da1b1eefe138dac468c48c95cc
6 changes: 2 additions & 4 deletions script/install-openldap
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@
set -e
set -x

TMPDIR=$(mktemp -d)
cd $TMPDIR

BASE_PATH="$( cd `dirname $0`/../test/fixtures/openldap && pwd )"

DEBIAN_FRONTEND=noninteractive sudo -E apt-get install -y --force-yes slapd time ldap-utils

sudo /etc/init.d/slapd stop

ls -lah /etc/ldap/slapd.d
TMPDIR=$(mktemp -d)
cd $TMPDIR

# Delete data and reconfigure.
sudo cp -v /var/lib/ldap/DB_CONFIG ./DB_CONFIG
Expand Down