-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add '-E' CLI flag #1986
Add '-E' CLI flag #1986
Conversation
f00735b
to
fb47d8b
Compare
blocked by #1985 |
config values overwritten from command line are remembered by config system. e.g. error message from new system test:
|
Niiiiiice! I'm not sure about the best flag to use for this. Elasticsearch replaced @elastic/beats any other ideas? |
One of:
Don't like |
fb47d8b
to
b7ef617
Compare
Then I'm +1 for |
f5d1cb8
to
9d35188
Compare
9d35188
to
b6ee0e4
Compare
@urso there's a test failure. |
b6ee0e4
to
7f49b63
Compare
console={"pretty": "false"} | ||
) | ||
|
||
exit_code = self.run_beat( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test would be a little bit nicer if you would run it first with the correct one to see if it works and then with the failing one ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what exactly would you look for? Just relying on exit_code doesn't tell me if configuration was overwritten correctly.
Would love to introduce another test showing -E
did apply config correctly. Maybe introduce some special config setting for printing a custom message (like mockbeat.echo
) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but it would confirm that the config you set worked without the -E flag.
LGTM. Left a minor comment. |
9df8bb1
to
65c69a2
Compare
LGTM. Waiting for green. |
Add '-E' CLI flag for overwriting single config options via CLI. For example: `-E output.console.pretty: true` enabled console output with pretty printing enabled.
65c69a2
to
448f913
Compare
Add '-D' CLI flag for overwriting single config options via CLI. For example:
-D output.console.pretty=true
enables console output with pretty printingenabled.