Update text, add changelog

This commit is contained in:
Tadgh 2021-02-09 19:03:09 -05:00
parent 2e3712357f
commit 64878c23d3
2 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,5 @@
---
type: change
issue: 2372
title: "ElasticsearchHibernatePropertiesBuilder will now reject any REST url which is protocol-aware. Protocol information should be set in the protocol field of the builder."

View File

@ -32,11 +32,11 @@ class ElasticsearchHibernatePropertiesBuilderTest {
@Test
public void testRestUrlCannotContainProtocol() {
String host = "localhost:9200";
String protocolHost = "http://" + host;
String protocolHost = "https://" + host;
String failureMessage = "Elasticsearch URL cannot include a protocol, that is a separate property. Remove http:// or https:// from this URL.";
myPropertiesBuilder
.setProtocol("http")
.setProtocol("https")
.setUsername("whatever")
.setPassword("whatever");