Sha256: 979eaf4af5afc6e8c2f28c7f31b4b311d50e8a40eb19721dffb201e551f1710b

Contents?: true

Size: 952 Bytes

Versions: 10

Compression:

Stored size: 952 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 INTEGRATION_HOST=$ip bundle exec rake

# run a specific test file against OpenLDAP
$ time TESTENV=openldap INTEGRATION_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

10 entries across 10 versions & 1 rubygems

Version Path
github-ldap-1.10.1 test/support/vm/openldap/README.md
github-ldap-1.10.0 test/support/vm/openldap/README.md
github-ldap-1.9.0 test/support/vm/openldap/README.md
github-ldap-1.8.2 test/support/vm/openldap/README.md
github-ldap-1.8.1 test/support/vm/openldap/README.md
github-ldap-1.8.0 test/support/vm/openldap/README.md
github-ldap-1.7.1 test/support/vm/openldap/README.md
github-ldap-1.7.0 test/support/vm/openldap/README.md
github-ldap-1.6.0 test/support/vm/openldap/README.md
github-ldap-1.5.0 test/support/vm/openldap/README.md