示例#1
0
 def setUp(self):
     super(TestClusterApi, self).setUp()
     self.calls_order = []
     pl_base.PLUGINS = api_base.FakePluginManager(self.calls_order)
     service_api.setup_api(FakeOps(self.calls_order))
     oslo_messaging.notify.notifier.Notifier.info = mock.Mock()
     self.ctx = context.ctx()
示例#2
0
 def setUp(self):
     super(TestApi, self).setUp()
     self.calls_order = []
     pl_base.PLUGINS = FakePluginManager(self.calls_order)
     service_api.setup_api(FakeOps(self.calls_order))
     oslo_messaging.notify.notifier.Notifier.info = mock.Mock()
     self.ctx = context.ctx()
示例#3
0
 def setUp(self):
     super(TestApi, self).setUp()
     self.calls_order = []
     self.override_config('plugins', ['fake'])
     pl_base.PLUGINS = FakePluginManager(self.calls_order)
     service_api.setup_api(FakeOps(self.calls_order))
     oslo_messaging.notify.notifier.Notifier.info = mock.Mock()
     self.ctx = context.ctx()
示例#4
0
 def setUp(self):
     super(TestClusterApi, self).setUp()
     self.calls_order = []
     self.override_config('plugins', ['fake'])
     pl_base.PLUGINS = api_base.FakePluginManager(self.calls_order)
     service_api.setup_api(FakeOps(self.calls_order))
     oslo_messaging.notify.notifier.Notifier.info = mock.Mock()
     self.ctx = context.ctx()
示例#5
0
文件: main.py 项目: Mimansa04/sahara
def setup_sahara_api(mode):
    ops = _get_ops_driver(mode)

    api.setup_api(ops)
示例#6
0
文件: main.py 项目: openstack/sahara
def setup_sahara_api(mode):
    ops = _get_ops_driver(mode)

    api.setup_api(ops)