Skip to content

Commit

Permalink
Attempt to fix flaky test by adding host.mac to all the fake_hosts do…
Browse files Browse the repository at this point in the history
…cuments (#178648)

Fixes #178578

The hypothesis is that during adding context variables, it uses a
document that does not have `host.mac`, and in some of the `fake_host`
documents we have this condition, so I fixed that.
  • Loading branch information
maryam-saeidi authored Mar 18, 2024
1 parent 98c069f commit 833f1de
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export const generateEvent: GeneratorFunction = (config, schedule, index, timest
'@timestamp': timestamp.toISOString(),
host: {
name: `host-${index}`,
mac: ['00-00-5E-00-53-23', '00-00-5E-00-53-24'],
network: {
name: `network-${index}`,
ingress: {
Expand Down Expand Up @@ -134,6 +135,7 @@ export const generateEvent: GeneratorFunction = (config, schedule, index, timest
'@timestamp': timestamp.toISOString(),
host: {
name: `host-${index}`,
mac: ['00-00-5E-00-53-23', '00-00-5E-00-53-24'],
network: {
name: `network-${index}`,
},
Expand Down

0 comments on commit 833f1de

Please sign in to comment.