From 455cb288caac203cf395bf89906a0124eab22141 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Sun, 30 Sep 2018 09:23:43 +0100 Subject: [PATCH] fix(tests): alert.alertmanager doesn't have uri key --- .../Components/Grid/AlertGrid/AlertGroup/Silence/index.test.js | 1 - ui/src/Models/API.js | 1 - ui/src/__mocks__/Alerts.js | 1 - 3 files changed, 3 deletions(-) diff --git a/ui/src/Components/Grid/AlertGrid/AlertGroup/Silence/index.test.js b/ui/src/Components/Grid/AlertGrid/AlertGroup/Silence/index.test.js index 45ca92894..04a742b91 100644 --- a/ui/src/Components/Grid/AlertGrid/AlertGroup/Silence/index.test.js +++ b/ui/src/Components/Grid/AlertGrid/AlertGroup/Silence/index.test.js @@ -16,7 +16,6 @@ const mockAfterUpdate = jest.fn(); const alertmanager = { name: "default", - uri: "http://localhost", state: "suppressed", startsAt: "2000-01-01T10:00:00Z", endsAt: "0001-01-01T00:00:00Z", diff --git a/ui/src/Models/API.js b/ui/src/Models/API.js index 78fe3e704..3959c35f9 100644 --- a/ui/src/Models/API.js +++ b/ui/src/Models/API.js @@ -11,7 +11,6 @@ const Annotation = PropTypes.exact({ const APIAlertAlertmanagerState = PropTypes.exact({ name: PropTypes.string.isRequired, - uri: PropTypes.string.isRequired, state: AlertState.isRequired, startsAt: PropTypes.string.isRequired, endsAt: PropTypes.string.isRequired, diff --git a/ui/src/__mocks__/Alerts.js b/ui/src/__mocks__/Alerts.js index 2dae2c5a9..f0dedab7e 100644 --- a/ui/src/__mocks__/Alerts.js +++ b/ui/src/__mocks__/Alerts.js @@ -14,7 +14,6 @@ const MockAlert = (annotations, labels, state) => ({ alertmanager: [ { name: "default", - uri: "file:///mock", state: "active", startsAt: "2018-08-14T17:36:40.017867056Z", endsAt: "0001-01-01T00:00:00Z",