mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-23 00:29:59 +02:00
update test to add 'down' condition
This commit is contained in:
2
tests/fixtures/ubuntu-20.04/last-F.json
vendored
2
tests/fixtures/ubuntu-20.04/last-F.json
vendored
@ -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"}]
|
||||
|
1
tests/fixtures/ubuntu-20.04/last-F.out
vendored
1
tests/fixtures/ubuntu-20.04/last-F.out
vendored
@ -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
|
||||
|
Reference in New Issue
Block a user