You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2019/05/20 13:43:12 UTC
[plc4x] 02/04: PLC4X-125 - Update the ElasticSearch example to a
more recent ElasticSearch version
This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
commit 03d2469a6f78d53112fa3f987d8ea18a29ad5241
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Mon May 20 15:35:40 2019 +0200
PLC4X-125 - Update the ElasticSearch example to a more recent ElasticSearch version
- Updated the ElasticSearch example to the newest version (7.0.1)
---
.../delta-v/src/test/java/org/apache/plc4x/java/deltav/PoCES.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/plc4j/protocols/delta-v/src/test/java/org/apache/plc4x/java/deltav/PoCES.java b/plc4j/protocols/delta-v/src/test/java/org/apache/plc4x/java/deltav/PoCES.java
index 26bfb9a..80c6c72 100644
--- a/plc4j/protocols/delta-v/src/test/java/org/apache/plc4x/java/deltav/PoCES.java
+++ b/plc4j/protocols/delta-v/src/test/java/org/apache/plc4x/java/deltav/PoCES.java
@@ -1434,7 +1434,8 @@ public class PoCES {
private static class MyNode extends Node {
private MyNode(Settings preparedSettings, Collection<Class<? extends Plugin>> classpathPlugins) {
- super(InternalSettingsPreparer.prepareEnvironment(preparedSettings, null), classpathPlugins);
+ super(InternalSettingsPreparer.prepareEnvironment(
+ preparedSettings, Collections.emptyMap(), null, () -> "hello-es"), classpathPlugins, true);
}
}
@@ -1443,7 +1444,7 @@ public class PoCES {
Node node = new MyNode(Settings.builder()
.put("transport.type", "netty4")
.put("http.type", "netty4")
- .put("http.enabled", "true")
+ .put("http.cors.enabled", "true")
.put("path.home", "elasticsearch-data")
.build(), Collections.singletonList(Netty4Plugin.class));
node.start();