Sha256: 5b051888352d0fd59dbf4db6417fbe0cd85951e1037b1d2c8dcc685cde956dee
Contents?: true
Size: 946 Bytes
Versions: 1
Compression:
Stored size: 946 Bytes
Contents
# Local OpenLDAP Integration Testing Set up a [Vagrant](http://www.vagrantup.com/) VM to run tests against OpenLDAP locally. To run tests against OpenLDAP (instead of ApacheDS) locally: ``` bash # start VM (from the correct directory) $ cd test/support/vm/openldap/ $ vagrant up # get the IP address of the VM $ ip=$(vagrant ssh -- "ifconfig eth1 | grep -o -E '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | head -n1") # change back to root project directory $ cd ../../../.. # run all tests against OpenLDAP $ time TESTENV=openldap OPENLDAP_HOST=$ip bundle exec rake # run a specific test file against OpenLDAP $ time TESTENV=openldap OPENLDAP_HOST=$ip bundle exec ruby test/membership_validators/recursive_test.rb # run OpenLDAP tests by default $ export TESTENV=openldap $ export TESTENV=$ip # now run tests without having to set ENV variables $ time bundle exec rake ``` You may need to `gem install vagrant` first in order to provision the VM.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
github-ldap-1.4.0 | test/support/vm/openldap/README.md |