This commit is contained in:
Sean Bryant 2017-06-05 18:24:57 -07:00 коммит произвёл GitHub
Родитель d2be945fe9
Коммит a7380b20ff
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -41,13 +41,13 @@ module GitHubLdapTestCases
def test_tls_validation
assert_equal({ method: :start_tls, tls_options: { verify_mode: OpenSSL::SSL::VERIFY_PEER } },
@ldap.check_encryption(:tls, true))
assert_equal({ method: :start_tls, tls_options: {} },
assert_equal({ method: :start_tls, tls_options: { verify_mode: OpenSSL::SSL::VERIFY_NONE } },
@ldap.check_encryption(:tls, false))
assert_equal({ method: :start_tls, tls_options: {} },
assert_equal({ method: :start_tls, tls_options: { verify_mode: OpenSSL::SSL::VERIFY_NONE } },
@ldap.check_encryption(:tls, nil))
assert_equal({ method: :start_tls, tls_options: {} },
assert_equal({ method: :start_tls, tls_options: { verify_mode: OpenSSL::SSL::VERIFY_NONE } },
@ldap.check_encryption(:tls, 'true'))
assert_equal({ method: :start_tls, tls_options: {} },
assert_equal({ method: :start_tls, tls_options: { verify_mode: OpenSSL::SSL::VERIFY_NONE } },
@ldap.check_encryption(:tls))
end