File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,6 @@ def validate_tls_options(options)
89
89
%i(
90
90
ssl_verify_certificate
91
91
ssl_verify_hostname
92
- ssl_verify_ocsp_endpoint
93
92
) . each do |opt |
94
93
if provider_opts [ opt ] == false
95
94
raise ArgumentError . new (
Original file line number Diff line number Diff line change 33
33
%i(
34
34
ssl_verify_certificate
35
35
ssl_verify_hostname
36
- ssl_verify_ocsp_endpoint
37
36
) . each do |insecure_opt |
38
37
expect {
39
38
Mongo ::Crypt ::KMS ::Validations . validate_tls_options (
46
45
end
47
46
48
47
it 'allows valid options' do
49
- options = {
50
- aws : {
51
- ssl : true ,
52
- ssl_cert_string : 'Content is not validated' ,
53
-
54
- }
55
- }
48
+ expect do
49
+ Mongo ::Crypt ::KMS ::Validations . validate_tls_options (
50
+ {
51
+ aws : {
52
+ ssl : true ,
53
+ ssl_cert_string : 'Content is not validated' ,
54
+ ssl_verify_ocsp_endpoint : false
55
+ }
56
+ }
57
+ )
58
+ end . not_to raise_error
56
59
end
57
60
end
58
61
end
59
- end
62
+ end
You can’t perform that action at this time.
0 commit comments