From 167bb8eb1a51304ad674256420ede4fb017c5c07 Mon Sep 17 00:00:00 2001 From: Vitalii Dmyterko <92328789+vitaliidm@users.noreply.github.com> Date: Mon, 15 Aug 2022 16:54:35 +0100 Subject: [PATCH] [Security Solution][Detections] fixes failing tests for 8.4 prebuilt rules update #138794 - fixes the rest of tests for https://github.com/elastic/kibana/pull/138574 PR --- .../group4/telemetry/usage_collector/detection_rules.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/x-pack/test/detection_engine_api_integration/security_and_spaces/group4/telemetry/usage_collector/detection_rules.ts b/x-pack/test/detection_engine_api_integration/security_and_spaces/group4/telemetry/usage_collector/detection_rules.ts index dbc8f5169c670..7f7b0d3d30788 100644 --- a/x-pack/test/detection_engine_api_integration/security_and_spaces/group4/telemetry/usage_collector/detection_rules.ts +++ b/x-pack/test/detection_engine_api_integration/security_and_spaces/group4/telemetry/usage_collector/detection_rules.ts @@ -1354,12 +1354,12 @@ export default ({ getService }: FtrProviderContext) => { created_on: createdOn, updated_on: updatedOn, rule_id: ruleId, + rule_version: ruleVersion, ...omittedFields } = foundRule; expect(omittedFields).to.eql({ rule_name: 'Simple Rule Query', rule_type: 'query', - rule_version: 3, enabled: false, elastic_rule: true, alert_count_daily: 0, @@ -1408,12 +1408,12 @@ export default ({ getService }: FtrProviderContext) => { created_on: createdOn, updated_on: updatedOn, rule_id: ruleId, + rule_version: ruleVersion, ...omittedFields } = foundRule; expect(omittedFields).to.eql({ rule_name: 'Simple Rule Query', rule_type: 'query', - rule_version: 3, enabled: true, elastic_rule: true, alert_count_daily: 0, @@ -1462,12 +1462,12 @@ export default ({ getService }: FtrProviderContext) => { created_on: createdOn, updated_on: updatedOn, rule_id: ruleId, + rule_version: ruleVersion, ...omittedFields } = foundRule; expect(omittedFields).to.eql({ rule_name: 'Simple Rule Query', rule_type: 'query', - rule_version: 3, enabled: false, elastic_rule: true, alert_count_daily: 0, @@ -1516,12 +1516,12 @@ export default ({ getService }: FtrProviderContext) => { created_on: createdOn, updated_on: updatedOn, rule_id: ruleId, + rule_version: ruleVersion, ...omittedFields } = foundRule; expect(omittedFields).to.eql({ rule_name: 'Simple Rule Query', rule_type: 'query', - rule_version: 3, enabled: true, elastic_rule: true, alert_count_daily: 0,