Skip to content

Commit

Permalink
Force input to file in filebeat module tests (elastic#8140)
Browse files Browse the repository at this point in the history
There can be modules that support multiple inputs, currently we only
support module tests with file input so modules whose default input is a
different one fails. This change assumes that a `var.input` setting is
used to select the input, and sets it to file on tests.
  • Loading branch information
jsoriano authored Aug 30, 2018
1 parent 448eeb2 commit 30ac8e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions filebeat/tests/system/test_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ def run_on_file(self, module, fileset, test_file, cfgfile):
"-M", "{module}.*.enabled=false".format(module=module),
"-M", "{module}.{fileset}.enabled=true".format(
module=module, fileset=fileset),
"-M", "{module}.{fileset}.var.input=file".format(
module=module, fileset=fileset),
"-M", "{module}.{fileset}.var.paths=[{test_file}]".format(
module=module, fileset=fileset, test_file=test_file),
"-M", "*.*.input.close_eof=true",
Expand Down

0 comments on commit 30ac8e8

Please sign in to comment.