Definition at line 32 of file service.py.
Public Member Functions | |
| None | __init__ (self, *, str service_name, str script_path, str working_dir, str check_host='localhost', list[int] check_ports, dict[str, str]|None environment=None, typing.Callable|None prestart_hook=None, float start_timeout=2.0) |
| None | ensure_started (self, *, int verbose) |
| None | stop (self, *, int verbose) |
| bool | is_running (self) |
Protected Member Functions | |
| None | _command (self, str command, int verbose) |
| bool | _wait_for_ports (self) |
Protected Attributes | |
| _service_name = service_name | |
| _script_path = script_path | |
| _environment = environment | |
| _check_host = check_host | |
| _check_ports = check_ports | |
| _prestart_hook = prestart_hook | |
| _start_timeout = start_timeout | |
| _started_mark = StartedMark(working_dir) | |
| None testsuite.environment.service.ScriptService.__init__ | ( | self, | |
| * | , | ||
| str | service_name, | ||
| str | script_path, | ||
| str | working_dir, | ||
| str | check_host = 'localhost', | ||
| list[int] | check_ports, | ||
| dict[str, str] | None | environment = None, | ||
| typing.Callable | None | prestart_hook = None, | ||
| float | start_timeout = 2.0 ) |
Definition at line 33 of file service.py.
|
protected |
Definition at line 86 of file service.py.
|
protected |
Definition at line 99 of file service.py.
| None testsuite.environment.service.ScriptService.ensure_started | ( | self, | |
| * | , | ||
| int | verbose ) |
Definition at line 54 of file service.py.
| bool testsuite.environment.service.ScriptService.is_running | ( | self | ) |
Definition at line 78 of file service.py.
| None testsuite.environment.service.ScriptService.stop | ( | self, | |
| * | , | ||
| int | verbose ) |
Definition at line 70 of file service.py.
|
protected |
Definition at line 48 of file service.py.
|
protected |
Definition at line 49 of file service.py.
|
protected |
Definition at line 47 of file service.py.
|
protected |
Definition at line 50 of file service.py.
|
protected |
Definition at line 46 of file service.py.
|
protected |
Definition at line 45 of file service.py.
|
protected |
Definition at line 51 of file service.py.
|
protected |
Definition at line 52 of file service.py.