Skip to content

[CI] Add OpenLDAP integration tests #129

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 20 commits into from
Oct 15, 2014
Merged

[CI] Add OpenLDAP integration tests #129

merged 20 commits into from
Oct 15, 2014

Conversation

mtodd
Copy link
Member

@mtodd mtodd commented Oct 14, 2014

This PR sets up an additional set of test environments that installs OpenLDAP and runs special integration tests that connects against that OpenLDAP server.

This was based off of similar work in github/github-ldap: github/github-ldap#48.

Will flesh out the integration tests today, still more to come.

cc @jch @schaary


if !INTEGRATION
puts "Skipping integration tests..."
else
Copy link
Member

Choose a reason for hiding this comment

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

👍 for skipping these for local development. If we end up splitting these in multiple files, it might be nice to have a IntegrationTest base class to do this conditional.

Copy link
Member Author

Choose a reason for hiding this comment

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

@jch were you thinking of overriding run to do nothing in that case?

Check out 26ebfff.

@mtodd
Copy link
Member Author

mtodd commented Oct 15, 2014

Removed the separate skip iteration of the CI build so that we always run OpenLDAP integration tests.

Also added a Vagrant VM definition to run the OpenLDAP integration environment locally. Includes instructions on how to run integration tests locally with it.

Think this is good enough for now. We'll definitely want to expand on integration tests, but I think we'd be better served doing that as we continue to refactor internals.

@jch @schaary 👍?

@@ -0,0 +1,30 @@
# Local OpenLDAP Integration Testing

Set up a VM to run integration tests against OpenLDAP locally.
Copy link
Member

Choose a reason for hiding this comment

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

Maybe add a link here to http://www.vagrantup.com

Copy link
Member Author

Choose a reason for hiding this comment

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

Resolved in 77862a2.

@jch
Copy link
Member

jch commented Oct 15, 2014

Great start. 🚢 after that last comment about linking to vagrant docs.

mtodd added a commit that referenced this pull request Oct 15, 2014
[CI] Add OpenLDAP integration tests
@mtodd mtodd merged commit ec909d9 into master Oct 15, 2014
@mtodd mtodd deleted the ci-openldap branch October 15, 2014 21:27
astratto pushed a commit to astratto/ruby-net-ldap that referenced this pull request Dec 18, 2015
[CI] Add OpenLDAP integration tests
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