Exemplo n.º 1
0
 def setUp(self):
     super(TestNotification, self).setUp()
     self.CONF = self.useFixture(fixture_config.Config()).conf
     self.CONF.set_override('meter_definitions_cfg_file',
                            self.path_get('etc/ceilometer/meters.yaml'),
                            group='meter')
     self.handler = notifications.ProcessMeterNotifications(mock.Mock())
Exemplo n.º 2
0
 def setUp(self):
     super(TestMeterProcessing, self).setUp()
     self.CONF = self.useFixture(fixture_config.Config()).conf
     ceilometer_service.prepare_service([])
     self.handler = notifications.ProcessMeterNotifications(mock.Mock())
Exemplo n.º 3
0
 def setUp(self):
     super(TestMeterProcessing, self).setUp()
     self.CONF = ceilometer_service.prepare_service([], [])
     self.path = self.useFixture(fixtures.TempDir()).path
     self.handler = notifications.ProcessMeterNotifications(
         mock.Mock(conf=self.CONF))
Exemplo n.º 4
0
 def setUp(self):
     super(TestMeterProcessing, self).setUp()
     conf = ceilometer_service.prepare_service(argv=[], config_files=[])
     self.CONF = self.useFixture(fixture_config.Config(conf)).conf
     self.handler = notifications.ProcessMeterNotifications(
         mock.Mock(conf=self.CONF))