def stop(self): xsc_parser = xppf_server_controls.XppfServerControls._get_parser() args = xsc_parser.parse_args(['stop', '--require_default_settings']) xs = xppf_server_controls.XppfServerControls(args=args) xs.main() # stop server # Confirm server stopped Helper.wait_for_true(self._webserver_stopped, timeout_seconds=5)
def setUp(self): # Start server xsc_parser = xppf_server_controls.XppfServerControls._get_parser() args = xsc_parser.parse_args(['start', '--require_default_settings']) self.xs = xppf_server_controls.XppfServerControls(args=args) self.xs.main() self.server_url = self.xs.settings_manager.get_server_url_for_client() # Confirm server started Helper.wait_for_true(self._webserver_started, timeout_seconds=5)
def start(self, no_daemon=True): xsc_parser = xppf_server_controls.XppfServerControls._get_parser() arglist = ['start', '--require_default_settings', '--test_database'] if no_daemon == True: arglist.append('--no_daemon') args = xsc_parser.parse_args(arglist) self.xs = xppf_server_controls.XppfServerControls(args=args) self.xs.main() # start server self.server_url = self.xs.settings_manager.get_server_url_for_client() # Confirm server started Helper.wait_for_true(self._webserver_started, timeout_seconds=5)
def wait_for_job(self): Helper.wait_for_true(self.is_workflow_complete, timeout_seconds=20)