summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-01-22 18:06:35 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-01-22 18:06:35 +0000
commitceb476a7c5d53f7b52b1dc1d8f5af24b5c6e95ee (patch)
treeab4653e97d496c3e883f67457e8428ab0c3cecb6 /test/unit
parent667071917e822e454c40acb5256d7daeb58d3a3b (diff)
downloadredmine-ceb476a7c5d53f7b52b1dc1d8f5af24b5c6e95ee.tar.gz
redmine-ceb476a7c5d53f7b52b1dc1d8f5af24b5c6e95ee.zip
Fixed DN in tests (#21674).
git-svn-id: http://svn.redmine.org/redmine/trunk@15087 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/auth_source_ldap_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/auth_source_ldap_test.rb b/test/unit/auth_source_ldap_test.rb
index a436cda93..0126c1e5e 100644
--- a/test/unit/auth_source_ldap_test.rb
+++ b/test/unit/auth_source_ldap_test.rb
@@ -202,13 +202,13 @@ class AuthSourceLdapTest < ActiveSupport::TestCase
def test_ldap_bind_with_account_and_password
auth_source = AuthSourceLdap.find(1)
- auth_source.account = "cn=Manager,dc=redmine,dc=org"
+ auth_source.account = "cn=admin,dc=redmine,dc=org"
auth_source.account_password = "secret"
auth_source.save!
assert_equal "127.0.0.1", auth_source.host
assert_equal 389, auth_source.port
- assert_equal "cn=Manager,dc=redmine,dc=org", auth_source.account
+ assert_equal "cn=admin,dc=redmine,dc=org", auth_source.account
assert_equal "secret", auth_source.account_password
assert_nil auth_source.test_connection
end
@@ -240,13 +240,13 @@ class AuthSourceLdapTest < ActiveSupport::TestCase
def test_ldap_bind_with_incorrect_password
auth_source = AuthSourceLdap.find(1)
- auth_source.account = "cn=Manager,dc=redmine,dc=org"
+ auth_source.account = "cn=admin,dc=redmine,dc=org"
auth_source.account_password = "badpassword"
auth_source.save!
assert_equal "127.0.0.1", auth_source.host
assert_equal 389, auth_source.port
- assert_equal "cn=Manager,dc=redmine,dc=org", auth_source.account
+ assert_equal "cn=admin,dc=redmine,dc=org", auth_source.account
assert_equal "badpassword", auth_source.account_password
assert_raise AuthSourceException do
auth_source.test_connection