mirror of
https://github.com/zrepl/zrepl.git
synced 2025-06-25 04:01:49 +02:00
Reflect logging changes in tests.
This commit is contained in:
parent
538036c4b5
commit
1545d2d281
@ -30,7 +30,7 @@ func TestParseHumanFormatter(t *testing.T) {
|
|||||||
tcs := []testCase{
|
tcs := []testCase{
|
||||||
{
|
{
|
||||||
Name: "human-formatter-noerror",
|
Name: "human-formatter-noerror",
|
||||||
Input: `2020-04-04T00:00:05+02:00 [DEBG][jobname][zfs.cmd][task$stack$span.stack]: command exited without error usertime_s="0.008445" cmd="zfs list -H -p -o name -r -t filesystem,volume" systemtime_s="0.033783" invocation="84" total_time_s="0.037828619"`,
|
Input: `2020-04-04T00:00:05+02:00 [DEBG][jobname][zfs.cmd][task$stack$span.stack]: command ran successfully usertime_s="0.008445" cmd="zfs list -H -p -o name -r -t filesystem,volume" systemtime_s="0.033783" invocation="84" total_time_s="0.037828619"`,
|
||||||
Expect: &RuntimeLine{
|
Expect: &RuntimeLine{
|
||||||
Cmd: "zfs list -H -p -o name -r -t filesystem,volume",
|
Cmd: "zfs list -H -p -o name -r -t filesystem,volume",
|
||||||
TotalTime: secs("0.037828619"),
|
TotalTime: secs("0.037828619"),
|
||||||
@ -54,7 +54,7 @@ func TestParseHumanFormatter(t *testing.T) {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "from graylog",
|
Name: "from graylog",
|
||||||
Input: `2020-04-04T00:00:05+02:00 [DEBG][csnas][zfs.cmd][task$stack$span.stack]: command exited without error usertime_s="0" cmd="zfs send -i zroot/ezjail/synapse-12@zrepl_20200329_095518_000 zroot/ezjail/synapse-12@zrepl_20200329_102454_000" total_time_s="0.101598591" invocation="85" systemtime_s="0.041581"`,
|
Input: `2020-04-04T00:00:05+02:00 [DEBG][csnas][zfs.cmd][task$stack$span.stack]: command ran successfully usertime_s="0" cmd="zfs send -i zroot/ezjail/synapse-12@zrepl_20200329_095518_000 zroot/ezjail/synapse-12@zrepl_20200329_102454_000" total_time_s="0.101598591" invocation="85" systemtime_s="0.041581"`,
|
||||||
Expect: &RuntimeLine{
|
Expect: &RuntimeLine{
|
||||||
Cmd: "zfs send -i zroot/ezjail/synapse-12@zrepl_20200329_095518_000 zroot/ezjail/synapse-12@zrepl_20200329_102454_000",
|
Cmd: "zfs send -i zroot/ezjail/synapse-12@zrepl_20200329_095518_000 zroot/ezjail/synapse-12@zrepl_20200329_102454_000",
|
||||||
TotalTime: secs("0.101598591"),
|
TotalTime: secs("0.101598591"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user