mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
monitor: add log include location option on monitor CLI and API (#18795)
This commit is contained in:
@@ -42,4 +42,13 @@ func TestMonitorCommand_Fails(t *testing.T) {
|
||||
|
||||
out = ui.ErrorWriter.String()
|
||||
must.StrContains(t, out, "No node(s) with prefix")
|
||||
|
||||
ui.ErrorWriter.Reset()
|
||||
|
||||
// Fails on passing a log-include-location flag which cannot be parsed.
|
||||
code = cmd.Run([]string{"-address=" + url, "-log-include-location=maybe"})
|
||||
must.One(t, code)
|
||||
|
||||
out = ui.ErrorWriter.String()
|
||||
must.StrContains(t, out, `invalid boolean value "maybe" for -log-include-location`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user