Verify that the encryption type is properly normalized.
This commit is contained in:
Родитель
7674c43197
Коммит
3ff4e5442a
|
@ -21,11 +21,13 @@ class GitHubLdapTest < Minitest::Test
|
||||||
|
|
||||||
def test_simple_tls
|
def test_simple_tls
|
||||||
assert_equal :simple_tls, @ldap.check_encryption(:ssl)
|
assert_equal :simple_tls, @ldap.check_encryption(:ssl)
|
||||||
|
assert_equal :simple_tls, @ldap.check_encryption('SSL')
|
||||||
assert_equal :simple_tls, @ldap.check_encryption(:simple_tls)
|
assert_equal :simple_tls, @ldap.check_encryption(:simple_tls)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_start_tls
|
def test_start_tls
|
||||||
assert_equal :start_tls, @ldap.check_encryption(:tls)
|
assert_equal :start_tls, @ldap.check_encryption(:tls)
|
||||||
|
assert_equal :start_tls, @ldap.check_encryption('TLS')
|
||||||
assert_equal :start_tls, @ldap.check_encryption(:start_tls)
|
assert_equal :start_tls, @ldap.check_encryption(:start_tls)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Загрузка…
Ссылка в новой задаче