File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
test/support/vm/activedirectory Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
Integration tests are not run for ActiveDirectory in continuous integration
4
4
because we cannot install a Windows VM on TravisCI. To test ActiveDirectory,
5
- configure a local VM with AD running.
5
+ configure a local VM with AD running (this is left as an exercise for the
6
+ reader).
6
7
7
- From the project root, run:
8
+ To run integration tests against the local ActiveDirectory VM, from the project
9
+ root run:
8
10
9
- ``` sh
11
+ ``` bash
12
+ # duplicate example env.sh for specific config
10
13
$ cp test/support/vm/activedirectory/env.sh{.example,}
11
14
12
- # edit ad- env.sh and fill in with your VM's values, then
15
+ # edit env.sh and fill in with your VM's values, then
13
16
$ source test/support/vm/activedirectory/env.sh
14
17
15
18
# run all tests against AD
@@ -18,6 +21,6 @@ $ time bundle exec rake
18
21
# run a specific test file against AD
19
22
$ time bundle exec ruby test/membership_validators/active_directory_test.rb
20
23
21
- # reset environment to test other ldap servers
24
+ # reset environment to test other LDAP servers
22
25
$ source test/support/vm/activedirectory/reset-env.sh
23
26
```
You can’t perform that action at this time.
0 commit comments