From ce9a5e85fd11a3e616cd2467cffeb3724cbf7ce3 Mon Sep 17 00:00:00 2001 From: Claudio Procida Date: Mon, 29 Nov 2021 19:59:06 +0100 Subject: [PATCH] Updates snapshot --- .../server/routes/aggregate_rules.test.ts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/x-pack/plugins/alerting/server/routes/aggregate_rules.test.ts b/x-pack/plugins/alerting/server/routes/aggregate_rules.test.ts index c8d4372fb72c..81fb66ef5cf5 100644 --- a/x-pack/plugins/alerting/server/routes/aggregate_rules.test.ts +++ b/x-pack/plugins/alerting/server/routes/aggregate_rules.test.ts @@ -49,6 +49,14 @@ describe('aggregateRulesRoute', () => { pending: 1, unknown: 0, }, + ruleEnabledStatus: { + disabled: 1, + enabled: 40, + }, + ruleMutedStatus: { + muted: 2, + unmuted: 39, + }, }; rulesClient.aggregate.mockResolvedValueOnce(aggregateResult); @@ -65,6 +73,10 @@ describe('aggregateRulesRoute', () => { expect(await handler(context, req, res)).toMatchInlineSnapshot(` Object { "body": Object { + "rule_enabled_status": Object { + "disabled": 1, + "enabled": 40, + }, "rule_execution_status": Object { "active": 23, "error": 2, @@ -72,6 +84,10 @@ describe('aggregateRulesRoute', () => { "pending": 1, "unknown": 0, }, + "rule_muted_status": Object { + "muted": 2, + "unmuted": 39, + }, }, } `); @@ -89,6 +105,10 @@ describe('aggregateRulesRoute', () => { expect(res.ok).toHaveBeenCalledWith({ body: { + rule_enabled_status: { + disabled: 1, + enabled: 40, + }, rule_execution_status: { ok: 15, error: 2, @@ -96,6 +116,10 @@ describe('aggregateRulesRoute', () => { pending: 1, unknown: 0, }, + rule_muted_status: { + muted: 2, + unmuted: 39, + }, }, }); });