Skip to content

Commit 95c558b

Browse files
committed
remove obsolete server side audit log index mock method
refs /pull/101032
1 parent 8c89fe2 commit 95c558b

1 file changed

Lines changed: 0 additions & 23 deletions

File tree

  • x-pack/plugins/security_solution/server/endpoint/routes/actions

x-pack/plugins/security_solution/server/endpoint/routes/actions/mocks.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,6 @@ import {
1818
ISOLATION_ACTIONS,
1919
} from '../../../../common/endpoint/types';
2020

21-
export const mockAuditLog = (results: any = []): ApiResponse<any> => {
22-
return {
23-
body: {
24-
hits: {
25-
total: results.length,
26-
hits: results.map((a: any) => {
27-
const _index = a._index;
28-
delete a._index;
29-
const _source = a;
30-
return {
31-
_index,
32-
_source,
33-
};
34-
}),
35-
},
36-
},
37-
statusCode: 200,
38-
headers: {},
39-
warnings: [],
40-
meta: {} as any,
41-
};
42-
};
43-
4421
export const mockSearchResult = (results: any = []): ApiResponse<any> => {
4522
return {
4623
body: {

0 commit comments

Comments
 (0)