示例#1
0
文件: run.py 项目: gaiaaa/appoggio
def main():
    try:
        config.parse_args()
        logging.setup(CONF, 'muranoagent')
        launcher = service.ServiceLauncher(CONF)
        launcher.launch_service(app.MuranoAgent())
        launcher.wait()
    except RuntimeError as e:
        sys.stderr.write("ERROR: %s\n" % e)
        sys.exit(1)
示例#2
0
 def setUp(self, mock_path):
     super(TestApp, self).setUp()
     mock_path.return_value = True
     self.agent = app.MuranoAgent()
     CONF.set_override('storage', 'cache')
示例#3
0
 def setUp(self, mock_path, mock_chmod):
     super(TestApp, self).setUp()
     mock_path.side_effect = self._exists
     self.agent = app.MuranoAgent()
     CONF.set_override('storage', 'cache')
     self.addCleanup(CONF.clear_override, 'storage')