From fb422726a8366c7133f0712d3b05a26620eea785 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Tue, 5 Jan 2021 21:55:06 -0800 Subject: [PATCH] update test to add 'down' condition --- tests/fixtures/ubuntu-20.04/last-F.json | 2 +- tests/fixtures/ubuntu-20.04/last-F.out | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/fixtures/ubuntu-20.04/last-F.json b/tests/fixtures/ubuntu-20.04/last-F.json index c866e968..6d9c294b 100644 --- a/tests/fixtures/ubuntu-20.04/last-F.json +++ b/tests/fixtures/ubuntu-20.04/last-F.json @@ -1 +1 @@ -[{"user": "kbrazil", "tty": "pts/0", "hostname": "192.168.71.1", "login": "Tue Jan 5 20:03:51 2021", "logout": "still logged in"}, {"user": "kbrazil", "tty": "pts/0", "hostname": "192.168.71.1", "login": "Tue Jan 5 00:17:29 2021", "logout": "Tue Jan 5 20:03:47 2021", "duration": "19:46"}, {"user": "kbrazil", "tty": "tty1", "hostname": null, "login": "Tue Jan 5 00:08:46 2021", "logout": "gone - no logout"}, {"user": "reboot", "tty": "system boot", "hostname": "5.8.0-34-generic", "login": "Tue Jan 5 00:08:28 2021", "logout": "running"}] +[{"user": "kbrazil", "tty": "pts/0", "hostname": "192.168.71.1", "login": "Tue Jan 5 20:03:51 2021", "logout": "still logged in"}, {"user": "kbrazil", "tty": "pts/0", "hostname": "192.168.71.1", "login": "Tue Jan 5 00:17:29 2021", "logout": "Tue Jan 5 20:03:47 2021", "duration": "19:46"}, {"user": "kbrazil", "tty": "tty1", "hostname": null, "login": "Tue Jan 5 00:08:46 2021", "logout": "gone - no logout"}, {"user": "root", "tty": "pts/0", "hostname": "developer-pc.exa", "login": "Mon Mar 23 16:44:55 2020", "logout": "down", "duration": "00:00"}, {"user": "reboot", "tty": "system boot", "hostname": "5.8.0-34-generic", "login": "Tue Jan 5 00:08:28 2021", "logout": "running"}] diff --git a/tests/fixtures/ubuntu-20.04/last-F.out b/tests/fixtures/ubuntu-20.04/last-F.out index 44ae6020..4ae10353 100644 --- a/tests/fixtures/ubuntu-20.04/last-F.out +++ b/tests/fixtures/ubuntu-20.04/last-F.out @@ -1,6 +1,7 @@ kbrazil pts/0 192.168.71.1 Tue Jan 5 20:03:51 2021 still logged in kbrazil pts/0 192.168.71.1 Tue Jan 5 00:17:29 2021 - Tue Jan 5 20:03:47 2021 (19:46) kbrazil tty1 Tue Jan 5 00:08:46 2021 gone - no logout +root pts/0 developer-pc.exa Mon Mar 23 16:44:55 2020 - down (00:00) reboot system boot 5.8.0-34-generic Tue Jan 5 00:08:28 2021 still running wtmp begins Tue Jan 5 00:08:28 2021