From 3510b1dd38b9ea49b00fa3ef238ec82ceccd4e1d Mon Sep 17 00:00:00 2001 From: Angela Chuang Date: Mon, 7 Sep 2020 11:19:56 +0100 Subject: [PATCH] fix types --- .../factory/hosts/authentications/__mocks__/index.ts | 11 ++++------- .../factory/hosts/authentications/index.test.tsx | 4 ++-- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/x-pack/plugins/security_solution/server/search_strategy/security_solution/factory/hosts/authentications/__mocks__/index.ts b/x-pack/plugins/security_solution/server/search_strategy/security_solution/factory/hosts/authentications/__mocks__/index.ts index 2578c96f89a5d..65343dc721fd7 100644 --- a/x-pack/plugins/security_solution/server/search_strategy/security_solution/factory/hosts/authentications/__mocks__/index.ts +++ b/x-pack/plugins/security_solution/server/search_strategy/security_solution/factory/hosts/authentications/__mocks__/index.ts @@ -4,17 +4,14 @@ * you may not use this file except in compliance with the Elastic License. */ import { IEsSearchResponse } from '../../../../../../../../../../src/plugins/data/common'; - import { + AuthenticationHit, Direction, HostsQueries, -} from '../../../../../../../common/search_strategy/security_solution'; -import { - AuthenticationHit, - AuthenticationsRequestOptions, -} from '../../../../../../../common/search_strategy/security_solution/hosts/authentications'; + HostAuthenticationsRequestOptions, +} from '../../../../../../../common/search_strategy'; -export const mockOptions: AuthenticationsRequestOptions = { +export const mockOptions: HostAuthenticationsRequestOptions = { defaultIndex: [ 'apm-*-transaction*', 'auditbeat-*', diff --git a/x-pack/plugins/security_solution/server/search_strategy/security_solution/factory/hosts/authentications/index.test.tsx b/x-pack/plugins/security_solution/server/search_strategy/security_solution/factory/hosts/authentications/index.test.tsx index 8640dcb6624d7..9e8e2ead0ed4a 100644 --- a/x-pack/plugins/security_solution/server/search_strategy/security_solution/factory/hosts/authentications/index.test.tsx +++ b/x-pack/plugins/security_solution/server/search_strategy/security_solution/factory/hosts/authentications/index.test.tsx @@ -6,7 +6,7 @@ import { DEFAULT_MAX_TABLE_QUERY_SIZE } from '../../../../../../common/constants'; -import { AuthenticationsRequestOptions } from '../../../../../../common/search_strategy/security_solution/hosts/authentications'; +import { HostAuthenticationsRequestOptions } from '../../../../../../common/search_strategy/security_solution/hosts/authentications'; import * as buildQuery from './dsl/query.dsl'; import { authentications } from '.'; import { @@ -35,7 +35,7 @@ describe('authentications search strategy', () => { ...mockOptions.pagination, querySize: DEFAULT_MAX_TABLE_QUERY_SIZE, }, - } as AuthenticationsRequestOptions; + } as HostAuthenticationsRequestOptions; expect(() => { authentications.buildDsl(overSizeOptions);