mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
add who test fixtures
This commit is contained in:
1
tests/fixtures/centos-7.7/who-a.json
vendored
Normal file
1
tests/fixtures/centos-7.7/who-a.json
vendored
Normal file
@ -0,0 +1 @@
|
||||
[{"event": "reboot", "time": "2020-02-29 12:13"}, {"event": "login", "tty": "tty1", "time": "2020-02-29 12:13", "pid": 841, "comment": "id=tty1"}, {"user": "kbrazil", "writeable_tty": "+", "tty": "ttyS0", "time": "2020-02-29 12:14", "idle": ".", "pid": 840}, {"event": "run-level 3", "time": "2020-02-29 12:13"}, {"user": "kbrazil", "writeable_tty": "+", "tty": "pts/0", "time": "2020-02-29 18:43", "idle": "00:11", "pid": 3709, "from": "192.168.71.1"}, {"tty": "pts/1", "time": "2020-02-29 18:28", "pid": 3381, "comment": "id=ts/1 term=0 exit=0"}]
|
6
tests/fixtures/centos-7.7/who-a.out
vendored
Normal file
6
tests/fixtures/centos-7.7/who-a.out
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
system boot 2020-02-29 12:13
|
||||
LOGIN tty1 2020-02-29 12:13 841 id=tty1
|
||||
kbrazil + ttyS0 2020-02-29 12:14 . 840
|
||||
run-level 3 2020-02-29 12:13
|
||||
kbrazil + pts/0 2020-02-29 18:43 00:11 3709 (192.168.71.1)
|
||||
pts/1 2020-02-29 18:28 3381 id=ts/1 term=0 exit=0
|
1
tests/fixtures/centos-7.7/who.json
vendored
Normal file
1
tests/fixtures/centos-7.7/who.json
vendored
Normal file
@ -0,0 +1 @@
|
||||
[{"user": "kbrazil", "tty": "ttyS0", "time": "2020-02-29 12:14"}, {"user": "kbrazil", "tty": "pts/0", "time": "2020-02-29 18:43", "from": "192.168.71.1"}]
|
2
tests/fixtures/centos-7.7/who.out
vendored
Normal file
2
tests/fixtures/centos-7.7/who.out
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
kbrazil ttyS0 2020-02-29 12:14
|
||||
kbrazil pts/0 2020-02-29 18:43 (192.168.71.1)
|
1
tests/fixtures/osx-10.14.6/who-a.json
vendored
Normal file
1
tests/fixtures/osx-10.14.6/who-a.json
vendored
Normal file
@ -0,0 +1 @@
|
||||
[{"event": "reboot", "time": "Feb 7 23:31", "pid": 1}, {"user": "kbrazil", "tty": "console", "time": "Feb 7 23:32", "idle": "old", "pid": 105}, {"user": "kbrazil", "tty": "ttys000", "time": "Feb 13 16:44", "idle": "00:02", "pid": 51217, "comment": "term=0 exit=0"}, {"user": "kbrazil", "tty": "ttys001", "time": "Feb 11 21:25", "idle": "00:02", "pid": 81390}, {"user": "kbrazil", "tty": "ttys002", "time": "Mar 1 15:18", "idle": ".", "pid": 9574}, {"user": "kbrazil", "tty": "ttys003", "time": "Feb 28 08:59", "idle": "01:06", "pid": 41402}, {"user": "kbrazil", "tty": "ttys004", "time": "Mar 1 17:11", "idle": ".", "pid": 15679, "comment": "term=0 exit=0"}]
|
9
tests/fixtures/osx-10.14.6/who-a.out
vendored
Normal file
9
tests/fixtures/osx-10.14.6/who-a.out
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
USER LINE WHEN IDLE PID COMMENT
|
||||
reboot ~ Feb 7 23:31 . 1
|
||||
kbrazil console Feb 7 23:32 old 105
|
||||
kbrazil ttys000 Feb 13 16:44 00:02 51217 term=0 exit=0
|
||||
kbrazil ttys001 Feb 11 21:25 00:02 81390
|
||||
kbrazil ttys002 Mar 1 15:18 . 9574
|
||||
kbrazil ttys003 Feb 28 08:59 01:06 41402
|
||||
kbrazil ttys004 Mar 1 17:11 . 15679 term=0 exit=0
|
||||
. run-level 3
|
1
tests/fixtures/osx-10.14.6/who.json
vendored
Normal file
1
tests/fixtures/osx-10.14.6/who.json
vendored
Normal file
@ -0,0 +1 @@
|
||||
[{"user": "kbrazil", "tty": "console", "time": "Feb 7 23:32"}, {"user": "kbrazil", "tty": "ttys001", "time": "Feb 11 21:25"}, {"user": "kbrazil", "tty": "ttys002", "time": "Mar 1 15:18"}, {"user": "kbrazil", "tty": "ttys003", "time": "Feb 28 08:59"}]
|
4
tests/fixtures/osx-10.14.6/who.out
vendored
Normal file
4
tests/fixtures/osx-10.14.6/who.out
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
kbrazil console Feb 7 23:32
|
||||
kbrazil ttys001 Feb 11 21:25
|
||||
kbrazil ttys002 Mar 1 15:18
|
||||
kbrazil ttys003 Feb 28 08:59
|
1
tests/fixtures/ubuntu-18.04/who-a.json
vendored
Normal file
1
tests/fixtures/ubuntu-18.04/who-a.json
vendored
Normal file
@ -0,0 +1 @@
|
||||
[{"event": "reboot", "time": "2020-03-02 02:52"}, {"user": "kbrazil", "writeable_tty": "-", "tty": "ttyS0", "time": "2020-03-02 02:52", "idle": ".", "pid": 1983}, {"event": "run-level 5", "time": "2020-03-02 02:52"}, {"event": "login", "tty": "tty1", "time": "2020-03-02 02:52", "pid": 1199, "comment": "id=tty1"}, {"user": "kbrazil", "writeable_tty": "+", "tty": "pts/0", "time": "2020-03-02 02:54", "idle": ".", "pid": 2176, "from": "192.168.71.1"}]
|
6
tests/fixtures/ubuntu-18.04/who-a.out
vendored
Normal file
6
tests/fixtures/ubuntu-18.04/who-a.out
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
NAME LINE TIME IDLE PID COMMENT EXIT
|
||||
system boot 2020-03-02 02:52
|
||||
kbrazil - ttyS0 2020-03-02 02:52 . 1983
|
||||
run-level 5 2020-03-02 02:52
|
||||
LOGIN tty1 2020-03-02 02:52 1199 id=tty1
|
||||
kbrazil + pts/0 2020-03-02 02:54 . 2176 (192.168.71.1)
|
1
tests/fixtures/ubuntu-18.04/who.json
vendored
Normal file
1
tests/fixtures/ubuntu-18.04/who.json
vendored
Normal file
@ -0,0 +1 @@
|
||||
[{"user": "kbrazil", "tty": "ttyS0", "time": "2020-03-02 02:52"}, {"user": "kbrazil", "tty": "pts/0", "time": "2020-03-02 02:54", "from": "192.168.71.1"}]
|
3
tests/fixtures/ubuntu-18.04/who.out
vendored
Normal file
3
tests/fixtures/ubuntu-18.04/who.out
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
NAME LINE TIME COMMENT
|
||||
kbrazil ttyS0 2020-03-02 02:52
|
||||
kbrazil pts/0 2020-03-02 02:54 (192.168.71.1)
|
Reference in New Issue
Block a user