Functions
test/cpp/interop/client.cc File Reference
#include <memory>
#include <unordered_map>
#include "absl/flags/flag.h"
#include <grpc/grpc.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpcpp/channel.h>
#include <grpcpp/client_context.h>
#include "src/core/lib/gpr/string.h"
#include "test/core/util/test_config.h"
#include "test/cpp/interop/client_helper.h"
#include "test/cpp/interop/interop_client.h"
#include "test/cpp/util/test_config.h"
Include dependency graph for test/cpp/interop/client.cc:

Go to the source code of this file.

Functions

 ABSL_FLAG (bool, do_not_abort_on_transient_failures, false, "If set to 'true', abort() is not called in case of transient " "failures (i.e failures that are temporary and will likely go away " "on retrying; like a temporary connection failure) and an error " "message is printed instead. Note that this flag just controls " "whether abort() is called or not. It does not control whether the " "test is retried in case of transient failures (and currently the " "interop tests are not retried even if this flag is set to true)")
 
 ABSL_FLAG (bool, log_metadata_and_status, false, "If set to 'true', will print received initial and trailing metadata, " "grpc-status and error message to the console, in a stable format.")
 
 ABSL_FLAG (bool, use_alts, false, "Whether to use alts. Enable alts will disable tls.")
 
 ABSL_FLAG (bool, use_test_ca, false, "False to use SSL roots for google")
 
 ABSL_FLAG (bool, use_tls, false, "Whether to use tls.")
 
 ABSL_FLAG (int32_t, iteration_interval, 10, "The interval in seconds between rpcs. This is used by " "long_connection test")
 
 ABSL_FLAG (int32_t, server_port, 0, "Server port.")
 
 ABSL_FLAG (int32_t, soak_iterations, 1000, "The number of iterations to use for the two soak tests; rpc_soak " "and channel_soak.")
 
 ABSL_FLAG (int32_t, soak_max_failures, 0, "The number of iterations in soak tests that are allowed to fail " "(either due to non-OK status code or exceeding the " "per-iteration max acceptable latency).")
 
 ABSL_FLAG (int32_t, soak_min_time_ms_between_rpcs, 0, "The minimum time in milliseconds between consecutive RPCs in a " "soak test (rpc_soak or channel_soak), useful for limiting QPS")
 
 ABSL_FLAG (int32_t, soak_overall_timeout_seconds, 0, "The overall number of seconds after which a soak test should " "stop and fail, if the desired number of iterations have not yet " "completed.")
 
 ABSL_FLAG (int32_t, soak_per_iteration_max_acceptable_latency_ms, 0, "The number of milliseconds a single iteration in the two soak " "tests (rpc_soak and channel_soak) should take.")
 
 ABSL_FLAG (std::string, additional_metadata, "", "Additional metadata to send in each request, as a " "semicolon-separated list of key:value pairs.")
 
 ABSL_FLAG (std::string, custom_credentials_type, "", "User provided credentials type.")
 
 ABSL_FLAG (std::string, default_service_account, "", "Email of GCE default service account")
 
 ABSL_FLAG (std::string, oauth_scope, "", "Scope for OAuth tokens.")
 
 ABSL_FLAG (std::string, server_host, "localhost", "Server host to connect to")
 
 ABSL_FLAG (std::string, server_host_override, "", "Override the server host which is sent in HTTP header")
 
 ABSL_FLAG (std::string, service_account_key_file, "", "Path to service account json key file.")
 
 ABSL_FLAG (std::string, test_case, "large_unary", "Configure different test cases. Valid options are:\n\n" "all : all test cases;\n")
 
int main (int argc, char **argv)
 

Function Documentation

◆ ABSL_FLAG() [1/20]

ABSL_FLAG ( bool  ,
do_not_abort_on_transient_failures  ,
false  ,
"If set to 'true ,
abort() is not called in case of transient " "failures(i.e failures that are temporary and will likely go away " "on retrying;like a temporary connection failure) and an error " "message is printed instead. Note that this flag just controls " "whether abort() is called or not. It does not control whether the " "test is retried in case of transient failures(and currently the " "interop tests are not retried even if this flag is set to true)"   
)

◆ ABSL_FLAG() [2/20]

ABSL_FLAG ( bool  ,
log_metadata_and_status  ,
false  ,
"If set to 'true ,
will print received initial and trailing  metadata,
" "grpc-status and error message to the  console,
in a stable format."   
)

◆ ABSL_FLAG() [3/20]

ABSL_FLAG ( bool  ,
use_alts  ,
false  ,
"Whether to use alts. Enable alts will disable tls."   
)

◆ ABSL_FLAG() [4/20]

ABSL_FLAG ( bool  ,
use_test_ca  ,
false  ,
"False to use SSL roots for google"   
)

◆ ABSL_FLAG() [5/20]

ABSL_FLAG ( bool  ,
use_tls  ,
false  ,
"Whether to use tls."   
)

◆ ABSL_FLAG() [6/20]

ABSL_FLAG ( int32_t  ,
iteration_interval  ,
10  ,
"The interval in seconds between rpcs. This is used by " "long_connection test  
)

◆ ABSL_FLAG() [7/20]

ABSL_FLAG ( int32_t  ,
server_port  ,
,
"Server port."   
)

◆ ABSL_FLAG() [8/20]

ABSL_FLAG ( int32_t  ,
soak_iterations  ,
1000  ,
"The number of iterations to use for the two soak tests; rpc_soak " "and channel_soak."   
)

◆ ABSL_FLAG() [9/20]

ABSL_FLAG ( int32_t  ,
soak_max_failures  ,
,
"The number of iterations in soak tests that are allowed to fail " "(either due to non-OK status code or exceeding the " "per-iteration max acceptable latency)."   
)

◆ ABSL_FLAG() [10/20]

ABSL_FLAG ( int32_t  ,
soak_min_time_ms_between_rpcs  ,
,
"The minimum time in milliseconds between consecutive RPCs in a " "soak test   rpc_soak or channel_soak,
useful for limiting QPS"   
)

◆ ABSL_FLAG() [11/20]

ABSL_FLAG ( int32_t  ,
soak_overall_timeout_seconds  ,
,
"The overall number of seconds after which a soak test should " "stop and  fail,
if the desired number of iterations have not yet " "completed."   
)

◆ ABSL_FLAG() [12/20]

ABSL_FLAG ( int32_t  ,
soak_per_iteration_max_acceptable_latency_ms  ,
,
"The number of milliseconds a single iteration in the two soak " "tests (rpc_soak and channel_soak) should take."   
)

◆ ABSL_FLAG() [13/20]

ABSL_FLAG ( std::string  ,
additional_metadata  ,
""  ,
"Additional metadata to send in each  request,
as a " "semicolon-separated list of key:value pairs."   
)

◆ ABSL_FLAG() [14/20]

ABSL_FLAG ( std::string  ,
custom_credentials_type  ,
""  ,
"User provided credentials type."   
)

◆ ABSL_FLAG() [15/20]

ABSL_FLAG ( std::string  ,
default_service_account  ,
""  ,
"Email of GCE default service account"   
)

◆ ABSL_FLAG() [16/20]

ABSL_FLAG ( std::string  ,
oauth_scope  ,
""  ,
"Scope for OAuth tokens."   
)

◆ ABSL_FLAG() [17/20]

ABSL_FLAG ( std::string  ,
server_host  ,
"localhost"  ,
"Server host to connect to  
)

◆ ABSL_FLAG() [18/20]

ABSL_FLAG ( std::string  ,
server_host_override  ,
""  ,
"Override the server host which is sent in HTTP header  
)

◆ ABSL_FLAG() [19/20]

ABSL_FLAG ( std::string  ,
service_account_key_file  ,
""  ,
"Path to service account json key file."   
)

◆ ABSL_FLAG() [20/20]

ABSL_FLAG ( std::string  ,
test_case  ,
"large_unary"  ,
"Configure different test cases. Valid options are:\n\n" "all : all test cases;\n  
)

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 189 of file test/cpp/interop/client.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:06