ait.core.test.test_log module¶
-
class
ait.core.test.test_log.
SysLogParserTest
¶ Unit test ait.core.log.SysLogParser
-
run_test
()¶ Test parsing of syslog
-
expected
= {}¶
-
message
= ''¶
-
-
class
ait.core.test.test_log.
SysLogParserTestMsgWithHyphen
(methodName='runTest')¶ Bases:
ait.core.test.test_log.SysLogParserTest
,unittest.case.TestCase
Unit test of the log.SysLogParser.parse method
-
expected
= {'appname': 'ait', 'hostname': 'LMC-037512', 'msg': 'Waiting for AIT - GUI telemetry', 'msgid': 'INFO', 'pri': '14', 'procid': '12074', 'timestamp': '2015-03-06T21:29:43.756496Z', 'version': '1'}¶
-
message
= '<14>1 2015-03-06T21:29:43.756496Z LMC-037512 ait 12074 INFO - Waiting for AIT - GUI telemetry'¶
-
-
class
ait.core.test.test_log.
SysLogParserTestSuccess
(methodName='runTest')¶ Bases:
ait.core.test.test_log.SysLogParserTest
,unittest.case.TestCase
Unit test of the log.SysLogParser.parse method
-
expected
= {'appname': 'ait', 'hostname': 'LMC-037512', 'msg': 'Waiting for AIT telemetry on port 2514', 'msgid': 'INFO', 'pri': '14', 'procid': '12074', 'timestamp': '2015-03-06T21:29:43.756496Z', 'version': '1'}¶
-
message
= '<14>1 2015-03-06T21:29:43.756496Z LMC-037512 ait 12074 INFO - Waiting for AIT telemetry on port 2514'¶
-