Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Pérez-Aradros Herce committed Nov 28, 2018
1 parent 0f802c3 commit 0ac34dc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions x-pack/libbeat/tests/system/test_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def test_fetch_configs(self):
proc = self.start_beat(extra_args=[
"-E", "management.period=1s",
# do not blacklist file output
"-E", "management.blacklist.output='.*'",
"-E", "management.blacklist.output='elasticsearch'",
])

# Wait for beat to apply new conf
Expand Down Expand Up @@ -155,7 +155,10 @@ def test_configs_cache(self):
output_file = os.path.join("output", "mockbeat_managed")

# Start beat
proc = self.start_beat()
proc = self.start_beat(extra_args=[
# do not blacklist file output
"-E", "management.blacklist.output='elasticsearch'",
])
self.wait_until(cond=lambda: self.output_has(
1, output_file=output_file))
proc.check_kill_and_wait()
Expand All @@ -168,7 +171,7 @@ def test_configs_cache(self):
"-E", "management.kibana.host=wronghost",
"-E", "management.kibana.timeout=0.5s",
# do not blacklist file output
"-E", "management.blacklist.output='.*'",
"-E", "management.blacklist.output='elasticsearch'",
])
self.wait_until(cond=lambda: self.output_has(
1, output_file=output_file))
Expand Down

0 comments on commit 0ac34dc

Please sign in to comment.