Skip to content

Commit

Permalink
Merge pull request elastic#33 from Elastic-AWP-Platform/fix-es-lint-e…
Browse files Browse the repository at this point in the history
…rrors
  • Loading branch information
opauloh authored Jan 19, 2022
2 parents 7dc497d + 14e5e55 commit 19fe25d
Show file tree
Hide file tree
Showing 20 changed files with 2,017 additions and 2,005 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const SESSION_VIEW_CLOSE_BUTTON = '[data-test-subj="session-view-close-bu
export const PROCESS_TREE = '[data-test-subj="sessionViewProcessTree"]';
export const PROCESS_TREE_NODE_ALERT = '[data-test-subj="processTreeNodeAlertButton"]';
export const SEARCH_BAR = '[data-test-subj="sessionViewProcessEventsSearch"]';
export const SESSION_COMMANDS = '[data-test-subj="processTreeNode"'
export const SESSION_COMMANDS = '[data-test-subj="processTreeNode"';

// Details panel elements
export const DETAILS_PANEL = '[data-test-subj="sessionViewDetailPanel"]';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const mockEvents = [
args: [],
args_count: 0,
working_directory: '/home/vagrant',
start: new Date('2021-11-23T15:25:04.210Z')
start: new Date('2021-11-23T15:25:04.210Z'),
},
session: {
pid: 2442,
Expand All @@ -59,7 +59,7 @@ const mockEvents = [
args: [],
args_count: 0,
working_directory: '/home/vagrant',
start: new Date('2021-11-23T15:25:04.210Z')
start: new Date('2021-11-23T15:25:04.210Z'),
},
entry: {
pid: 2442,
Expand All @@ -75,13 +75,13 @@ const mockEvents = [
args: [],
args_count: 0,
working_directory: '/home/vagrant',
start: new Date('2021-11-23T15:25:04.210Z')
start: new Date('2021-11-23T15:25:04.210Z'),
},
name: '',
args_count: 0,
args: [],
working_directory: '/home/vagrant',
start: new Date('2021-11-23T15:25:04.210Z')
start: new Date('2021-11-23T15:25:04.210Z'),
},
event: {
action: EventAction.fork,
Expand Down Expand Up @@ -187,7 +187,7 @@ const mockEvents = [
args: [],
args_count: 0,
working_directory: '/home/vagrant',
start: new Date('2021-11-23T15:25:05.202Z')
start: new Date('2021-11-23T15:25:05.202Z'),
},
session: {
pid: 2442,
Expand All @@ -203,7 +203,7 @@ const mockEvents = [
args: [],
args_count: 0,
working_directory: '/home/vagrant',
start: new Date('2021-11-23T15:25:05.202Z')
start: new Date('2021-11-23T15:25:05.202Z'),
},
entry: {
pid: 2442,
Expand All @@ -219,7 +219,7 @@ const mockEvents = [
args: [],
args_count: 0,
working_directory: '/home/vagrant',
start: new Date('2021-11-23T15:25:05.202Z')
start: new Date('2021-11-23T15:25:05.202Z'),
},
start: new Date('2021-11-23T15:25:05.202Z'),
name: '',
Expand Down Expand Up @@ -431,9 +431,9 @@ export const mockAlerts: ProcessEvent[] = [
export const mockData: ProcessEventsPage[] = [
{
events: mockEvents,
cursor: '2021-11-23T15:25:04.210Z'
}
]
cursor: '2021-11-23T15:25:04.210Z',
},
];

export const processMock: Process = {
id: '3d0192c6-7c54-5ee6-a110-3539a7cf42bc',
Expand All @@ -448,30 +448,30 @@ export const processMock: Process = {
hasExec: () => false,
getOutput: () => '',
getDetails: () =>
({
'@timestamp': new Date('2021-11-23T15:25:04.210Z'),
event: {
kind: EventKind.event,
category: 'process',
action: EventAction.exec,
},
process: {
args: [],
args_count: 0,
entity_id: '3d0192c6-7c54-5ee6-a110-3539a7cf42bc',
executable: '',
interactive: false,
name: '',
working_directory: '/home/vagrant',
start: new Date('2021-11-23T15:25:04.210Z'),
pid: 1,
pgid: 1,
user: {} as User,
parent: {} as ProcessFields,
session: {} as ProcessFields,
entry: {} as ProcessFields,
},
} as ProcessEvent),
({
'@timestamp': new Date('2021-11-23T15:25:04.210Z'),
event: {
kind: EventKind.event,
category: 'process',
action: EventAction.exec,
},
process: {
args: [],
args_count: 0,
entity_id: '3d0192c6-7c54-5ee6-a110-3539a7cf42bc',
executable: '',
interactive: false,
name: '',
working_directory: '/home/vagrant',
start: new Date('2021-11-23T15:25:04.210Z'),
pid: 1,
pgid: 1,
user: {} as User,
parent: {} as ProcessFields,
session: {} as ProcessFields,
entry: {} as ProcessFields,
},
} as ProcessEvent),
isUserEntered: () => false,
getMaxAlertLevel: () => null,
};
Expand Down
Loading

0 comments on commit 19fe25d

Please sign in to comment.