userver: testsuite.environment.service.ScriptService Class Reference
Loading...
Searching...
No Matches
testsuite.environment.service.ScriptService Class Reference

Detailed Description

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)

Constructor & Destructor Documentation

◆ __init__()

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.

Member Function Documentation

◆ _command()

None testsuite.environment.service.ScriptService._command ( self,
str command,
int verbose )
protected

Definition at line 86 of file service.py.

◆ _wait_for_ports()

bool testsuite.environment.service.ScriptService._wait_for_ports ( self)
protected

Definition at line 99 of file service.py.

◆ ensure_started()

None testsuite.environment.service.ScriptService.ensure_started ( self,
* ,
int verbose )

Definition at line 54 of file service.py.

◆ is_running()

bool testsuite.environment.service.ScriptService.is_running ( self)

Definition at line 78 of file service.py.

◆ stop()

None testsuite.environment.service.ScriptService.stop ( self,
* ,
int verbose )

Definition at line 70 of file service.py.

Member Data Documentation

◆ _check_host

testsuite.environment.service.ScriptService._check_host = check_host
protected

Definition at line 48 of file service.py.

◆ _check_ports

testsuite.environment.service.ScriptService._check_ports = check_ports
protected

Definition at line 49 of file service.py.

◆ _environment

testsuite.environment.service.ScriptService._environment = environment
protected

Definition at line 47 of file service.py.

◆ _prestart_hook

testsuite.environment.service.ScriptService._prestart_hook = prestart_hook
protected

Definition at line 50 of file service.py.

◆ _script_path

testsuite.environment.service.ScriptService._script_path = script_path
protected

Definition at line 46 of file service.py.

◆ _service_name

testsuite.environment.service.ScriptService._service_name = service_name
protected

Definition at line 45 of file service.py.

◆ _start_timeout

testsuite.environment.service.ScriptService._start_timeout = start_timeout
protected

Definition at line 51 of file service.py.

◆ _started_mark

testsuite.environment.service.ScriptService._started_mark = StartedMark(working_dir)
protected

Definition at line 52 of file service.py.


The documentation for this class was generated from the following file: