Skip to content

Commit 025f07e

Browse files
committed
Tidy up buildEvent
1 parent 894278b commit 025f07e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

modules/ingest-common/src/test/java/org/elasticsearch/ingest/common/CommunityIdProcessorTests.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,20 @@ public void setup() {
4646
}
4747

4848
private Map<String, Object> buildEvent() {
49-
event = new HashMap<>();
5049
var source = new HashMap<String, Object>();
5150
source.put("ip", "128.232.110.120");
5251
source.put("port", 34855);
53-
event.put("source", source);
52+
5453
var destination = new HashMap<String, Object>();
5554
destination.put("ip", "66.35.250.204");
5655
destination.put("port", 80);
57-
event.put("destination", destination);
56+
5857
var network = new HashMap<String, Object>();
5958
network.put("transport", "TCP");
59+
60+
var event = new HashMap<String, Object>();
61+
event.put("source", source);
62+
event.put("destination", destination);
6063
event.put("network", network);
6164
return event;
6265
}

0 commit comments

Comments
 (0)