示例#1
0
 def setUp(self):
     super(TestUDPCollectorService, self).setUp()
     self.srv = service.UDPCollectorService()
     self.counter = sample.Sample(
         name='foobar',
         type='bad',
         unit='F',
         volume=1,
         user_id='jd',
         project_id='ceilometer',
         resource_id='cat',
         timestamp='NOW!',
         resource_metadata={},
     ).as_dict()
示例#2
0
 def test_service_has_storage_conn(self):
     srv = service.UDPCollectorService()
     self.assertIsNotNone(srv.storage_conn)