From 1868b1e9fa569e992bb71a88244ed11d2449ee0c Mon Sep 17 00:00:00 2001 From: patrykkopycinski <patryk.kopycinski@elastic.co> Date: Mon, 29 Jun 2020 19:27:06 +0200 Subject: [PATCH] Bump react-router (#69608) (#70217) # Conflicts: # x-pack/plugins/uptime/public/pages/__tests__/__snapshots__/overview.test.tsx.snap --- package.json | 9 +- packages/kbn-ui-shared-deps/package.json | 4 +- x-pack/package.json | 6 +- .../__snapshots__/cert_monitors.test.tsx.snap | 73 +- .../__snapshots__/cert_search.test.tsx.snap | 41 +- .../__snapshots__/cert_status.test.tsx.snap | 61 +- .../certificates_list.test.tsx.snap | 55 +- .../fingerprint_col.test.tsx.snap | 61 +- .../uptime_date_picker.test.tsx.snap | 37 +- .../duration_charts.test.tsx.snap | 145 ++-- .../monitor_bar_series.test.tsx.snap | 73 +- .../ping_histogram.test.tsx.snap | 333 ++++---- .../monitor_charts.test.tsx.snap | 41 +- .../ml_integerations.test.tsx.snap | 37 +- .../__snapshots__/ml_job_link.test.tsx.snap | 49 +- .../__snapshots__/ml_manage_job.test.tsx.snap | 45 +- .../ssl_certificate.test.tsx.snap | 43 +- .../__snapshots__/empty_state.test.tsx.snap | 65 +- .../filter_status_button.test.tsx.snap | 49 +- .../__snapshots__/monitor_list.test.tsx.snap | 768 +++++++++++------- .../__snapshots__/status_filter.test.tsx.snap | 37 +- .../monitor_list_drawer.test.tsx.snap | 206 +++-- .../certificate_form.test.tsx.snap | 55 +- .../__snapshots__/indices_form.test.tsx.snap | 55 +- .../__snapshots__/certificates.test.tsx.snap | 37 +- .../__snapshots__/monitor.test.tsx.snap | 37 +- .../__snapshots__/not_found.test.tsx.snap | 37 +- .../__snapshots__/overview.test.tsx.snap | 225 ++--- yarn.lock | 53 +- 29 files changed, 1910 insertions(+), 827 deletions(-) diff --git a/package.json b/package.json index 1a8b6e8aca3d2..69c414e690588 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,6 @@ "resolutions": { "**/@types/node": ">=10.17.17 <10.20.0", "**/@types/react": "^16.9.36", - "**/@types/react-router": "^5.1.3", "**/@types/hapi": "^17.0.18", "**/@types/angular": "^1.6.56", "**/@types/hoist-non-react-statics": "^3.3.1", @@ -243,8 +242,8 @@ "react-monaco-editor": "~0.27.0", "react-redux": "^7.2.0", "react-resize-detector": "^4.2.0", - "react-router": "^5.1.2", - "react-router-dom": "^5.1.2", + "react-router": "^5.2.0", + "react-router-dom": "^5.2.0", "react-sizeme": "^2.3.6", "react-use": "^13.27.0", "reactcss": "1.2.3", @@ -373,8 +372,8 @@ "@types/react-grid-layout": "^0.16.7", "@types/react-redux": "^7.1.9", "@types/react-resize-detector": "^4.0.1", - "@types/react-router": "^5.1.3", - "@types/react-router-dom": "^5.1.3", + "@types/react-router": "^5.1.7", + "@types/react-router-dom": "^5.1.5", "@types/react-virtualized": "^9.18.7", "@types/recompose": "^0.30.6", "@types/redux-actions": "^2.6.1", diff --git a/packages/kbn-ui-shared-deps/package.json b/packages/kbn-ui-shared-deps/package.json index fe4d3d06517d2..e070e35ababdd 100644 --- a/packages/kbn-ui-shared-deps/package.json +++ b/packages/kbn-ui-shared-deps/package.json @@ -26,8 +26,8 @@ "react": "^16.12.0", "react-dom": "^16.12.0", "react-intl": "^2.8.0", - "react-router": "^5.1.2", - "react-router-dom": "^5.1.2", + "react-router": "^5.2.0", + "react-router-dom": "^5.2.0", "regenerator-runtime": "^0.13.3", "rxjs": "^6.5.5", "symbol-observable": "^1.2.0", diff --git a/x-pack/package.json b/x-pack/package.json index 8765747154cc0..e297440ab0437 100644 --- a/x-pack/package.json +++ b/x-pack/package.json @@ -100,7 +100,7 @@ "@types/react-beautiful-dnd": "^12.1.1", "@types/react-dom": "^16.9.8", "@types/react-redux": "^7.1.9", - "@types/react-router-dom": "^5.1.3", + "@types/react-router-dom": "^5.1.5", "@types/react-sticky": "^6.0.3", "@types/react-test-renderer": "^16.9.1", "@types/recompose": "^0.30.6", @@ -329,8 +329,8 @@ "react-portal": "^3.2.0", "react-redux": "^7.2.0", "react-reverse-portal": "^1.0.4", - "react-router": "^5.1.2", - "react-router-dom": "^5.1.2", + "react-router": "^5.2.0", + "react-router-dom": "^5.2.0", "react-shortcuts": "^2.0.0", "react-sticky": "^6.0.3", "react-syntax-highlighter": "^5.7.0", diff --git a/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/cert_monitors.test.tsx.snap b/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/cert_monitors.test.tsx.snap index a79fb0f0d3deb..bec7e111fbb28 100644 --- a/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/cert_monitors.test.tsx.snap +++ b/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/cert_monitors.test.tsx.snap @@ -109,26 +109,61 @@ exports[`CertMonitors shallow renders expected elements for valid props 1`] = ` } } > - <CertMonitors - monitors={ - Array [ - Object { - "id": "bad-ssl-dashboard", - "name": "", - "url": "https://badssl.com/dashboard/", - }, - Object { - "id": "elastic-co", - "name": "elastic", - "url": "https://www.elastic.co/", - }, - Object { - "id": "extended-validation", - "name": "", - "url": "https://extended-validation.badssl.com/", + <ContextProvider + value={ + Object { + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, }, - ] + "push": [Function], + "replace": [Function], + } } - /> + > + <CertMonitors + monitors={ + Array [ + Object { + "id": "bad-ssl-dashboard", + "name": "", + "url": "https://badssl.com/dashboard/", + }, + Object { + "id": "elastic-co", + "name": "elastic", + "url": "https://www.elastic.co/", + }, + Object { + "id": "extended-validation", + "name": "", + "url": "https://extended-validation.badssl.com/", + }, + ] + } + /> + </ContextProvider> </ContextProvider> `; diff --git a/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/cert_search.test.tsx.snap b/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/cert_search.test.tsx.snap index 8d576fc116dae..97f476a56135a 100644 --- a/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/cert_search.test.tsx.snap +++ b/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/cert_search.test.tsx.snap @@ -90,8 +90,43 @@ exports[`CertificatesSearch shallow renders expected elements for valid props 1` } } > - <CertificateSearch - setSearch={[MockFunction]} - /> + <ContextProvider + value={ + Object { + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + "push": [Function], + "replace": [Function], + } + } + > + <CertificateSearch + setSearch={[MockFunction]} + /> + </ContextProvider> </ContextProvider> `; diff --git a/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/cert_status.test.tsx.snap b/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/cert_status.test.tsx.snap index f6a4b4598fe63..d64434c48837c 100644 --- a/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/cert_status.test.tsx.snap +++ b/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/cert_status.test.tsx.snap @@ -91,24 +91,59 @@ exports[`CertStatus shallow renders expected elements for valid props 1`] = ` } } > - <CertStatus - cert={ + <ContextProvider + value={ Object { - "common_name": "github.com", - "issuer": "DigiCert SHA2 Extended Validation Server CA", - "monitors": Array [ + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ Object { - "id": "github", - "name": "", - "url": "https://github.com/", + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, }, ], - "not_after": "2020-05-08T00:00:00.000Z", - "not_before": "2018-05-08T00:00:00.000Z", - "sha1": "ca06f56b258b7a0d4f2b05470939478651151984", - "sha256": "3111500c4a66012cdae333ec3fca1c9dde45c954440e7ee413716bff3663c074", + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + "push": [Function], + "replace": [Function], } } - /> + > + <CertStatus + cert={ + Object { + "common_name": "github.com", + "issuer": "DigiCert SHA2 Extended Validation Server CA", + "monitors": Array [ + Object { + "id": "github", + "name": "", + "url": "https://github.com/", + }, + ], + "not_after": "2020-05-08T00:00:00.000Z", + "not_before": "2018-05-08T00:00:00.000Z", + "sha1": "ca06f56b258b7a0d4f2b05470939478651151984", + "sha256": "3111500c4a66012cdae333ec3fca1c9dde45c954440e7ee413716bff3663c074", + } + } + /> + </ContextProvider> </ContextProvider> `; diff --git a/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/certificates_list.test.tsx.snap b/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/certificates_list.test.tsx.snap index fd90db793b26e..dc808ffcdd22b 100644 --- a/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/certificates_list.test.tsx.snap +++ b/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/certificates_list.test.tsx.snap @@ -51,20 +51,55 @@ exports[`CertificateList shallow renders expected elements for valid props 1`] = } } > - <CertificateList - onChange={[MockFunction]} - page={ + <ContextProvider + value={ Object { + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], "index": 0, - "size": 10, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + "push": [Function], + "replace": [Function], } } - sort={ - Object { - "direction": "asc", - "field": "not_after", + > + <CertificateList + onChange={[MockFunction]} + page={ + Object { + "index": 0, + "size": 10, + } } - } - /> + sort={ + Object { + "direction": "asc", + "field": "not_after", + } + } + /> + </ContextProvider> </ContextProvider> `; diff --git a/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/fingerprint_col.test.tsx.snap b/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/fingerprint_col.test.tsx.snap index b4e5a34412212..9a39394013294 100644 --- a/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/fingerprint_col.test.tsx.snap +++ b/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/fingerprint_col.test.tsx.snap @@ -150,24 +150,59 @@ exports[`FingerprintCol shallow renders expected elements for valid props 1`] = } } > - <FingerprintCol - cert={ + <ContextProvider + value={ Object { - "common_name": "github.com", - "issuer": "DigiCert SHA2 Extended Validation Server CA", - "monitors": Array [ + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ Object { - "id": "github", - "name": "", - "url": "https://github.com/", + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, }, ], - "not_after": "2020-05-08T00:00:00.000Z", - "not_before": "2018-05-08T00:00:00.000Z", - "sha1": "ca06f56b258b7a0d4f2b05470939478651151984", - "sha256": "3111500c4a66012cdae333ec3fca1c9dde45c954440e7ee413716bff3663c074", + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + "push": [Function], + "replace": [Function], } } - /> + > + <FingerprintCol + cert={ + Object { + "common_name": "github.com", + "issuer": "DigiCert SHA2 Extended Validation Server CA", + "monitors": Array [ + Object { + "id": "github", + "name": "", + "url": "https://github.com/", + }, + ], + "not_after": "2020-05-08T00:00:00.000Z", + "not_before": "2018-05-08T00:00:00.000Z", + "sha1": "ca06f56b258b7a0d4f2b05470939478651151984", + "sha256": "3111500c4a66012cdae333ec3fca1c9dde45c954440e7ee413716bff3663c074", + } + } + /> + </ContextProvider> </ContextProvider> `; diff --git a/x-pack/plugins/uptime/public/components/common/__tests__/__snapshots__/uptime_date_picker.test.tsx.snap b/x-pack/plugins/uptime/public/components/common/__tests__/__snapshots__/uptime_date_picker.test.tsx.snap index b1f6f5dfc4401..4d23cebf7d5ca 100644 --- a/x-pack/plugins/uptime/public/components/common/__tests__/__snapshots__/uptime_date_picker.test.tsx.snap +++ b/x-pack/plugins/uptime/public/components/common/__tests__/__snapshots__/uptime_date_picker.test.tsx.snap @@ -145,6 +145,41 @@ exports[`UptimeDatePicker component validates props with shallow render 1`] = ` } } > - <UptimeDatePicker /> + <ContextProvider + value={ + Object { + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + "push": [Function], + "replace": [Function], + } + } + > + <UptimeDatePicker /> + </ContextProvider> </ContextProvider> `; diff --git a/x-pack/plugins/uptime/public/components/common/charts/__tests__/__snapshots__/duration_charts.test.tsx.snap b/x-pack/plugins/uptime/public/components/common/charts/__tests__/__snapshots__/duration_charts.test.tsx.snap index 96918ab68f716..81cd399078e70 100644 --- a/x-pack/plugins/uptime/public/components/common/charts/__tests__/__snapshots__/duration_charts.test.tsx.snap +++ b/x-pack/plugins/uptime/public/components/common/charts/__tests__/__snapshots__/duration_charts.test.tsx.snap @@ -51,62 +51,97 @@ exports[`MonitorCharts component renders the component without errors 1`] = ` } } > - <DurationChartComponent - anomalies={null} - loading={false} - locationDurationLines={ - Array [ - Object { - "line": Array [ - Object { - "x": 1548697620000, - "y": 743928.2027027027, - }, - Object { - "x": 1548697920000, - "y": 766840.0133333333, - }, - Object { - "x": 1548698220000, - "y": 786970.8266666667, - }, - Object { - "x": 1548698520000, - "y": 781064.7808219178, - }, - Object { - "x": 1548698820000, - "y": 741563.04, - }, - Object { - "x": 1548699120000, - "y": 759354.6756756756, - }, - Object { - "x": 1548699420000, - "y": 737533.3866666667, - }, - Object { - "x": 1548699720000, - "y": 728669.0266666666, - }, - Object { - "x": 1548700020000, - "y": 719951.64, - }, - Object { - "x": 1548700320000, - "y": 769181.7866666666, - }, - Object { - "x": 1548700620000, - "y": 740805.2666666667, - }, - ], - "name": "somewhere", + <ContextProvider + value={ + Object { + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, }, - ] + "push": [Function], + "replace": [Function], + } } - /> + > + <DurationChartComponent + anomalies={null} + loading={false} + locationDurationLines={ + Array [ + Object { + "line": Array [ + Object { + "x": 1548697620000, + "y": 743928.2027027027, + }, + Object { + "x": 1548697920000, + "y": 766840.0133333333, + }, + Object { + "x": 1548698220000, + "y": 786970.8266666667, + }, + Object { + "x": 1548698520000, + "y": 781064.7808219178, + }, + Object { + "x": 1548698820000, + "y": 741563.04, + }, + Object { + "x": 1548699120000, + "y": 759354.6756756756, + }, + Object { + "x": 1548699420000, + "y": 737533.3866666667, + }, + Object { + "x": 1548699720000, + "y": 728669.0266666666, + }, + Object { + "x": 1548700020000, + "y": 719951.64, + }, + Object { + "x": 1548700320000, + "y": 769181.7866666666, + }, + Object { + "x": 1548700620000, + "y": 740805.2666666667, + }, + ], + "name": "somewhere", + }, + ] + } + /> + </ContextProvider> </ContextProvider> `; diff --git a/x-pack/plugins/uptime/public/components/common/charts/__tests__/__snapshots__/monitor_bar_series.test.tsx.snap b/x-pack/plugins/uptime/public/components/common/charts/__tests__/__snapshots__/monitor_bar_series.test.tsx.snap index 1db4a87b1c37b..7316cfa368c6e 100644 --- a/x-pack/plugins/uptime/public/components/common/charts/__tests__/__snapshots__/monitor_bar_series.test.tsx.snap +++ b/x-pack/plugins/uptime/public/components/common/charts/__tests__/__snapshots__/monitor_bar_series.test.tsx.snap @@ -77,26 +77,61 @@ exports[`MonitorBarSeries component shallow renders a series when there are down } } > - <MonitorBarSeries - histogramSeries={ - Array [ - Object { - "down": 1, - "timestamp": 124, - "up": 0, - }, - Object { - "down": 1, - "timestamp": 125, - "up": 0, - }, - Object { - "down": 1, - "timestamp": 126, - "up": 0, + <ContextProvider + value={ + Object { + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, }, - ] + "push": [Function], + "replace": [Function], + } } - /> + > + <MonitorBarSeries + histogramSeries={ + Array [ + Object { + "down": 1, + "timestamp": 124, + "up": 0, + }, + Object { + "down": 1, + "timestamp": 125, + "up": 0, + }, + Object { + "down": 1, + "timestamp": 126, + "up": 0, + }, + ] + } + /> + </ContextProvider> </ContextProvider> `; diff --git a/x-pack/plugins/uptime/public/components/common/charts/__tests__/__snapshots__/ping_histogram.test.tsx.snap b/x-pack/plugins/uptime/public/components/common/charts/__tests__/__snapshots__/ping_histogram.test.tsx.snap index 668e4e0c064a8..fe20071ced4cb 100644 --- a/x-pack/plugins/uptime/public/components/common/charts/__tests__/__snapshots__/ping_histogram.test.tsx.snap +++ b/x-pack/plugins/uptime/public/components/common/charts/__tests__/__snapshots__/ping_histogram.test.tsx.snap @@ -85,160 +85,195 @@ exports[`PingHistogram component shallow renders the component without errors 1` } } > - <PingHistogramComponent - absoluteEndDate={1548700920000} - absoluteStartDate={1548697920000} - data={ + <ContextProvider + value={ Object { - "histogram": Array [ - Object { - "downCount": 6, - "upCount": 33, - "x": 1581068329000, - "y": 1, - }, - Object { - "downCount": 6, - "upCount": 30, - "x": 1581068359000, - "y": 1, - }, - Object { - "downCount": 6, - "upCount": 33, - "x": 1581068389000, - "y": 1, - }, - Object { - "downCount": 6, - "upCount": 30, - "x": 1581068419000, - "y": 1, - }, - Object { - "downCount": 6, - "upCount": 33, - "x": 1581068449000, - "y": 1, - }, - Object { - "downCount": 6, - "upCount": 30, - "x": 1581068479000, - "y": 1, - }, - Object { - "downCount": 6, - "upCount": 33, - "x": 1581068509000, - "y": 1, - }, - Object { - "downCount": 6, - "upCount": 30, - "x": 1581068539000, - "y": 1, - }, - Object { - "downCount": 6, - "upCount": 33, - "x": 1581068569000, - "y": 1, - }, - Object { - "downCount": 6, - "upCount": 30, - "x": 1581068599000, - "y": 1, - }, - Object { - "downCount": 6, - "upCount": 33, - "x": 1581068629000, - "y": 1, - }, - Object { - "downCount": 6, - "upCount": 30, - "x": 1581068659000, - "y": 1, - }, - Object { - "downCount": 6, - "upCount": 33, - "x": 1581068689000, - "y": 1, - }, - Object { - "downCount": 6, - "upCount": 30, - "x": 1581068719000, - "y": 1, - }, - Object { - "downCount": 5, - "upCount": 34, - "x": 1581068749000, - "y": 1, - }, - Object { - "downCount": 3, - "upCount": 33, - "x": 1581068779000, - "y": 1, - }, - Object { - "downCount": 3, - "upCount": 36, - "x": 1581068809000, - "y": 1, - }, - Object { - "downCount": 3, - "upCount": 33, - "x": 1581068839000, - "y": 1, - }, - Object { - "downCount": 3, - "upCount": 36, - "x": 1581068869000, - "y": 1, - }, - Object { - "downCount": 3, - "upCount": 33, - "x": 1581068899000, - "y": 1, - }, - Object { - "downCount": 3, - "upCount": 36, - "x": 1581068929000, - "y": 1, - }, - Object { - "downCount": 3, - "upCount": 33, - "x": 1581068959000, - "y": 1, - }, - Object { - "downCount": 3, - "upCount": 36, - "x": 1581068989000, - "y": 1, - }, + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ Object { - "downCount": 1, - "upCount": 11, - "x": 1581069019000, - "y": 1, + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, }, ], - "interval": "1s", + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + "push": [Function], + "replace": [Function], } } - /> + > + <PingHistogramComponent + absoluteEndDate={1548700920000} + absoluteStartDate={1548697920000} + data={ + Object { + "histogram": Array [ + Object { + "downCount": 6, + "upCount": 33, + "x": 1581068329000, + "y": 1, + }, + Object { + "downCount": 6, + "upCount": 30, + "x": 1581068359000, + "y": 1, + }, + Object { + "downCount": 6, + "upCount": 33, + "x": 1581068389000, + "y": 1, + }, + Object { + "downCount": 6, + "upCount": 30, + "x": 1581068419000, + "y": 1, + }, + Object { + "downCount": 6, + "upCount": 33, + "x": 1581068449000, + "y": 1, + }, + Object { + "downCount": 6, + "upCount": 30, + "x": 1581068479000, + "y": 1, + }, + Object { + "downCount": 6, + "upCount": 33, + "x": 1581068509000, + "y": 1, + }, + Object { + "downCount": 6, + "upCount": 30, + "x": 1581068539000, + "y": 1, + }, + Object { + "downCount": 6, + "upCount": 33, + "x": 1581068569000, + "y": 1, + }, + Object { + "downCount": 6, + "upCount": 30, + "x": 1581068599000, + "y": 1, + }, + Object { + "downCount": 6, + "upCount": 33, + "x": 1581068629000, + "y": 1, + }, + Object { + "downCount": 6, + "upCount": 30, + "x": 1581068659000, + "y": 1, + }, + Object { + "downCount": 6, + "upCount": 33, + "x": 1581068689000, + "y": 1, + }, + Object { + "downCount": 6, + "upCount": 30, + "x": 1581068719000, + "y": 1, + }, + Object { + "downCount": 5, + "upCount": 34, + "x": 1581068749000, + "y": 1, + }, + Object { + "downCount": 3, + "upCount": 33, + "x": 1581068779000, + "y": 1, + }, + Object { + "downCount": 3, + "upCount": 36, + "x": 1581068809000, + "y": 1, + }, + Object { + "downCount": 3, + "upCount": 33, + "x": 1581068839000, + "y": 1, + }, + Object { + "downCount": 3, + "upCount": 36, + "x": 1581068869000, + "y": 1, + }, + Object { + "downCount": 3, + "upCount": 33, + "x": 1581068899000, + "y": 1, + }, + Object { + "downCount": 3, + "upCount": 36, + "x": 1581068929000, + "y": 1, + }, + Object { + "downCount": 3, + "upCount": 33, + "x": 1581068959000, + "y": 1, + }, + Object { + "downCount": 3, + "upCount": 36, + "x": 1581068989000, + "y": 1, + }, + Object { + "downCount": 1, + "upCount": 11, + "x": 1581069019000, + "y": 1, + }, + ], + "interval": "1s", + } + } + /> + </ContextProvider> </ContextProvider> `; diff --git a/x-pack/plugins/uptime/public/components/monitor/__tests__/__snapshots__/monitor_charts.test.tsx.snap b/x-pack/plugins/uptime/public/components/monitor/__tests__/__snapshots__/monitor_charts.test.tsx.snap index dff5def46cbe0..8ca48b7e95ebe 100644 --- a/x-pack/plugins/uptime/public/components/monitor/__tests__/__snapshots__/monitor_charts.test.tsx.snap +++ b/x-pack/plugins/uptime/public/components/monitor/__tests__/__snapshots__/monitor_charts.test.tsx.snap @@ -51,8 +51,43 @@ exports[`MonitorCharts component renders the component without errors 1`] = ` } } > - <MonitorCharts - monitorId="something" - /> + <ContextProvider + value={ + Object { + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + "push": [Function], + "replace": [Function], + } + } + > + <MonitorCharts + monitorId="something" + /> + </ContextProvider> </ContextProvider> `; diff --git a/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/__snapshots__/ml_integerations.test.tsx.snap b/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/__snapshots__/ml_integerations.test.tsx.snap index 9ad61f50b0521..24c4e818a0592 100644 --- a/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/__snapshots__/ml_integerations.test.tsx.snap +++ b/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/__snapshots__/ml_integerations.test.tsx.snap @@ -80,6 +80,41 @@ exports[`ML Integrations shallow renders without errors 1`] = ` } } > - <MLIntegrationComponent /> + <ContextProvider + value={ + Object { + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + "push": [Function], + "replace": [Function], + } + } + > + <MLIntegrationComponent /> + </ContextProvider> </ContextProvider> `; diff --git a/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/__snapshots__/ml_job_link.test.tsx.snap b/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/__snapshots__/ml_job_link.test.tsx.snap index 9957f13fc1334..1fe7a4cdd3ee5 100644 --- a/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/__snapshots__/ml_job_link.test.tsx.snap +++ b/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/__snapshots__/ml_job_link.test.tsx.snap @@ -68,15 +68,50 @@ exports[`ML JobLink shallow renders without errors 1`] = ` } } > - <MLJobLink - basePath="" - dateRange={ + <ContextProvider + value={ Object { - "from": "", - "to": "", + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + "push": [Function], + "replace": [Function], } } - monitorId="testMonitor" - /> + > + <MLJobLink + basePath="" + dateRange={ + Object { + "from": "", + "to": "", + } + } + monitorId="testMonitor" + /> + </ContextProvider> </ContextProvider> `; diff --git a/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/__snapshots__/ml_manage_job.test.tsx.snap b/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/__snapshots__/ml_manage_job.test.tsx.snap index e9623c7aa78a2..5f773d7b1b620 100644 --- a/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/__snapshots__/ml_manage_job.test.tsx.snap +++ b/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/__snapshots__/ml_manage_job.test.tsx.snap @@ -80,10 +80,45 @@ exports[`Manage ML Job shallow renders without errors 1`] = ` } } > - <ManageMLJobComponent - hasMLJob={true} - onEnableJob={[MockFunction]} - onJobDelete={[MockFunction]} - /> + <ContextProvider + value={ + Object { + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + "push": [Function], + "replace": [Function], + } + } + > + <ManageMLJobComponent + hasMLJob={true} + onEnableJob={[MockFunction]} + onJobDelete={[MockFunction]} + /> + </ContextProvider> </ContextProvider> `; diff --git a/x-pack/plugins/uptime/public/components/monitor/status_details/__test__/__snapshots__/ssl_certificate.test.tsx.snap b/x-pack/plugins/uptime/public/components/monitor/status_details/__test__/__snapshots__/ssl_certificate.test.tsx.snap index 5b63a09d4f7c4..591b3f222d033 100644 --- a/x-pack/plugins/uptime/public/components/monitor/status_details/__test__/__snapshots__/ssl_certificate.test.tsx.snap +++ b/x-pack/plugins/uptime/public/components/monitor/status_details/__test__/__snapshots__/ssl_certificate.test.tsx.snap @@ -139,12 +139,47 @@ exports[`SSL Certificate component shallow renders 1`] = ` } } > - <MonitorSSLCertificate - tls={ + <ContextProvider + value={ Object { - "not_after": "2020-04-24T11:41:38.200Z", + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + "push": [Function], + "replace": [Function], } } - /> + > + <MonitorSSLCertificate + tls={ + Object { + "not_after": "2020-04-24T11:41:38.200Z", + } + } + /> + </ContextProvider> </ContextProvider> `; diff --git a/x-pack/plugins/uptime/public/components/overview/empty_state/__tests__/__snapshots__/empty_state.test.tsx.snap b/x-pack/plugins/uptime/public/components/overview/empty_state/__tests__/__snapshots__/empty_state.test.tsx.snap index cdefa7db5688b..6667da401d6a9 100644 --- a/x-pack/plugins/uptime/public/components/overview/empty_state/__tests__/__snapshots__/empty_state.test.tsx.snap +++ b/x-pack/plugins/uptime/public/components/overview/empty_state/__tests__/__snapshots__/empty_state.test.tsx.snap @@ -1372,25 +1372,60 @@ exports[`EmptyState component renders child components when count is truthy 1`] } } > - <EmptyStateComponent - loading={false} - statesIndexStatus={ + <ContextProvider + value={ Object { - "docCount": 1, - "indexExists": true, + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + "push": [Function], + "replace": [Function], } } > - <div> - Foo - </div> - <div> - Bar - </div> - <div> - Baz - </div> - </EmptyStateComponent> + <EmptyStateComponent + loading={false} + statesIndexStatus={ + Object { + "docCount": 1, + "indexExists": true, + } + } + > + <div> + Foo + </div> + <div> + Bar + </div> + <div> + Baz + </div> + </EmptyStateComponent> + </ContextProvider> </ContextProvider> `; diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/__snapshots__/filter_status_button.test.tsx.snap b/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/__snapshots__/filter_status_button.test.tsx.snap index b5d1b1d8ff60e..0c7dfd8f92453 100644 --- a/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/__snapshots__/filter_status_button.test.tsx.snap +++ b/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/__snapshots__/filter_status_button.test.tsx.snap @@ -75,12 +75,47 @@ exports[`FilterStatusButton shallow renders without errors for valid props 1`] = } } > - <FilterStatusButton - content="Up" - dataTestSubj="foo" - isActive={true} - value="up" - withNext={true} - /> + <ContextProvider + value={ + Object { + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + "push": [Function], + "replace": [Function], + } + } + > + <FilterStatusButton + content="Up" + dataTestSubj="foo" + isActive={true} + value="up" + withNext={true} + /> + </ContextProvider> </ContextProvider> `; diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/__snapshots__/monitor_list.test.tsx.snap b/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/__snapshots__/monitor_list.test.tsx.snap index d593dcc21b590..7fc6405aaa303 100644 --- a/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/__snapshots__/monitor_list.test.tsx.snap +++ b/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/__snapshots__/monitor_list.test.tsx.snap @@ -51,21 +51,56 @@ exports[`MonitorList component MonitorListPagination component renders a no item } } > - <MonitorListComponent - monitorList={ + <ContextProvider + value={ Object { - "list": Object { - "nextPagePagination": null, - "prevPagePagination": null, - "summaries": Array [], - "totalSummaryCount": 0, + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, }, - "loading": false, + "push": [Function], + "replace": [Function], } } - pageSize={10} - setPageSize={[MockFunction]} - /> + > + <MonitorListComponent + monitorList={ + Object { + "list": Object { + "nextPagePagination": null, + "prevPagePagination": null, + "summaries": Array [], + "totalSummaryCount": 0, + }, + "loading": false, + } + } + pageSize={10} + setPageSize={[MockFunction]} + /> + </ContextProvider> </ContextProvider> `; @@ -120,83 +155,118 @@ exports[`MonitorList component MonitorListPagination component renders the pagin } } > - <MonitorListComponent - monitorList={ + <ContextProvider + value={ Object { - "list": Object { - "nextPagePagination": "{\\"cursorKey\\":{\\"monitor_id\\":456},\\"cursorDirection\\":\\"AFTER\\",\\"sortOrder\\":\\"ASC\\"}", - "prevPagePagination": "{\\"cursorKey\\":{\\"monitor_id\\":123},\\"cursorDirection\\":\\"BEFORE\\",\\"sortOrder\\":\\"ASC\\"}", - "summaries": Array [ - Object { - "monitor_id": "foo", - "state": Object { - "checks": Array [ - Object { - "monitor": Object { - "ip": "127.0.0.1", - "status": "up", + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + "push": [Function], + "replace": [Function], + } + } + > + <MonitorListComponent + monitorList={ + Object { + "list": Object { + "nextPagePagination": "{\\"cursorKey\\":{\\"monitor_id\\":456},\\"cursorDirection\\":\\"AFTER\\",\\"sortOrder\\":\\"ASC\\"}", + "prevPagePagination": "{\\"cursorKey\\":{\\"monitor_id\\":123},\\"cursorDirection\\":\\"BEFORE\\",\\"sortOrder\\":\\"ASC\\"}", + "summaries": Array [ + Object { + "monitor_id": "foo", + "state": Object { + "checks": Array [ + Object { + "monitor": Object { + "ip": "127.0.0.1", + "status": "up", + }, + "timestamp": 124, }, - "timestamp": 124, - }, - Object { - "monitor": Object { - "ip": "127.0.0.2", - "status": "down", + Object { + "monitor": Object { + "ip": "127.0.0.2", + "status": "down", + }, + "timestamp": 125, }, - "timestamp": 125, - }, - Object { - "monitor": Object { - "ip": "127.0.0.3", - "status": "down", + Object { + "monitor": Object { + "ip": "127.0.0.3", + "status": "down", + }, + "timestamp": 126, }, - "timestamp": 126, + ], + "summary": Object { + "down": 2, + "up": 1, }, - ], - "summary": Object { - "down": 2, - "up": 1, + "timestamp": "123", + "url": Object {}, }, - "timestamp": "123", - "url": Object {}, }, - }, - Object { - "monitor_id": "bar", - "state": Object { - "checks": Array [ - Object { - "monitor": Object { - "ip": "127.0.0.1", - "status": "up", + Object { + "monitor_id": "bar", + "state": Object { + "checks": Array [ + Object { + "monitor": Object { + "ip": "127.0.0.1", + "status": "up", + }, + "timestamp": 125, }, - "timestamp": 125, - }, - Object { - "monitor": Object { - "ip": "127.0.0.2", - "status": "up", + Object { + "monitor": Object { + "ip": "127.0.0.2", + "status": "up", + }, + "timestamp": 126, }, - "timestamp": 126, + ], + "summary": Object { + "down": 0, + "up": 2, }, - ], - "summary": Object { - "down": 0, - "up": 2, + "timestamp": "125", + "url": Object {}, }, - "timestamp": "125", - "url": Object {}, }, - }, - ], - "totalSummaryCount": 2, - }, - "loading": false, + ], + "totalSummaryCount": 2, + }, + "loading": false, + } } - } - pageSize={10} - setPageSize={[MockFunction]} - /> + pageSize={10} + setPageSize={[MockFunction]} + /> + </ContextProvider> </ContextProvider> `; @@ -251,21 +321,56 @@ exports[`MonitorList component renders a no items message when no data is provid } } > - <MonitorListComponent - monitorList={ + <ContextProvider + value={ Object { - "list": Object { - "nextPagePagination": null, - "prevPagePagination": null, - "summaries": Array [], - "totalSummaryCount": 0, + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, }, - "loading": true, + "push": [Function], + "replace": [Function], } } - pageSize={10} - setPageSize={[MockFunction]} - /> + > + <MonitorListComponent + monitorList={ + Object { + "list": Object { + "nextPagePagination": null, + "prevPagePagination": null, + "summaries": Array [], + "totalSummaryCount": 0, + }, + "loading": true, + } + } + pageSize={10} + setPageSize={[MockFunction]} + /> + </ContextProvider> </ContextProvider> `; @@ -320,84 +425,119 @@ exports[`MonitorList component renders error list 1`] = ` } } > - <MonitorListComponent - monitorList={ + <ContextProvider + value={ Object { - "error": [Error: foo message], - "list": Object { - "nextPagePagination": null, - "prevPagePagination": null, - "summaries": Array [ - Object { - "monitor_id": "foo", - "state": Object { - "checks": Array [ - Object { - "monitor": Object { - "ip": "127.0.0.1", - "status": "up", + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + "push": [Function], + "replace": [Function], + } + } + > + <MonitorListComponent + monitorList={ + Object { + "error": [Error: foo message], + "list": Object { + "nextPagePagination": null, + "prevPagePagination": null, + "summaries": Array [ + Object { + "monitor_id": "foo", + "state": Object { + "checks": Array [ + Object { + "monitor": Object { + "ip": "127.0.0.1", + "status": "up", + }, + "timestamp": 124, }, - "timestamp": 124, - }, - Object { - "monitor": Object { - "ip": "127.0.0.2", - "status": "down", + Object { + "monitor": Object { + "ip": "127.0.0.2", + "status": "down", + }, + "timestamp": 125, }, - "timestamp": 125, - }, - Object { - "monitor": Object { - "ip": "127.0.0.3", - "status": "down", + Object { + "monitor": Object { + "ip": "127.0.0.3", + "status": "down", + }, + "timestamp": 126, }, - "timestamp": 126, + ], + "summary": Object { + "down": 2, + "up": 1, }, - ], - "summary": Object { - "down": 2, - "up": 1, + "timestamp": "123", + "url": Object {}, }, - "timestamp": "123", - "url": Object {}, }, - }, - Object { - "monitor_id": "bar", - "state": Object { - "checks": Array [ - Object { - "monitor": Object { - "ip": "127.0.0.1", - "status": "up", + Object { + "monitor_id": "bar", + "state": Object { + "checks": Array [ + Object { + "monitor": Object { + "ip": "127.0.0.1", + "status": "up", + }, + "timestamp": 125, }, - "timestamp": 125, - }, - Object { - "monitor": Object { - "ip": "127.0.0.2", - "status": "up", + Object { + "monitor": Object { + "ip": "127.0.0.2", + "status": "up", + }, + "timestamp": 126, }, - "timestamp": 126, + ], + "summary": Object { + "down": 0, + "up": 2, }, - ], - "summary": Object { - "down": 0, - "up": 2, + "timestamp": "125", + "url": Object {}, }, - "timestamp": "125", - "url": Object {}, }, - }, - ], - "totalSummaryCount": 2, - }, - "loading": false, + ], + "totalSummaryCount": 2, + }, + "loading": false, + } } - } - pageSize={10} - setPageSize={[MockFunction]} - /> + pageSize={10} + setPageSize={[MockFunction]} + /> + </ContextProvider> </ContextProvider> `; @@ -452,83 +592,118 @@ exports[`MonitorList component renders loading state 1`] = ` } } > - <MonitorListComponent - monitorList={ + <ContextProvider + value={ Object { - "list": Object { - "nextPagePagination": null, - "prevPagePagination": null, - "summaries": Array [ - Object { - "monitor_id": "foo", - "state": Object { - "checks": Array [ - Object { - "monitor": Object { - "ip": "127.0.0.1", - "status": "up", + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + "push": [Function], + "replace": [Function], + } + } + > + <MonitorListComponent + monitorList={ + Object { + "list": Object { + "nextPagePagination": null, + "prevPagePagination": null, + "summaries": Array [ + Object { + "monitor_id": "foo", + "state": Object { + "checks": Array [ + Object { + "monitor": Object { + "ip": "127.0.0.1", + "status": "up", + }, + "timestamp": 124, }, - "timestamp": 124, - }, - Object { - "monitor": Object { - "ip": "127.0.0.2", - "status": "down", + Object { + "monitor": Object { + "ip": "127.0.0.2", + "status": "down", + }, + "timestamp": 125, }, - "timestamp": 125, - }, - Object { - "monitor": Object { - "ip": "127.0.0.3", - "status": "down", + Object { + "monitor": Object { + "ip": "127.0.0.3", + "status": "down", + }, + "timestamp": 126, }, - "timestamp": 126, + ], + "summary": Object { + "down": 2, + "up": 1, }, - ], - "summary": Object { - "down": 2, - "up": 1, + "timestamp": "123", + "url": Object {}, }, - "timestamp": "123", - "url": Object {}, }, - }, - Object { - "monitor_id": "bar", - "state": Object { - "checks": Array [ - Object { - "monitor": Object { - "ip": "127.0.0.1", - "status": "up", + Object { + "monitor_id": "bar", + "state": Object { + "checks": Array [ + Object { + "monitor": Object { + "ip": "127.0.0.1", + "status": "up", + }, + "timestamp": 125, }, - "timestamp": 125, - }, - Object { - "monitor": Object { - "ip": "127.0.0.2", - "status": "up", + Object { + "monitor": Object { + "ip": "127.0.0.2", + "status": "up", + }, + "timestamp": 126, }, - "timestamp": 126, + ], + "summary": Object { + "down": 0, + "up": 2, }, - ], - "summary": Object { - "down": 0, - "up": 2, + "timestamp": "125", + "url": Object {}, }, - "timestamp": "125", - "url": Object {}, }, - }, - ], - "totalSummaryCount": 2, - }, - "loading": true, + ], + "totalSummaryCount": 2, + }, + "loading": true, + } } - } - pageSize={10} - setPageSize={[MockFunction]} - /> + pageSize={10} + setPageSize={[MockFunction]} + /> + </ContextProvider> </ContextProvider> `; @@ -1301,82 +1476,117 @@ exports[`MonitorList component shallow renders the monitor list 1`] = ` } } > - <MonitorListComponent - monitorList={ + <ContextProvider + value={ Object { - "list": Object { - "nextPagePagination": null, - "prevPagePagination": null, - "summaries": Array [ - Object { - "monitor_id": "foo", - "state": Object { - "checks": Array [ - Object { - "monitor": Object { - "ip": "127.0.0.1", - "status": "up", + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + "push": [Function], + "replace": [Function], + } + } + > + <MonitorListComponent + monitorList={ + Object { + "list": Object { + "nextPagePagination": null, + "prevPagePagination": null, + "summaries": Array [ + Object { + "monitor_id": "foo", + "state": Object { + "checks": Array [ + Object { + "monitor": Object { + "ip": "127.0.0.1", + "status": "up", + }, + "timestamp": 124, }, - "timestamp": 124, - }, - Object { - "monitor": Object { - "ip": "127.0.0.2", - "status": "down", + Object { + "monitor": Object { + "ip": "127.0.0.2", + "status": "down", + }, + "timestamp": 125, }, - "timestamp": 125, - }, - Object { - "monitor": Object { - "ip": "127.0.0.3", - "status": "down", + Object { + "monitor": Object { + "ip": "127.0.0.3", + "status": "down", + }, + "timestamp": 126, }, - "timestamp": 126, + ], + "summary": Object { + "down": 2, + "up": 1, }, - ], - "summary": Object { - "down": 2, - "up": 1, + "timestamp": "123", + "url": Object {}, }, - "timestamp": "123", - "url": Object {}, }, - }, - Object { - "monitor_id": "bar", - "state": Object { - "checks": Array [ - Object { - "monitor": Object { - "ip": "127.0.0.1", - "status": "up", + Object { + "monitor_id": "bar", + "state": Object { + "checks": Array [ + Object { + "monitor": Object { + "ip": "127.0.0.1", + "status": "up", + }, + "timestamp": 125, }, - "timestamp": 125, - }, - Object { - "monitor": Object { - "ip": "127.0.0.2", - "status": "up", + Object { + "monitor": Object { + "ip": "127.0.0.2", + "status": "up", + }, + "timestamp": 126, }, - "timestamp": 126, + ], + "summary": Object { + "down": 0, + "up": 2, }, - ], - "summary": Object { - "down": 0, - "up": 2, + "timestamp": "125", + "url": Object {}, }, - "timestamp": "125", - "url": Object {}, }, - }, - ], - "totalSummaryCount": 2, - }, - "loading": false, + ], + "totalSummaryCount": 2, + }, + "loading": false, + } } - } - pageSize={10} - setPageSize={[MockFunction]} - /> + pageSize={10} + setPageSize={[MockFunction]} + /> + </ContextProvider> </ContextProvider> `; diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/__snapshots__/status_filter.test.tsx.snap b/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/__snapshots__/status_filter.test.tsx.snap index e8b9326d360e8..12f8cdf1dcddd 100644 --- a/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/__snapshots__/status_filter.test.tsx.snap +++ b/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/__snapshots__/status_filter.test.tsx.snap @@ -123,6 +123,41 @@ exports[`StatusFilterComponent shallow renders without errors for valid props 1` } } > - <StatusFilter /> + <ContextProvider + value={ + Object { + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + "push": [Function], + "replace": [Function], + } + } + > + <StatusFilter /> + </ContextProvider> </ContextProvider> `; diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/__snapshots__/monitor_list_drawer.test.tsx.snap b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/__snapshots__/monitor_list_drawer.test.tsx.snap index 4520b760be379..877ba889ec1ff 100644 --- a/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/__snapshots__/monitor_list_drawer.test.tsx.snap +++ b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/__snapshots__/monitor_list_drawer.test.tsx.snap @@ -51,56 +51,91 @@ exports[`MonitorListDrawer component renders a MonitorListDrawer when there are } } > - <MonitorListDrawerComponent - monitorDetails={ + <ContextProvider + value={ Object { - "error": Object { - "message": "Get https://expired.badssl.com: x509: certificate has expired or is not yet valid", - "type": "io", + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, }, - "monitorId": "bad-ssl", + "push": [Function], + "replace": [Function], } } - summary={ - Object { - "monitor_id": "foo", - "state": Object { - "checks": Array [ - Object { - "monitor": Object { - "ip": "127.0.0.1", - "status": "up", + > + <MonitorListDrawerComponent + monitorDetails={ + Object { + "error": Object { + "message": "Get https://expired.badssl.com: x509: certificate has expired or is not yet valid", + "type": "io", + }, + "monitorId": "bad-ssl", + } + } + summary={ + Object { + "monitor_id": "foo", + "state": Object { + "checks": Array [ + Object { + "monitor": Object { + "ip": "127.0.0.1", + "status": "up", + }, + "timestamp": 121, }, - "timestamp": 121, - }, - Object { - "monitor": Object { - "ip": "127.0.0.2", - "status": "down", + Object { + "monitor": Object { + "ip": "127.0.0.2", + "status": "down", + }, + "timestamp": 123, }, - "timestamp": 123, - }, - Object { - "monitor": Object { - "ip": "127.0.0.3", - "status": "up", + Object { + "monitor": Object { + "ip": "127.0.0.3", + "status": "up", + }, + "timestamp": 125, }, - "timestamp": 125, + ], + "summary": Object { + "down": 0, + "up": 1, + }, + "timestamp": "123", + "url": Object { + "domain": "expired.badssl.com", + "full": "https://expired.badssl.com", }, - ], - "summary": Object { - "down": 0, - "up": 1, - }, - "timestamp": "123", - "url": Object { - "domain": "expired.badssl.com", - "full": "https://expired.badssl.com", }, - }, + } } - } - /> + /> + </ContextProvider> </ContextProvider> `; @@ -155,41 +190,76 @@ exports[`MonitorListDrawer component renders a MonitorListDrawer when there is o } } > - <MonitorListDrawerComponent - monitorDetails={ + <ContextProvider + value={ Object { - "error": Object { - "message": "Get https://expired.badssl.com: x509: certificate has expired or is not yet valid", - "type": "io", + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, }, - "monitorId": "bad-ssl", + "push": [Function], + "replace": [Function], } } - summary={ - Object { - "monitor_id": "foo", - "state": Object { - "checks": Array [ - Object { - "monitor": Object { - "ip": "127.0.0.1", - "status": "up", + > + <MonitorListDrawerComponent + monitorDetails={ + Object { + "error": Object { + "message": "Get https://expired.badssl.com: x509: certificate has expired or is not yet valid", + "type": "io", + }, + "monitorId": "bad-ssl", + } + } + summary={ + Object { + "monitor_id": "foo", + "state": Object { + "checks": Array [ + Object { + "monitor": Object { + "ip": "127.0.0.1", + "status": "up", + }, + "timestamp": 121, }, - "timestamp": 121, + ], + "summary": Object { + "down": 0, + "up": 1, + }, + "timestamp": "123", + "url": Object { + "domain": "expired.badssl.com", + "full": "https://expired.badssl.com", }, - ], - "summary": Object { - "down": 0, - "up": 1, - }, - "timestamp": "123", - "url": Object { - "domain": "expired.badssl.com", - "full": "https://expired.badssl.com", }, - }, + } } - } - /> + /> + </ContextProvider> </ContextProvider> `; diff --git a/x-pack/plugins/uptime/public/components/settings/__tests__/__snapshots__/certificate_form.test.tsx.snap b/x-pack/plugins/uptime/public/components/settings/__tests__/__snapshots__/certificate_form.test.tsx.snap index 36351da6f14c9..55c66183de946 100644 --- a/x-pack/plugins/uptime/public/components/settings/__tests__/__snapshots__/certificate_form.test.tsx.snap +++ b/x-pack/plugins/uptime/public/components/settings/__tests__/__snapshots__/certificate_form.test.tsx.snap @@ -51,18 +51,53 @@ exports[`CertificateForm shallow renders expected elements for valid props 1`] = } } > - <CertificateExpirationForm - fieldErrors={null} - formFields={ + <ContextProvider + value={ Object { - "certAgeThreshold": 36, - "certExpirationThreshold": 7, - "heartbeatIndices": "heartbeat-8*", + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + "push": [Function], + "replace": [Function], } } - isDisabled={false} - loading={false} - onChange={[MockFunction]} - /> + > + <CertificateExpirationForm + fieldErrors={null} + formFields={ + Object { + "certAgeThreshold": 36, + "certExpirationThreshold": 7, + "heartbeatIndices": "heartbeat-8*", + } + } + isDisabled={false} + loading={false} + onChange={[MockFunction]} + /> + </ContextProvider> </ContextProvider> `; diff --git a/x-pack/plugins/uptime/public/components/settings/__tests__/__snapshots__/indices_form.test.tsx.snap b/x-pack/plugins/uptime/public/components/settings/__tests__/__snapshots__/indices_form.test.tsx.snap index c5d077007e650..2eb434ffbaf40 100644 --- a/x-pack/plugins/uptime/public/components/settings/__tests__/__snapshots__/indices_form.test.tsx.snap +++ b/x-pack/plugins/uptime/public/components/settings/__tests__/__snapshots__/indices_form.test.tsx.snap @@ -51,18 +51,53 @@ exports[`CertificateForm shallow renders expected elements for valid props 1`] = } } > - <IndicesForm - fieldErrors={null} - formFields={ + <ContextProvider + value={ Object { - "certAgeThreshold": 36, - "certExpirationThreshold": 7, - "heartbeatIndices": "heartbeat-8*", + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + "push": [Function], + "replace": [Function], } } - isDisabled={false} - loading={false} - onChange={[MockFunction]} - /> + > + <IndicesForm + fieldErrors={null} + formFields={ + Object { + "certAgeThreshold": 36, + "certExpirationThreshold": 7, + "heartbeatIndices": "heartbeat-8*", + } + } + isDisabled={false} + loading={false} + onChange={[MockFunction]} + /> + </ContextProvider> </ContextProvider> `; diff --git a/x-pack/plugins/uptime/public/pages/__tests__/__snapshots__/certificates.test.tsx.snap b/x-pack/plugins/uptime/public/pages/__tests__/__snapshots__/certificates.test.tsx.snap index 53b2ea27864bc..e1009236ef4b8 100644 --- a/x-pack/plugins/uptime/public/pages/__tests__/__snapshots__/certificates.test.tsx.snap +++ b/x-pack/plugins/uptime/public/pages/__tests__/__snapshots__/certificates.test.tsx.snap @@ -51,6 +51,41 @@ exports[`CertificatesPage shallow renders expected elements for valid props 1`] } } > - <CertificatesPage /> + <ContextProvider + value={ + Object { + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + "push": [Function], + "replace": [Function], + } + } + > + <CertificatesPage /> + </ContextProvider> </ContextProvider> `; diff --git a/x-pack/plugins/uptime/public/pages/__tests__/__snapshots__/monitor.test.tsx.snap b/x-pack/plugins/uptime/public/pages/__tests__/__snapshots__/monitor.test.tsx.snap index 6064caa868bf8..cd92334cf72f5 100644 --- a/x-pack/plugins/uptime/public/pages/__tests__/__snapshots__/monitor.test.tsx.snap +++ b/x-pack/plugins/uptime/public/pages/__tests__/__snapshots__/monitor.test.tsx.snap @@ -51,6 +51,41 @@ exports[`MonitorPage shallow renders expected elements for valid props 1`] = ` } } > - <MonitorPage /> + <ContextProvider + value={ + Object { + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + "push": [Function], + "replace": [Function], + } + } + > + <MonitorPage /> + </ContextProvider> </ContextProvider> `; diff --git a/x-pack/plugins/uptime/public/pages/__tests__/__snapshots__/not_found.test.tsx.snap b/x-pack/plugins/uptime/public/pages/__tests__/__snapshots__/not_found.test.tsx.snap index a4d13963aaf77..df67e320d7aac 100644 --- a/x-pack/plugins/uptime/public/pages/__tests__/__snapshots__/not_found.test.tsx.snap +++ b/x-pack/plugins/uptime/public/pages/__tests__/__snapshots__/not_found.test.tsx.snap @@ -51,6 +51,41 @@ exports[`NotFoundPage render component for valid props 1`] = ` } } > - <NotFoundPage /> + <ContextProvider + value={ + Object { + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ + Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + ], + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + "push": [Function], + "replace": [Function], + } + } + > + <NotFoundPage /> + </ContextProvider> </ContextProvider> `; diff --git a/x-pack/plugins/uptime/public/pages/__tests__/__snapshots__/overview.test.tsx.snap b/x-pack/plugins/uptime/public/pages/__tests__/__snapshots__/overview.test.tsx.snap index 6824b9e88803e..e36f54b0bcfbc 100644 --- a/x-pack/plugins/uptime/public/pages/__tests__/__snapshots__/overview.test.tsx.snap +++ b/x-pack/plugins/uptime/public/pages/__tests__/__snapshots__/overview.test.tsx.snap @@ -51,106 +51,141 @@ exports[`MonitorPage shallow renders expected elements for valid props 1`] = ` } } > - <Memo() - indexPattern={ + <ContextProvider + value={ Object { - "fields": Array [ - Object { - "aggregatable": true, - "esTypes": Array [ - "date", - ], - "name": "@timestamp", - "readFromDocValues": true, - "searchable": true, - "type": "date", - }, - Object { - "aggregatable": true, - "esTypes": Array [ - "keyword", - ], - "name": "monitor.check_group", - "readFromDocValues": true, - "searchable": true, - "type": "string", - }, - Object { - "aggregatable": true, - "esTypes": Array [ - "long", - ], - "name": "monitor.duration.us", - "readFromDocValues": true, - "searchable": true, - "type": "number", - }, - Object { - "aggregatable": true, - "esTypes": Array [ - "keyword", - ], - "name": "monitor.id", - "readFromDocValues": true, - "searchable": true, - "type": "string", - }, - Object { - "aggregatable": true, - "esTypes": Array [ - "ip", - ], - "name": "monitor.ip", - "readFromDocValues": true, - "searchable": true, - "type": "ip", - }, - Object { - "aggregatable": true, - "esTypes": Array [ - "keyword", - ], - "name": "monitor.name", - "readFromDocValues": true, - "searchable": true, - "type": "string", - }, - Object { - "aggregatable": true, - "esTypes": Array [ - "keyword", - ], - "name": "monitor.status", - "readFromDocValues": true, - "searchable": true, - "type": "string", - }, - Object { - "aggregatable": true, - "esTypes": Array [ - "date_range", - ], - "name": "monitor.timespan", - "readFromDocValues": true, - "searchable": true, - "type": "unknown", - }, + "action": "POP", + "block": [Function], + "canGo": [Function], + "createHref": [Function], + "entries": Array [ Object { - "aggregatable": true, - "esTypes": Array [ - "keyword", - ], - "name": "monitor.type", - "readFromDocValues": true, - "searchable": true, - "type": "string", + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, }, ], - "title": "heartbeat-7*", + "go": [Function], + "goBack": [Function], + "goForward": [Function], + "index": 0, + "length": 1, + "listen": [Function], + "location": Object { + "hash": "", + "key": "TestKeyForTesting", + "pathname": "/", + "search": "", + "state": undefined, + }, + "push": [Function], + "replace": [Function], } } - loading={false} - setEsKueryFilters={[MockFunction]} - /> + > + <Memo() + indexPattern={ + Object { + "fields": Array [ + Object { + "aggregatable": true, + "esTypes": Array [ + "date", + ], + "name": "@timestamp", + "readFromDocValues": true, + "searchable": true, + "type": "date", + }, + Object { + "aggregatable": true, + "esTypes": Array [ + "keyword", + ], + "name": "monitor.check_group", + "readFromDocValues": true, + "searchable": true, + "type": "string", + }, + Object { + "aggregatable": true, + "esTypes": Array [ + "long", + ], + "name": "monitor.duration.us", + "readFromDocValues": true, + "searchable": true, + "type": "number", + }, + Object { + "aggregatable": true, + "esTypes": Array [ + "keyword", + ], + "name": "monitor.id", + "readFromDocValues": true, + "searchable": true, + "type": "string", + }, + Object { + "aggregatable": true, + "esTypes": Array [ + "ip", + ], + "name": "monitor.ip", + "readFromDocValues": true, + "searchable": true, + "type": "ip", + }, + Object { + "aggregatable": true, + "esTypes": Array [ + "keyword", + ], + "name": "monitor.name", + "readFromDocValues": true, + "searchable": true, + "type": "string", + }, + Object { + "aggregatable": true, + "esTypes": Array [ + "keyword", + ], + "name": "monitor.status", + "readFromDocValues": true, + "searchable": true, + "type": "string", + }, + Object { + "aggregatable": true, + "esTypes": Array [ + "date_range", + ], + "name": "monitor.timespan", + "readFromDocValues": true, + "searchable": true, + "type": "unknown", + }, + Object { + "aggregatable": true, + "esTypes": Array [ + "keyword", + ], + "name": "monitor.type", + "readFromDocValues": true, + "searchable": true, + "type": "string", + }, + ], + "title": "heartbeat-7*", + } + } + loading={false} + setEsKueryFilters={[MockFunction]} + /> + </ContextProvider> </ContextProvider> `; diff --git a/yarn.lock b/yarn.lock index 76efa90d30f48..538110d42e003 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1984,7 +1984,7 @@ dependencies: regenerator-runtime "^0.13.2" -"@babel/runtime@^7.0.0", "@babel/runtime@^7.1.2", "@babel/runtime@^7.4.0", "@babel/runtime@^7.4.2", "@babel/runtime@^7.4.4", "@babel/runtime@^7.4.5", "@babel/runtime@^7.5.0", "@babel/runtime@^7.5.4", "@babel/runtime@^7.5.5", "@babel/runtime@^7.6.0", "@babel/runtime@^7.6.2", "@babel/runtime@^7.6.3", "@babel/runtime@^7.7.2", "@babel/runtime@^7.7.4", "@babel/runtime@^7.8.4", "@babel/runtime@^7.9.2": +"@babel/runtime@^7.0.0", "@babel/runtime@^7.1.2", "@babel/runtime@^7.4.2", "@babel/runtime@^7.4.4", "@babel/runtime@^7.4.5", "@babel/runtime@^7.5.0", "@babel/runtime@^7.5.4", "@babel/runtime@^7.5.5", "@babel/runtime@^7.6.0", "@babel/runtime@^7.6.2", "@babel/runtime@^7.6.3", "@babel/runtime@^7.7.2", "@babel/runtime@^7.7.4", "@babel/runtime@^7.8.4", "@babel/runtime@^7.9.2": version "7.9.2" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.9.2.tgz#d90df0583a3a252f09aaa619665367bae518db06" integrity sha512-NE2DtOdufG7R5vnfQUTehdTfNycfUANEtCa9PssN9O/xmTzP4E08UI797ixaei6hBEVL9BI/PsdJS5x7mWoB9Q== @@ -5772,19 +5772,19 @@ dependencies: "@types/react" "*" -"@types/react-router-dom@^5.1.3": - version "5.1.3" - resolved "https://registry.yarnpkg.com/@types/react-router-dom/-/react-router-dom-5.1.3.tgz#b5d28e7850bd274d944c0fbbe5d57e6b30d71196" - integrity sha512-pCq7AkOvjE65jkGS5fQwQhvUp4+4PVD9g39gXLZViP2UqFiFzsEpB3PKf0O6mdbKsewSK8N14/eegisa/0CwnA== +"@types/react-router-dom@^5.1.5": + version "5.1.5" + resolved "https://registry.yarnpkg.com/@types/react-router-dom/-/react-router-dom-5.1.5.tgz#7c334a2ea785dbad2b2dcdd83d2cf3d9973da090" + integrity sha512-ArBM4B1g3BWLGbaGvwBGO75GNFbLDUthrDojV2vHLih/Tq8M+tgvY1DSwkuNrPSwdp/GUL93WSEpTZs8nVyJLw== dependencies: "@types/history" "*" "@types/react" "*" "@types/react-router" "*" -"@types/react-router@*", "@types/react-router@^5.1.3": - version "5.1.3" - resolved "https://registry.yarnpkg.com/@types/react-router/-/react-router-5.1.3.tgz#7c7ca717399af64d8733d8cb338dd43641b96f2d" - integrity sha512-0gGhmerBqN8CzlnDmSgGNun3tuZFXerUclWkqEhozdLaJtfcJRUTGkKaEKk+/MpHd1KDS1+o2zb/3PkBUiv2qQ== +"@types/react-router@*", "@types/react-router@^5.1.7": + version "5.1.7" + resolved "https://registry.yarnpkg.com/@types/react-router/-/react-router-5.1.7.tgz#e9d12ed7dcfc79187e4d36667745b69a5aa11556" + integrity sha512-2ouP76VQafKjtuc0ShpwUebhHwJo0G6rhahW9Pb8au3tQTjYXd2jta4wv6U2tGLR/I42yuG00+UXjNYY0dTzbg== dependencies: "@types/history" "*" "@types/react" "*" @@ -21804,14 +21804,13 @@ min-indent@^1.0.0: resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.0.tgz#cfc45c37e9ec0d8f0a0ec3dd4ef7f7c3abe39256" integrity sha1-z8RcN+nsDY8KDsPdTvf3w6vjklY= -mini-create-react-context@^0.3.0: - version "0.3.2" - resolved "https://registry.yarnpkg.com/mini-create-react-context/-/mini-create-react-context-0.3.2.tgz#79fc598f283dd623da8e088b05db8cddab250189" - integrity sha512-2v+OeetEyliMt5VHMXsBhABoJ0/M4RCe7fatd/fBy6SMiKazUSEt3gxxypfnk2SHMkdBYvorHRoQxuGoiwbzAw== +mini-create-react-context@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/mini-create-react-context/-/mini-create-react-context-0.4.0.tgz#df60501c83151db69e28eac0ef08b4002efab040" + integrity sha512-b0TytUgFSbgFJGzJqXPKCFCBWigAjpjo+Fl7Vf7ZbKRDptszpppKxXH6DRXEABZ/gcEQczeb0iZ7JvL8e8jjCA== dependencies: - "@babel/runtime" "^7.4.0" - gud "^1.0.0" - tiny-warning "^1.0.2" + "@babel/runtime" "^7.5.5" + tiny-warning "^1.0.3" mini-css-extract-plugin@0.7.0, mini-css-extract-plugin@^0.7.0: version "0.7.0" @@ -25945,16 +25944,16 @@ react-reverse-portal@^1.0.4: resolved "https://registry.yarnpkg.com/react-reverse-portal/-/react-reverse-portal-1.0.4.tgz#d127d2c9147549b25c4959aba1802eca4b144cd4" integrity sha512-WESex/wSjxHwdG7M0uwPNkdQXaLauXNHi4INQiRybmFIXVzAqgf/Ak2OzJ4MLf4UuCD/IzEwJOkML2SxnnontA== -react-router-dom@^5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-5.1.2.tgz#06701b834352f44d37fbb6311f870f84c76b9c18" - integrity sha512-7BPHAaIwWpZS074UKaw1FjVdZBSVWEk8IuDXdB+OkLb8vd/WRQIpA4ag9WQk61aEfQs47wHyjWUoUGGZxpQXew== +react-router-dom@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-5.2.0.tgz#9e65a4d0c45e13289e66c7b17c7e175d0ea15662" + integrity sha512-gxAmfylo2QUjcwxI63RhQ5G85Qqt4voZpUXSEqCwykV0baaOTQDR1f0PmY8AELqIyVc0NEZUj0Gov5lNGcXgsA== dependencies: "@babel/runtime" "^7.1.2" history "^4.9.0" loose-envify "^1.3.1" prop-types "^15.6.2" - react-router "5.1.2" + react-router "5.2.0" tiny-invariant "^1.0.2" tiny-warning "^1.0.0" @@ -25963,16 +25962,16 @@ react-router-redux@^4.0.8: resolved "https://registry.yarnpkg.com/react-router-redux/-/react-router-redux-4.0.8.tgz#227403596b5151e182377dab835b5d45f0f8054e" integrity sha1-InQDWWtRUeGCN32rg1tdRfD4BU4= -react-router@5.1.2, react-router@^5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/react-router/-/react-router-5.1.2.tgz#6ea51d789cb36a6be1ba5f7c0d48dd9e817d3418" - integrity sha512-yjEuMFy1ONK246B+rsa0cUam5OeAQ8pyclRDgpxuSCrAlJ1qN9uZ5IgyKC7gQg0w8OM50NXHEegPh/ks9YuR2A== +react-router@5.2.0, react-router@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/react-router/-/react-router-5.2.0.tgz#424e75641ca8747fbf76e5ecca69781aa37ea293" + integrity sha512-smz1DUuFHRKdcJC0jobGo8cVbhO3x50tCL4icacOlcwDOEQPq4TMqwx3sY1TP+DvtTgz4nm3thuo7A+BK2U0Dw== dependencies: "@babel/runtime" "^7.1.2" history "^4.9.0" hoist-non-react-statics "^3.1.0" loose-envify "^1.3.1" - mini-create-react-context "^0.3.0" + mini-create-react-context "^0.4.0" path-to-regexp "^1.7.0" prop-types "^15.6.2" react-is "^16.6.0" @@ -30195,7 +30194,7 @@ tiny-warning@^1.0.0: resolved "https://registry.yarnpkg.com/tiny-warning/-/tiny-warning-1.0.2.tgz#1dfae771ee1a04396bdfde27a3adcebc6b648b28" integrity sha512-rru86D9CpQRLvsFG5XFdy0KdLAvjdQDyZCsRcuu60WtzFylDM3eAWSxEVz5kzL2Gp544XiUvPbVKtOA/txLi9Q== -tiny-warning@^1.0.2: +tiny-warning@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/tiny-warning/-/tiny-warning-1.0.3.tgz#94a30db453df4c643d0fd566060d60a875d84754" integrity sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==