From 05d420ec62f976a72d4675c135e0c8ab90a43658 Mon Sep 17 00:00:00 2001 From: Yara Tercero Date: Wed, 30 Jun 2021 13:00:07 -0700 Subject: [PATCH] updating jest tests and moving security dependency to optional in rule registry --- .../server/authorization/alerting_authorization.test.ts | 2 ++ x-pack/plugins/rule_registry/kibana.json | 2 +- .../index/__snapshots__/get_signals_template.test.ts.snap | 3 --- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/x-pack/plugins/alerting/server/authorization/alerting_authorization.test.ts b/x-pack/plugins/alerting/server/authorization/alerting_authorization.test.ts index 39de5cb8953d8..ac8c1041a6a2c 100644 --- a/x-pack/plugins/alerting/server/authorization/alerting_authorization.test.ts +++ b/x-pack/plugins/alerting/server/authorization/alerting_authorization.test.ts @@ -2034,6 +2034,7 @@ describe('AlertingAuthorization', () => { "defaultActionGroupId": "default", "enabledInLicense": true, "id": "myOtherAppAlertType", + "isExportable": true, "minimumLicenseRequired": "basic", "name": "myOtherAppAlertType", "producer": "alerts", @@ -2107,6 +2108,7 @@ describe('AlertingAuthorization', () => { "defaultActionGroupId": "default", "enabledInLicense": true, "id": "myOtherAppAlertType", + "isExportable": true, "minimumLicenseRequired": "basic", "name": "myOtherAppAlertType", "producer": "alerts", diff --git a/x-pack/plugins/rule_registry/kibana.json b/x-pack/plugins/rule_registry/kibana.json index 4adea8295d805..f74bebf585edd 100644 --- a/x-pack/plugins/rule_registry/kibana.json +++ b/x-pack/plugins/rule_registry/kibana.json @@ -9,9 +9,9 @@ "requiredPlugins": [ "alerting", "data", - "security", "spaces", "triggersActionsUi" ], + "optionalPlugins": ["security"], "server": true } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/routes/index/__snapshots__/get_signals_template.test.ts.snap b/x-pack/plugins/security_solution/server/lib/detection_engine/routes/index/__snapshots__/get_signals_template.test.ts.snap index d04d941da06e4..4f060746b92b0 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/routes/index/__snapshots__/get_signals_template.test.ts.snap +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/routes/index/__snapshots__/get_signals_template.test.ts.snap @@ -2893,9 +2893,6 @@ Object { "original_time": Object { "type": "date", }, - "owner": Object { - "type": "keyword", - }, "parent": Object { "properties": Object { "depth": Object {