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)
def setUp(self, mock_path): super(TestApp, self).setUp() mock_path.return_value = True self.agent = app.MuranoAgent() CONF.set_override('storage', 'cache')
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')