Skip to content

Add ability to read config file in test_modules.py for filebeat #10182

@kaiyan-sheng

Description

@kaiyan-sheng

Not sure if this is caused by my lack of knowledge on filebeat, I can't find a way to give a config file for a specific module when running GENERATE=1 INTEGRATION_TESTS=1 TESTING_FILEBEAT_MODULES=nginx nosetests -v --nocapture tests/system/test_modules.py.
Right now Im adding hardcoded part into test_modules.py https://github.com/elastic/beats/blob/master/filebeat/tests/system/test_modules.py#L110 to specify variables such as convert.timezone=true to run tests.

Maybe similar to -expected.json, we can have -config.yml and if -config.yml exists, use it as config file when running the tests.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions