sift_py.grpc.transport_test
¶
| CLASS | DESCRIPTION |
|---|---|
AuthInterceptor |
|
DataService |
|
ForceFailInterceptor |
Force RPC to fail a few times before letting it pass. |
| FUNCTION | DESCRIPTION |
|---|---|
server_spy |
|
test_internal_error_retry |
|
test_sift_channel |
|
AuthInterceptor
¶
Bases: ServerInterceptor
| METHOD | DESCRIPTION |
|---|---|
intercept |
|
intercept_service |
|
| ATTRIBUTE | DESCRIPTION |
|---|---|
AUTH_REGEX |
|
DataService
¶
ForceFailInterceptor
¶
Bases: ServerInterceptor
Force RPC to fail a few times before letting it pass.
failed_attempts: Count of how many times failed
expected_num_fails: How many times you want call to fail
| METHOD | DESCRIPTION |
|---|---|
intercept |
|
intercept_service |
|
| ATTRIBUTE | DESCRIPTION |
|---|---|
expected_num_fails |
TYPE:
|
failed_attempts |
TYPE:
|
failure_code |
TYPE:
|
intercept
¶
intercept(
method: Callable,
request_or_iterator: Any,
context: ServicerContext,
method_name: str,
) -> Any