Skip to content

Commit

Permalink
adjustments from PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-tavares committed May 26, 2021
1 parent fd57e28 commit 0ffdafe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,8 @@ export class EndpointDocGenerator extends BaseDataGenerator {

private createHostData(): HostInfo {
const hostName = this.randomHostname();
const isIsolated = this.randomBoolean();

return {
agent: {
version: this.randomVersion(),
Expand All @@ -465,10 +467,10 @@ export class EndpointDocGenerator extends BaseDataGenerator {
applied: this.randomChoice(APPLIED_POLICIES),
},
configuration: {
isolation: this.randomBoolean(),
isolation: isIsolated,
},
state: {
isolation: this.randomBoolean(),
isolation: isIsolated,
},
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -430,10 +430,7 @@ const indexFleetActionsForHost = async (
const unIsolateAction = fleetActionGenerator.generateResponse({
action_id: isolateAction.action_id,
agent_id: agentId,
action_data: {
command: isolateAction.data.command,
comment: 'data generator: bad host isolated',
},
action_data: isolateAction.data,
});

await esClient.index(
Expand Down

0 comments on commit 0ffdafe

Please sign in to comment.