Sha256: c8e8d2dec3b5ccd6f6f0feb38028b5e174f39ec828a4a4e29e556850ef07d6b6

Contents?: true

Size: 955 Bytes

Versions: 10

Compression:

Stored size: 955 Bytes

Contents

# Local OpenLDAP Integration Testing

Set up a [Vagrant](http://www.vagrantup.com/) VM to run integration tests against OpenLDAP locally.

To run integration tests 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, including integration tests
$ time INTEGRATION=openldap INTEGRATION_HOST=$ip bundle exec rake

# run a specific integration test file
$ time INTEGRATION=openldap INTEGRATION_HOST=$ip bundle exec ruby test/integration/test_search.rb

# run integration tests by default
$ export INTEGRATION=openldap
$ export INTEGRATION_HOST=$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 & 2 rubygems

Version Path
net-ldap-0.15.0 test/support/vm/openldap/README.md
net-ldap-0.14.0 test/support/vm/openldap/README.md
net-ldap-0.13.0 test/support/vm/openldap/README.md
net-ldap-0.12.1 test/support/vm/openldap/README.md
net-ldap-0.12.0 test/support/vm/openldap/README.md
rubinius-net-ldap-0.11 test/support/vm/openldap/README.md
net-ldap-0.11 test/support/vm/openldap/README.md
net-ldap-0.10.1 test/support/vm/openldap/README.md
net-ldap-0.10.0 test/support/vm/openldap/README.md
net-ldap-0.9.0 test/support/vm/openldap/README.md