userver: pytest_userver.plugins.grpc.client Namespace Reference
Loading...
Searching...
No Matches
pytest_userver.plugins.grpc.client Namespace Reference

Make gRPC requests to the service. More...

Functions

int grpc_service_port (service_config_yaml)
 Returns the gRPC listener port number of the service that is set in the static configuration file.
 
str grpc_service_endpoint (grpc_service_port)
 Returns the gRPC endpoint of the service.
 
float grpc_service_timeout (pytestconfig)
 Returns the gRPC timeout for the service that is set by the command line option --service-timeout.
 
 _grpc_session_channel (grpc_service_endpoint)
 
 grpc_channel (grpc_service_endpoint, grpc_service_deps, grpc_service_timeout, _grpc_session_channel)
 Returns the gRPC channel configured by the parameters from the grpc_service_endpoint fixture.
 
 grpc_service_deps (service_client)
 gRPC service dependencies hook.
 
 prepare_config_vars (grpc_mockserver_endpoint)
 

Variables

float DEFAULT_TIMEOUT = 15.0
 
list USERVER_CONFIG_HOOKS = ['prepare_config_vars']
 

Detailed Description

Make gRPC requests to the service.

See also
gRPC client and service

Function Documentation

◆ _grpc_session_channel()

pytest_userver.plugins.grpc.client._grpc_session_channel (   grpc_service_endpoint)
protected

Definition at line 63 of file client.py.

◆ prepare_config_vars()

pytest_userver.plugins.grpc.client.prepare_config_vars (   grpc_mockserver_endpoint)

Definition at line 104 of file client.py.

Variable Documentation

◆ DEFAULT_TIMEOUT

float pytest_userver.plugins.grpc.client.DEFAULT_TIMEOUT = 15.0

Definition at line 13 of file client.py.

◆ USERVER_CONFIG_HOOKS

list pytest_userver.plugins.grpc.client.USERVER_CONFIG_HOOKS = ['prepare_config_vars']

Definition at line 15 of file client.py.