Skip to content

Commit ec9021e

Browse files
committed
Use INTEGRATION_* instead of flavor-specific ENV vars
1 parent a316402 commit ec9021e

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Copy this to ad-env.sh, and fill in with your own values
22

33
export TESTENV=activedirectory
4-
export ACTIVEDIRECTORY_HOST=123.123.123.123
5-
export ACTIVEDIRECTORY_PORT=389
6-
export ACTIVEDIRECTORY_USER="CN=Administrator,CN=Users,DC=ad,DC=example,DC=com"
7-
export ACTIVEDIRECTORY_PASSWORD='passworD1'
8-
export ACTIVEDIRECTORY_SEARCH_DOMAINS='CN=Users,DC=ad,DC=ghe,DC=local'
4+
export INTEGRATION_HOST=123.123.123.123
5+
export INTEGRATION_PORT=389
6+
export INTEGRATION_USER="CN=Administrator,CN=Users,DC=ad,DC=example,DC=com"
7+
export INTEGRATION_PASSWORD='passworD1'
8+
export INTEGRATION_SEARCH_DOMAINS='CN=Users,DC=example,DC=com'
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
unset TESTENV
2-
unset ACTIVEDIRECTORY_HOST
3-
unset ACTIVEDIRECTORY_PORT
4-
unset ACTIVEDIRECTORY_USER
5-
unset ACTIVEDIRECTORY_PASSWORD
6-
unset ACTIVEDIRECTORY_SEARCH_DOMAINS
2+
unset INTEGRATION_HOST
3+
unset INTEGRATION_PORT
4+
unset INTEGRATION_USER
5+
unset INTEGRATION_PASSWORD
6+
unset INTEGRATION_SEARCH_DOMAINS

test/support/vm/openldap/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ $ ip=$(vagrant ssh -- "ifconfig eth1 | grep -o -E '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]
1616
$ cd ../../../..
1717

1818
# run all tests against OpenLDAP
19-
$ time TESTENV=openldap OPENLDAP_HOST=$ip bundle exec rake
19+
$ time TESTENV=openldap INTEGRATION_HOST=$ip bundle exec rake
2020

2121
# run a specific test file against OpenLDAP
22-
$ time TESTENV=openldap OPENLDAP_HOST=$ip bundle exec ruby test/membership_validators/recursive_test.rb
22+
$ time TESTENV=openldap INTEGRATION_HOST=$ip bundle exec ruby test/membership_validators/recursive_test.rb
2323

2424
# run OpenLDAP tests by default
2525
$ export TESTENV=openldap

test/test_helper.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def options
7171
instrumentation_service: @service
7272
when "openldap"
7373
{
74-
host: ENV.fetch("OPENLDAP_HOST", "localhost"),
74+
host: ENV.fetch("INTEGRATION_HOST", "localhost"),
7575
port: 389,
7676
admin_user: 'uid=admin,dc=github,dc=com',
7777
admin_password: 'passworD1',
@@ -81,11 +81,11 @@ def options
8181
}
8282
when "activedirectory"
8383
{
84-
host: ENV.fetch("ACTIVEDIRECTORY_HOST"),
85-
port: ENV.fetch("ACTIVEDIRECTORY_PORT", 389),
86-
admin_user: ENV.fetch("ACTIVEDIRECTORY_USER"),
87-
admin_password: ENV.fetch("ACTIVEDIRECTORY_PASSWORD"),
88-
search_domains: ENV.fetch("ACTIVEDIRECTORY_SEARCH_DOMAINS"),
84+
host: ENV.fetch("INTEGRATION_HOST"),
85+
port: ENV.fetch("INTEGRATION_PORT", 389),
86+
admin_user: ENV.fetch("INTEGRATION_USER"),
87+
admin_password: ENV.fetch("INTEGRATION_PASSWORD"),
88+
search_domains: ENV.fetch("INTEGRATION_SEARCH_DOMAINS"),
8989
instrumentation_service: @service
9090
}
9191
end

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy