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

Add CI build for OpenLDAP integration #48

merged 33 commits into from
Oct 8, 2014

Conversation

mtodd
Copy link
Member

@mtodd mtodd commented Sep 29, 2014

Reopening #47 against dev-v2 since this is targeting v2.0 release.

Early work to add tests using OpenLDAP for #46.

  • install OpenLDAP
  • enable memberOf, refint overlays
  • seed OpenLDAP with fixture data
  • rewrite existing tests to use common seed
  • boot ApacheDS with common seed before all tests, teardown after all tests (no re-starting)
  • add vagrant VM definition for running OpenLDAP on local environment

cc @jch

@mtodd
Copy link
Member Author

mtodd commented Sep 30, 2014

Tests are failing due to the mismatch of fixture data. My original strategy was to create separate tests for OpenLDAP but I think a better approach will be to update the existing tests and fixtures to match OpenLDAP fixtures (which will also need to be expanded to include existing cases).

Also worth noting, OpenLDAP tests run in under 30s, compared to 2min 30sec runtime for ApacheDS-based tests due to it frequently booting and terminating its test server!

@mtodd
Copy link
Member Author

mtodd commented Sep 30, 2014

Then again, we could cut down the tests we run for OpenLDAP and follow up by bigger refactoring of tests in a separate PR.

@mtodd
Copy link
Member Author

mtodd commented Oct 8, 2014

Merging without the Vagrant box for testing OpenLDAP locally, will follow up separately.

mtodd added a commit that referenced this pull request Oct 8, 2014
Add CI build for OpenLDAP integration
@mtodd mtodd merged commit db13ebd into dev-v2 Oct 8, 2014
@mtodd mtodd deleted the cibuild-openldap branch October 8, 2014 08:37
set -e
set -x

cd `dirname $0`/..
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Travis doesn't run scripts from the project root?

@jch
Copy link
Contributor

jch commented Oct 8, 2014

👍 left some small nitpicks inline, but awesome stuff overall

@mtodd
Copy link
Member Author

mtodd commented Oct 8, 2014

@jch yeah, the refute and quoting stuff should be cleaned up but I think these tests need more love so I'll worry about that when I come back to it, gradually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants