From 397cb63ac1f212daecf9526bef25c518fc50793a Mon Sep 17 00:00:00 2001 From: Robert Oskamp Date: Mon, 10 Feb 2020 10:24:31 +0100 Subject: [PATCH] Disabled categorization stats validation (#57087) (#57107) This PR disabled the categorization stats validation after job creation. --- .../functional/services/machine_learning/job_table.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/x-pack/test/functional/services/machine_learning/job_table.ts b/x-pack/test/functional/services/machine_learning/job_table.ts index 153a0ac477b47b..dc401ca4548354 100644 --- a/x-pack/test/functional/services/machine_learning/job_table.ts +++ b/x-pack/test/functional/services/machine_learning/job_table.ts @@ -208,6 +208,15 @@ export function MachineLearningJobTableProvider({ getService }: FtrProviderConte expect(modelSizeStats).to.have.property('model_bytes'); delete modelSizeStats.model_bytes; + // remove categorization fields from validation until + // the ES version is updated + delete modelSizeStats.categorization_status; + delete modelSizeStats.categorized_doc_count; + delete modelSizeStats.dead_category_count; + delete modelSizeStats.frequent_category_count; + delete modelSizeStats.rare_category_count; + delete modelSizeStats.total_category_count; + expect(modelSizeStats).to.eql(expectedModelSizeStats); }