[Logs UI] Alerting (#62806)

First iteration of logs alerting
This commit is contained in:
Kerry Gallagher 2020-04-27 16:23:14 +01:00 committed by GitHub
parent ea307e13b6
commit 72fba8bf64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 1405 additions and 44 deletions

View file

@ -29,7 +29,9 @@ describe('the InfraSources lib', () => {
},
});
expect(await sourcesLib.getSourceConfiguration(request, 'TEST_ID')).toMatchObject({
expect(
await sourcesLib.getSourceConfiguration(request.core.savedObjects.client, 'TEST_ID')
).toMatchObject({
id: 'TEST_ID',
version: 'foo',
updatedAt: 946684800000,
@ -74,7 +76,9 @@ describe('the InfraSources lib', () => {
},
});
expect(await sourcesLib.getSourceConfiguration(request, 'TEST_ID')).toMatchObject({
expect(
await sourcesLib.getSourceConfiguration(request.core.savedObjects.client, 'TEST_ID')
).toMatchObject({
id: 'TEST_ID',
version: 'foo',
updatedAt: 946684800000,
@ -104,7 +108,9 @@ describe('the InfraSources lib', () => {
attributes: {},
});
expect(await sourcesLib.getSourceConfiguration(request, 'TEST_ID')).toMatchObject({
expect(
await sourcesLib.getSourceConfiguration(request.core.savedObjects.client, 'TEST_ID')
).toMatchObject({
id: 'TEST_ID',
version: 'foo',
updatedAt: 946684800000,