From 739f33d0b39031308dc88213384b8520a05eb8a1 Mon Sep 17 00:00:00 2001 From: Mike Cote Date: Fri, 11 Jan 2019 14:50:10 -0500 Subject: [PATCH] Fix some failing tests --- .../dashboard/current/kibana/mappings.json | 14 ++++++++++++++ .../__tests__/__fixtures__/extract_test_file.js | 15 +++++---------- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/test/functional/fixtures/es_archiver/dashboard/current/kibana/mappings.json b/test/functional/fixtures/es_archiver/dashboard/current/kibana/mappings.json index 5eef2a3740c6d..0ab3aad65144d 100644 --- a/test/functional/fixtures/es_archiver/dashboard/current/kibana/mappings.json +++ b/test/functional/fixtures/es_archiver/dashboard/current/kibana/mappings.json @@ -216,6 +216,20 @@ "updated_at": { "type": "date" }, + "references": { + "type": "nested", + "properties": { + "name": { + "type": "keyword" + }, + "type": { + "type": "keyword" + }, + "id": { + "type": "keyword" + } + } + }, "url": { "properties": { "accessCount": { diff --git a/x-pack/plugins/reporting/server/browsers/extract/__tests__/__fixtures__/extract_test_file.js b/x-pack/plugins/reporting/server/browsers/extract/__tests__/__fixtures__/extract_test_file.js index 5fe40c6e4b7ff..33a83f01f53ea 100644 --- a/x-pack/plugins/reporting/server/browsers/extract/__tests__/__fixtures__/extract_test_file.js +++ b/x-pack/plugins/reporting/server/browsers/extract/__tests__/__fixtures__/extract_test_file.js @@ -18,16 +18,11 @@ export const search = { ], version: 1, kibanaSavedObjectMeta: { - searchSourceJSON: '{\'index\':\'kibanaSavedObjectMeta.searchSourceJSON.index\',\'query\':{\'query_string\':' - + '{\'query\':\'geo.dest: IN\',\'analyze_wildcard\':true}},\'filter\':[],\'highlight\':{\'pre_tags\':' - + '[\'@kibana-highlighted-field@\'],\'post_tags\':[\'@/kibana-highlighted-field@\'],\'fields\':{\'*\':{}},' - + '\'require_field_match\':false,\'fragment_size\':2147483647}}' - }, - references: [{ - name: 'kibanaSavedObjectMeta.searchSourceJSON.index', - type: 'index-pattern', - id: 'logstash-*', - }] + searchSourceJSON: '{\'index\':\'logstash-*\',\'query\':{\'query_string\':{\'query\':\'geo.dest: IN\',' + + '\'analyze_wildcard\':true}},\'filter\':[],\'highlight\':{\'pre_tags\':[\'@kibana-highlighted-field@\'],' + + '\'post_tags\':[\'@/kibana-highlighted-field@\'],\'fields\':{\'*\':{}},\'require_field_match\':false,' + + '\'fragment_size\':2147483647}}' + } } };