Exemplo n.º 1
0
 def __init__(self, conf):
     self.conf = conf
     self.conf.register_opt(self.default_store_opt)
     glance.store.create_stores(conf)
     self.notifier = notifier.Notifier(conf)
     registry.configure_registry_client(conf)
Exemplo n.º 2
0
 def __init__(self, options):
     self.options = options
     glance.store.create_stores(options)
     self.notifier = notifier.Notifier(options)
Exemplo n.º 3
0
 def setUp(self):
     conf = utils.TestConfigOpts({"notifier_strategy": "noop"})
     self.notifier = notifier.Notifier(conf)
Exemplo n.º 4
0
 def setUp(self):
     notifier.RabbitStrategy._send_message = self._send_message
     notifier.RabbitStrategy.connect = lambda s: None
     self.called = False
     conf = utils.TestConfigOpts({"notifier_strategy": "rabbit"})
     self.notifier = notifier.Notifier(conf)
Exemplo n.º 5
0
 def setUp(self):
     conf = utils.TestConfigOpts({"notifier_strategy": "logging"})
     self.called = False
     self.logger = logging.getLogger("glance.notifier.logging_notifier")
     self.notifier = notifier.Notifier(conf)
Exemplo n.º 6
0
 def __init__(self, options):
     self.options = options
     glance.store.create_stores(options)
     self.notifier = notifier.Notifier(options)
     registry.configure_registry_client(options)
Exemplo n.º 7
0
 def setUp(self):
     notifier.RabbitStrategy._send_message = self._send_message
     self.called = False
     options = {"notifier_strategy": "rabbit"}
     self.notifier = notifier.Notifier(options)
Exemplo n.º 8
0
 def setUp(self):
     options = {"notifier_strategy": "noop"}
     self.notifier = notifier.Notifier(options)
Exemplo n.º 9
0
 def setUp(self):
     options = {"notifier_strategy": "logging"}
     self.called = False
     self.logger = logging.getLogger("glance.notifier.logging_notifier")
     self.notifier = notifier.Notifier(options)