예제 #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
파일: test_v10.py 프로젝트: Imperat/sahara
 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
파일: test_v10.py 프로젝트: wdanyel/sahara
 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)