Add testcase for logs with server/clientgroup-actions
This commit is contained in:
parent
9c3c772db9
commit
80df2c02f0
|
@ -0,0 +1,3 @@
|
||||||
|
2016-03-06 18:34:52.674929|INFO |VirtualServer |1 |client 'Client1'(id:1) was added to channelgroup 'Channelgroup1'(id:1) by client 'Client2'(id:2) in channel 'Channel1'(id:1)
|
||||||
|
2016-02-20 11:11:28.451329|INFO |VirtualServer |1 |client (id:1) was added to servergroup 'Servergroup1'(id:1) by client 'Client2'(id:2)
|
||||||
|
2016-02-19 14:35:00.253289|INFO |VirtualServer |1 |client (id:1) was removed from servergroup 'Servergroup1'(id:1) by client 'Client2'(id:2)
|
|
@ -82,3 +82,8 @@ def test_log_client_online():
|
||||||
def test_parse_logs():
|
def test_parse_logs():
|
||||||
assert len(_parse_details(testlog_path)) ==\
|
assert len(_parse_details(testlog_path)) ==\
|
||||||
len(parse_logs(testlog_path)[''])
|
len(parse_logs(testlog_path)[''])
|
||||||
|
|
||||||
|
|
||||||
|
def test_parse_groups():
|
||||||
|
clients = _parse_details('tsstats/tests/res/test.log.groups')
|
||||||
|
assert len(clients) == 0
|
||||||
|
|
Loading…
Reference in New Issue