userver: pytest_userver.plugins.service_client Namespace Reference
Loading...
Searching...
No Matches
pytest_userver.plugins.service_client Namespace Reference

Detailed Description

Service main and monitor clients.

Functions

None extra_client_deps ()
 Service client dependencies hook.
 
None auto_client_deps (request)
 Service client dependencies hook that knows about pgsql, mongodb, clickhouse, rabbitmq, redis_store, ydb, and mysql dependencies.
 
client.Client service_client (ensure_daemon_started, service_daemon, dynamic_config, mock_configs_service, cleanup_userver_dumps, userver_client_cleanup, _config_service_defaults_updated, client.TestsuiteClientConfig _testsuite_client_config, _service_client_base, _service_client_testsuite, extra_client_deps, auto_client_deps)
 Main fixture that provides access to userver based service.
 
 userver_client_cleanup (request, userver_flush_logs)
 
 userver_flush_logs (request)
 Flush logs in case of failure.
 
 websocket_client (service_client, service_port)
 Fixture that provides access to userver based websocket service.
 
client.ClientMonitor monitor_client (service_client, service_client_options, mockserver, str monitor_baseurl, client.TestsuiteClientConfig _testsuite_client_config)
 Main fixture that provides access to userver monitor listener.
 
 _service_client_base (service_baseurl, service_client_options)
 
typing.Callable[[DaemonInstance], client.Client_service_client_testsuite (service_baseurl, service_client_options, mocked_time, userver_cache_control, userver_log_capture, testpoint, testpoint_control, cache_invalidation_state, service_periodic_tasks_state, client.TestsuiteClientConfig _testsuite_client_config)
 
str service_baseurl (service_port)
 Returns the main listener URL of the service.
 
str monitor_baseurl (monitor_port)
 Returns the main monitor URL of the service.
 
client.PeriodicTasksState service_periodic_tasks_state ()
 
client.TestsuiteClientConfig _testsuite_client_config (pytestconfig, service_config)
 

Variables

 logger = logging.getLogger(__name__)
 

Function Documentation

◆ _service_client_base()

pytest_userver.plugins.service_client._service_client_base ( service_baseurl,
service_client_options )
protected

Definition at line 214 of file service_client.py.

◆ _service_client_testsuite()

typing.Callable[[DaemonInstance], client.Client] pytest_userver.plugins.service_client._service_client_testsuite ( service_baseurl,
service_client_options,
mocked_time,
userver_cache_control,
userver_log_capture,
testpoint,
testpoint_control,
cache_invalidation_state,
service_periodic_tasks_state,
client.TestsuiteClientConfig _testsuite_client_config )
protected

Definition at line 231 of file service_client.py.

◆ _testsuite_client_config()

client.TestsuiteClientConfig pytest_userver.plugins.service_client._testsuite_client_config ( pytestconfig,
service_config )
protected

Definition at line 293 of file service_client.py.

◆ service_periodic_tasks_state()

client.PeriodicTasksState pytest_userver.plugins.service_client.service_periodic_tasks_state ( )

Definition at line 288 of file service_client.py.

◆ userver_client_cleanup()

pytest_userver.plugins.service_client.userver_client_cleanup ( request,
userver_flush_logs )

Definition at line 119 of file service_client.py.

◆ userver_flush_logs()

pytest_userver.plugins.service_client.userver_flush_logs ( request)

Flush logs in case of failure.

Definition at line 139 of file service_client.py.

Variable Documentation

◆ logger

pytest_userver.plugins.service_client.logger = logging.getLogger(__name__)

Definition at line 20 of file service_client.py.