From 847c1c657eaf636a2c3374ffb076c813b16ba739 Mon Sep 17 00:00:00 2001 From: urso Date: Fri, 23 Nov 2018 21:57:27 +0100 Subject: [PATCH] Use _doc in metricbeat export template test --- metricbeat/tests/system/test_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metricbeat/tests/system/test_template.py b/metricbeat/tests/system/test_template.py index 8766ba54ddf..0f6e09b8dcb 100644 --- a/metricbeat/tests/system/test_template.py +++ b/metricbeat/tests/system/test_template.py @@ -42,7 +42,7 @@ def test_export_template(self): t = json.loads(template_content) - properties = t["mappings"]["doc"]["properties"] + properties = t["mappings"]["_doc"]["properties"] # Check libbeat fields assert properties["@timestamp"] == {"type": "date"}