Beispiel #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)
Beispiel #2
0
 def __init__(self, options):
     self.options = options
     glance.store.create_stores(options)
     self.notifier = notifier.Notifier(options)
Beispiel #3
0
 def setUp(self):
     conf = utils.TestConfigOpts({"notifier_strategy": "noop"})
     self.notifier = notifier.Notifier(conf)
Beispiel #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)
Beispiel #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)
Beispiel #6
0
 def __init__(self, options):
     self.options = options
     glance.store.create_stores(options)
     self.notifier = notifier.Notifier(options)
     registry.configure_registry_client(options)
Beispiel #7
0
 def setUp(self):
     notifier.RabbitStrategy._send_message = self._send_message
     self.called = False
     options = {"notifier_strategy": "rabbit"}
     self.notifier = notifier.Notifier(options)
Beispiel #8
0
 def setUp(self):
     options = {"notifier_strategy": "noop"}
     self.notifier = notifier.Notifier(options)
Beispiel #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)