Skip to content

Commit a82af74

Browse files
committed
Adjust mock to fix unit test
1 parent 0f31b25 commit a82af74

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • x-pack/legacy/plugins/siem/server/lib/kpi_hosts

x-pack/legacy/plugins/siem/server/lib/kpi_hosts/mock.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,15 +356,15 @@ export const mockKpiHostDetailsUniqueIpsQuery = [
356356
];
357357

358358
const mockAuthAggs = {
359-
authentication_success: { filter: { term: { 'event.type': 'authentication_success' } } },
359+
authentication_success: { filter: { term: { 'event.outcome': 'success' } } },
360360
authentication_success_histogram: {
361361
auto_date_histogram: { field: '@timestamp', buckets: '6' },
362-
aggs: { count: { filter: { term: { 'event.type': 'authentication_success' } } } },
362+
aggs: { count: { filter: { term: { 'event.outcome': 'success' } } } },
363363
},
364-
authentication_failure: { filter: { term: { 'event.type': 'authentication_failure' } } },
364+
authentication_failure: { filter: { term: { 'event.outcome': 'failure' } } },
365365
authentication_failure_histogram: {
366366
auto_date_histogram: { field: '@timestamp', buckets: '6' },
367-
aggs: { count: { filter: { term: { 'event.type': 'authentication_failure' } } } },
367+
aggs: { count: { filter: { term: { 'event.outcome': 'failure' } } } },
368368
},
369369
};
370370

0 commit comments

Comments
 (0)