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, kafka, 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, 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.
 
typing.Callable[[client.Client], typing.AsyncGenerator] userver_client_cleanup (request, _userver_logging_plugin, _dynamic_config_defaults_storage, _check_config_marks, dynamic_config)
 Contains the pre-test and post-test setup that depends on service_client.
 
 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, asyncexc_check)
 
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 215 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,
asyncexc_check )
protected

Definition at line 232 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 296 of file service_client.py.

◆ service_periodic_tasks_state()

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

Definition at line 291 of file service_client.py.

Variable Documentation

◆ logger

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

Definition at line 19 of file service_client.py.