Beispiel #1
0
 def test_crowbar_join(self):
     res = LogFile.get_dateformat('2016-07-18 08:11:56 -0700')
     self.assertEquals(res, 'crowbar-join')
Beispiel #2
0
 def test_empty(self):
     res = LogFile.get_dateformat('')
     self.assertEquals(res, 'empty')
Beispiel #3
0
 def test_pacemaker(self):
     res = LogFile.get_dateformat('Jun 26 06:00:22 [13084]')
     self.assertEquals(res, 'pacemaker')
Beispiel #4
0
 def test_crowbar_production(self):
     res = LogFile.get_dateformat(
         'I, [2016-07-12T13:45:20.128115 #2515:0x007fccab486f28]')
     self.assertEquals(res, 'crowbar-production')
Beispiel #5
0
 def test_novacompute(self):
     res = LogFile.get_dateformat('2016-06-02 20:45:28.166 0000')
     self.assertEquals(res, 'nova')
Beispiel #6
0
 def test_messages(self):
     res = LogFile.get_dateformat(
         '2016-06-27T06:00:11.386456+00:00 hostname')
     self.assertEquals(res, 'messages')
Beispiel #7
0
 def test_chefclient(self):
     res = LogFile.get_dateformat('[2016-06-02T19:58:58+00:00] INFO')
     self.assertEquals(res, 'chefclient')
Beispiel #8
0
 def test_neutron(self):
     res = LogFile.get_dateformat('2016-06-02 20:42:23.325 0000')
     self.assertEquals(res, 'nova')
Beispiel #9
0
 def test_ovs(self):
     res = LogFile.get_dateformat('2016-06-02T20:39:51.876Z|')
     self.assertEquals(res, 'ovs')