spec/inputs/elasticsearch_ssl_spec.rb in logstash-input-elasticsearch-4.17.1 vs spec/inputs/elasticsearch_ssl_spec.rb in logstash-input-elasticsearch-4.17.2
- old
+ new
@@ -121,11 +121,11 @@
"ssl_verification_mode" => 'full',
) }
it "should pass the flag to the ES client" do
expect(::Elasticsearch::Client).to receive(:new) do |args|
- expect(args[:ssl]).to match hash_including(:ssl => true, :verify => :strict)
+ expect(args[:ssl]).to match hash_including(:ssl => true, :verify => :default)
end.and_return(es_client_double)
subject.register
end
end
@@ -198,11 +198,11 @@
:keystore_type => "jks",
:keystore_password => "bar",
:truststore => ssl_truststore_path,
:truststore_type => "jks",
:truststore_password => "foo",
- :verify => :strict,
+ :verify => :default,
:cipher_suites => ["TLS_DHE_RSA_WITH_AES_256_CBC_SHA256"],
:protocols => ["TLSv1.3"],
)
end.and_return(es_client_double)
@@ -234,10 +234,10 @@
expect(args[:ssl]).to match hash_including(
:ssl => true,
:ca_file => ssl_certificate_authorities_path,
:client_cert => ssl_certificate_path,
:client_key => ssl_key_path,
- :verify => :strict,
+ :verify => :default,
:cipher_suites => ["TLS_DHE_RSA_WITH_AES_256_CBC_SHA256"],
:protocols => ["TLSv1.3"],
)
end.and_return(es_client_double)