Make gRPC requests to the service.
- See also
- gRPC client and service
|
| int | grpc_service_port_fallback () |
| | Returns the gRPC port that should be used in service runner mode in case no port is specified in the source config_yaml.
|
| |
| str | grpc_service_endpoint (service_config) |
| | 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 (service_client, grpc_service_endpoint, grpc_service_timeout, grpc_session_channel, request) |
| | Returns the gRPC channel configured by the parameters from the grpc_service_endpoint fixture.
|
| |
| Generator[pathlib.Path, None, None] | grpc_socket_path () |
| | Path for the UNIX socket over which testsuite will talk to the gRPC service, if it chooses to use a UNIX socket.
|
| |
| | userver_config_grpc_endpoint (pytestconfig, grpc_service_port_fallback, substitute_config_vars, request, choose_free_port) |
| | Returns a function that adjusts the static config for testsuite.
|
| |
◆ grpc_session_channel()
| pytest_userver.plugins.grpc.client.grpc_session_channel |
( |
| grpc_service_endpoint | ) |
|
◆ _AsyncExcCheck
| TypeAlias pytest_userver.plugins.grpc.client._AsyncExcCheck = Callable[[], None] |
|
protected |
◆ DEFAULT_TIMEOUT
| float pytest_userver.plugins.grpc.client.DEFAULT_TIMEOUT = 15.0 |
◆ USERVER_CONFIG_HOOKS