Make gRPC requests to the service.
- See also
- gRPC client and service
|
int | grpc_service_port (service_config) |
| Returns the gRPC listener port number of the service that is set in the static configuration file.
|
|
str | grpc_service_endpoint (service_config, 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 .
|
|
Callable[[grpc.aio.ClientCallDetails], Awaitable[None]] | grpc_client_prepare (service_client, client.TestsuiteClientConfig _testsuite_client_config) |
| Returns the function that will be called in before each gRPC request, client-side.
|
|
| grpc_session_channel (grpc_service_endpoint, _grpc_channel_interceptor) |
|
| grpc_channel (grpc_service_endpoint, grpc_service_deps, grpc_service_timeout, grpc_session_channel, _grpc_channel_interceptor, grpc_client_prepare) |
| Returns the gRPC channel configured by the parameters from the grpc_service_endpoint fixture.
|
|
| grpc_service_deps (service_client) |
| gRPC service dependencies hook.
|
|
| userver_config_grpc_mockserver (grpc_mockserver_endpoint) |
| Returns a function that adjusts the static config for testsuite.
|
|
_GenericClientInterceptor | _grpc_channel_interceptor () |
|
◆ _grpc_channel_interceptor()
◆ grpc_session_channel()
pytest_userver.plugins.grpc.client.grpc_session_channel |
( |
| grpc_service_endpoint, |
|
|
| _grpc_channel_interceptor ) |
◆ DEFAULT_TIMEOUT
float pytest_userver.plugins.grpc.client.DEFAULT_TIMEOUT = 15.0 |
◆ USERVER_CONFIG_HOOKS