Skip to content

Commit 1143676

Browse files
author
Dave Sims
committed
Init mock LDAP/connection with production-like naming context
1 parent 8bdc1fa commit 1143676

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/forest_search_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ def setup
88
port: options[:port],
99
instrumentation_service: options[:instrumentation_service]
1010
})
11-
#@connection.stub(:search, {}, ['search-forest'])
12-
@forest_search = GitHub::Ldap::ForestSearch.new(@connection, "naming")
11+
configuration_naming_context = "CN=Configuration,DC=ad,DC=ghe,DC=local"
12+
@forest_search = GitHub::Ldap::ForestSearch.new(@connection, configuration_naming_context)
1313
end
1414

1515
def test_search

0 commit comments

Comments
 (0)