From 8f623ad58b705cfc8592dc3ddf1568dc7550a0b4 Mon Sep 17 00:00:00 2001 From: Alison Goryachev Date: Tue, 3 Dec 2019 16:02:57 -0500 Subject: [PATCH] fix existing tests --- .../client_integration/helpers/constants.ts | 17 +++++------------ .../helpers/template_form.helpers.ts | 15 ++++----------- .../template_clone.test.tsx | 8 +++++++- .../template_create.test.tsx | 19 ++++--------------- .../client_integration/template_edit.test.tsx | 2 +- .../mappings_editor/mappings_state.tsx | 1 - 6 files changed, 21 insertions(+), 41 deletions(-) diff --git a/x-pack/legacy/plugins/index_management/__jest__/client_integration/helpers/constants.ts b/x-pack/legacy/plugins/index_management/__jest__/client_integration/helpers/constants.ts index db29ed844b606b..c979bdf3ae05ef 100644 --- a/x-pack/legacy/plugins/index_management/__jest__/client_integration/helpers/constants.ts +++ b/x-pack/legacy/plugins/index_management/__jest__/client_integration/helpers/constants.ts @@ -26,16 +26,9 @@ export const ALIASES = { }; export const MAPPINGS = { - _source: { - enabled: false, - }, - properties: { - host_name: { - type: 'keyword', - }, - created_at: { - type: 'date', - format: 'EEE MMM dd HH:mm:ss Z yyyy', - }, - }, + dynamic: true, + date_detection: true, + numeric_detection: true, + dynamic_date_formats: [], + properties: {}, }; diff --git a/x-pack/legacy/plugins/index_management/__jest__/client_integration/helpers/template_form.helpers.ts b/x-pack/legacy/plugins/index_management/__jest__/client_integration/helpers/template_form.helpers.ts index 1b75f4e1909340..59ef2f3d7a7f90 100644 --- a/x-pack/legacy/plugins/index_management/__jest__/client_integration/helpers/template_form.helpers.ts +++ b/x-pack/legacy/plugins/index_management/__jest__/client_integration/helpers/template_form.helpers.ts @@ -15,7 +15,7 @@ export interface TemplateFormTestBed extends TestBed { clickSubmitButton: () => void; completeStepOne: ({ name, indexPatterns, order, version }: Partial