def ceilometer(cls): """ceilometer client :rtype: ceilometerclient.v2.client.Client """ if not cls._ceilometer: cls._ceilometer = os_clients.ceilometer_client(cls._conf) return cls._ceilometer
def __init__(self, conf): super(AodhNotifier, self).__init__(conf) self.client = os_clients.ceilometer_client(conf)
def setUpClass(cls): super(BaseTemplateTest, cls).setUpClass() cls.ceilometer_client = os_clients.ceilometer_client(cls.conf)
def client(self): if not self._client: self._client = os_clients.ceilometer_client(self.conf) return self._client
def setUpClass(cls): super(BaseAlarmsTest, cls).setUpClass() cls.ceilometer_client = os_clients.ceilometer_client(cls.conf)