Update text, add changelog
This commit is contained in:
parent
2e3712357f
commit
64878c23d3
|
@ -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."
|
||||
|
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue