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
¶
DataService
¶
ForceFailInterceptor
¶
ForceFailInterceptor(
expected_num_fails: int,
failure_code: StatusCode = UNKNOWN,
)
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 |
|
| ATTRIBUTE | DESCRIPTION |
|---|---|
expected_num_fails |
TYPE:
|
failed_attempts |
TYPE:
|
failure_code |
TYPE:
|