예제 #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)
예제 #2
0
 def __init__(self, options):
     self.options = options
     glance.store.create_stores(options)
     self.notifier = notifier.Notifier(options)
예제 #3
0
 def setUp(self):
     conf = utils.TestConfigOpts({"notifier_strategy": "noop"})
     self.notifier = notifier.Notifier(conf)
예제 #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)
예제 #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)
예제 #6
0
파일: images.py 프로젝트: nicoleLiu/glance
 def __init__(self, options):
     self.options = options
     glance.store.create_stores(options)
     self.notifier = notifier.Notifier(options)
     registry.configure_registry_client(options)
예제 #7
0
 def setUp(self):
     notifier.RabbitStrategy._send_message = self._send_message
     self.called = False
     options = {"notifier_strategy": "rabbit"}
     self.notifier = notifier.Notifier(options)
예제 #8
0
 def setUp(self):
     options = {"notifier_strategy": "noop"}
     self.notifier = notifier.Notifier(options)
예제 #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)