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
Exemple #2
0
 def __init__(self, conf):
     super(AodhNotifier, self).__init__(conf)
     self.client = os_clients.ceilometer_client(conf)
Exemple #3
0
 def setUpClass(cls):
     super(BaseTemplateTest, cls).setUpClass()
     cls.ceilometer_client = os_clients.ceilometer_client(cls.conf)
Exemple #4
0
 def client(self):
     if not self._client:
         self._client = os_clients.ceilometer_client(self.conf)
     return self._client
Exemple #5
0
 def client(self):
     if not self._client:
         self._client = os_clients.ceilometer_client(self.conf)
     return self._client
Exemple #6
0
 def __init__(self, conf):
     super(AodhNotifier, self).__init__(conf)
     self.client = os_clients.ceilometer_client(conf)
Exemple #7
0
 def setUpClass(cls):
     super(BaseAlarmsTest, cls).setUpClass()
     cls.ceilometer_client = os_clients.ceilometer_client(cls.conf)