Skip to content
This repository was archived by the owner on Jul 24, 2020. It is now read-only.

[1411] Running tests with USE_LDAP enabled outside of Yale breaks things #1618

Merged
merged 1 commit into from
Oct 28, 2016

Conversation

esoterik
Copy link
Collaborator

@esoterik esoterik commented Aug 4, 2016

Resolves #1411

The UsersController test failure is fixed in #1595 by stubbing User.search_ldap.

Importing users with LDAP is currently untested, so defaulting USE_LDAP to nil allows those tests to run even if the variable is set in .env. Setting this default would be a lot nicer if #1422 was merged, because we could have a .env.test file with USE_LDAP=0 rather than deleting USE_LDAP from the ENV hash before running the test suite (my current solution).

I don't think there are any other tests that hit LDAP; the model method isn't tested.

Copy link
Contributor

@AlanLiu96 AlanLiu96 left a comment

Choose a reason for hiding this comment

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

As per our comments on 10/28. Good test setup. :)

@orenyk
Copy link
Contributor

orenyk commented Oct 28, 2016

Just noting that the commit message needs to be fixed 😄

@esoterik esoterik force-pushed the 1411_fix_ldap_tests branch from 839b6ef to 8704318 Compare October 28, 2016 19:43
@orenyk orenyk merged commit c549ec9 into master Oct 28, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running tests with USE_LDAP enabled outside of Yale breaks things
3 participants