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)
def __init__(self, options): self.options = options glance.store.create_stores(options) self.notifier = notifier.Notifier(options)
def setUp(self): conf = utils.TestConfigOpts({"notifier_strategy": "noop"}) self.notifier = notifier.Notifier(conf)
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)
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)
def __init__(self, options): self.options = options glance.store.create_stores(options) self.notifier = notifier.Notifier(options) registry.configure_registry_client(options)
def setUp(self): notifier.RabbitStrategy._send_message = self._send_message self.called = False options = {"notifier_strategy": "rabbit"} self.notifier = notifier.Notifier(options)
def setUp(self): options = {"notifier_strategy": "noop"} self.notifier = notifier.Notifier(options)
def setUp(self): options = {"notifier_strategy": "logging"} self.called = False self.logger = logging.getLogger("glance.notifier.logging_notifier") self.notifier = notifier.Notifier(options)