|
|
@ -585,378 +585,367 @@ std::string GetTempDir() { |
|
|
|
const std::string temp_dir = GetTempDir(); |
|
|
|
const std::string temp_dir = GetTempDir(); |
|
|
|
|
|
|
|
|
|
|
|
std::vector<CoreTestConfiguration> DefaultConfigs() { |
|
|
|
std::vector<CoreTestConfiguration> DefaultConfigs() { |
|
|
|
return std::vector<CoreTestConfiguration> { |
|
|
|
return std::vector<CoreTestConfiguration>{ |
|
|
|
#ifdef GRPC_POSIX_SOCKET |
|
|
|
#ifdef GRPC_POSIX_SOCKET |
|
|
|
CoreTestConfiguration{"Chttp2Fd", |
|
|
|
CoreTestConfiguration{"Chttp2Fd", |
|
|
|
FEATURE_MASK_IS_HTTP2 | FEATURE_MASK_DO_NOT_FUZZ | |
|
|
|
FEATURE_MASK_IS_HTTP2 | FEATURE_MASK_DO_NOT_FUZZ | |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
nullptr, |
|
|
|
nullptr, |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
return std::make_unique<FdFixture>(); |
|
|
|
return std::make_unique<FdFixture>(); |
|
|
|
}}, |
|
|
|
}}, |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
CoreTestConfiguration{ |
|
|
|
CoreTestConfiguration{ |
|
|
|
"Chttp2FakeSecurityFullstack", |
|
|
|
"Chttp2FakeSecurityFullstack", |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | |
|
|
|
FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS_LEVEL_INSECURE | |
|
|
|
FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS_LEVEL_INSECURE | |
|
|
|
FEATURE_MASK_IS_HTTP2, |
|
|
|
FEATURE_MASK_IS_HTTP2, |
|
|
|
nullptr, |
|
|
|
nullptr, |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
return std::make_unique<FakesecFixture>(); |
|
|
|
return std::make_unique<FakesecFixture>(); |
|
|
|
}}, |
|
|
|
}}, |
|
|
|
CoreTestConfiguration{ |
|
|
|
CoreTestConfiguration{ |
|
|
|
"Chttp2Fullstack", |
|
|
|
"Chttp2Fullstack", |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | FEATURE_MASK_IS_HTTP2, |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | FEATURE_MASK_IS_HTTP2, nullptr, |
|
|
|
nullptr, |
|
|
|
[](const ChannelArgs& /*client_args*/, |
|
|
|
[](const ChannelArgs& /*client_args*/, |
|
|
|
const ChannelArgs& /*server_args*/) { |
|
|
|
const ChannelArgs& /*server_args*/) { |
|
|
|
return std::make_unique<InsecureFixture>(); |
|
|
|
return std::make_unique<InsecureFixture>(); |
|
|
|
}}, |
|
|
|
}}, |
|
|
|
CoreTestConfiguration{ |
|
|
|
CoreTestConfiguration{ |
|
|
|
"Chttp2FullstackCompression", |
|
|
|
"Chttp2FullstackCompression", |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | FEATURE_MASK_IS_HTTP2, nullptr, |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | FEATURE_MASK_IS_HTTP2, |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
nullptr, |
|
|
|
return std::make_unique<CompressionFixture>(); |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
}}, |
|
|
|
return std::make_unique<CompressionFixture>(); |
|
|
|
|
|
|
|
}}, |
|
|
|
|
|
|
|
#ifdef GPR_LINUX |
|
|
|
#ifdef GPR_LINUX |
|
|
|
CoreTestConfiguration{ |
|
|
|
CoreTestConfiguration{ |
|
|
|
"Chttp2FullstackLocalAbstractUdsPercentEncoded", |
|
|
|
"Chttp2FullstackLocalAbstractUdsPercentEncoded", |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | |
|
|
|
FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS | |
|
|
|
FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS | |
|
|
|
FEATURE_MASK_IS_HTTP2 | FEATURE_MASK_DO_NOT_FUZZ | |
|
|
|
FEATURE_MASK_IS_HTTP2 | FEATURE_MASK_DO_NOT_FUZZ | |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
nullptr, |
|
|
|
nullptr, |
|
|
|
[](const ChannelArgs& /*client_args*/, |
|
|
|
[](const ChannelArgs& /*client_args*/, |
|
|
|
const ChannelArgs& /*server_args*/) { |
|
|
|
const ChannelArgs& /*server_args*/) { |
|
|
|
gpr_timespec now = gpr_now(GPR_CLOCK_MONOTONIC); |
|
|
|
gpr_timespec now = gpr_now(GPR_CLOCK_MONOTONIC); |
|
|
|
return std::make_unique<LocalTestFixture>( |
|
|
|
return std::make_unique<LocalTestFixture>( |
|
|
|
absl::StrFormat( |
|
|
|
absl::StrFormat( |
|
|
|
"unix-abstract:grpc_fullstack_test.%%00.%d.%" PRId64 |
|
|
|
"unix-abstract:grpc_fullstack_test.%%00.%d.%" PRId64 |
|
|
|
".%" PRId32 ".%" PRId64 ".%" PRId64, |
|
|
|
".%" PRId32 ".%" PRId64 ".%" PRId64, |
|
|
|
getpid(), now.tv_sec, now.tv_nsec, |
|
|
|
getpid(), now.tv_sec, now.tv_nsec, |
|
|
|
unique.fetch_add(1, std::memory_order_relaxed), Rand()), |
|
|
|
unique.fetch_add(1, std::memory_order_relaxed), Rand()), |
|
|
|
UDS); |
|
|
|
UDS); |
|
|
|
}}, |
|
|
|
}}, |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
CoreTestConfiguration{"Chttp2FullstackLocalIpv4", |
|
|
|
CoreTestConfiguration{"Chttp2FullstackLocalIpv4", |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | |
|
|
|
FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS | |
|
|
|
FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS | |
|
|
|
FEATURE_MASK_IS_HTTP2 | |
|
|
|
FEATURE_MASK_IS_HTTP2 | |
|
|
|
FEATURE_MASK_DO_NOT_FUZZ | |
|
|
|
FEATURE_MASK_DO_NOT_FUZZ | |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
nullptr, |
|
|
|
nullptr, |
|
|
|
[](const ChannelArgs& /*client_args*/, |
|
|
|
[](const ChannelArgs& /*client_args*/, |
|
|
|
const ChannelArgs& /*server_args*/) { |
|
|
|
const ChannelArgs& /*server_args*/) { |
|
|
|
int port = grpc_pick_unused_port_or_die(); |
|
|
|
int port = grpc_pick_unused_port_or_die(); |
|
|
|
return std::make_unique<LocalTestFixture>( |
|
|
|
return std::make_unique<LocalTestFixture>( |
|
|
|
JoinHostPort("127.0.0.1", port), LOCAL_TCP); |
|
|
|
JoinHostPort("127.0.0.1", port), LOCAL_TCP); |
|
|
|
}}, |
|
|
|
}}, |
|
|
|
CoreTestConfiguration{"Chttp2FullstackLocalIpv6", |
|
|
|
CoreTestConfiguration{"Chttp2FullstackLocalIpv6", |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | |
|
|
|
FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS | |
|
|
|
FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS | |
|
|
|
FEATURE_MASK_IS_HTTP2 | |
|
|
|
FEATURE_MASK_IS_HTTP2 | |
|
|
|
FEATURE_MASK_DO_NOT_FUZZ | |
|
|
|
FEATURE_MASK_DO_NOT_FUZZ | |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
nullptr, |
|
|
|
nullptr, |
|
|
|
[](const ChannelArgs& /*client_args*/, |
|
|
|
[](const ChannelArgs& /*client_args*/, |
|
|
|
const ChannelArgs& /*server_args*/) { |
|
|
|
const ChannelArgs& /*server_args*/) { |
|
|
|
int port = grpc_pick_unused_port_or_die(); |
|
|
|
int port = grpc_pick_unused_port_or_die(); |
|
|
|
return std::make_unique<LocalTestFixture>( |
|
|
|
return std::make_unique<LocalTestFixture>( |
|
|
|
JoinHostPort("[::1]", port), LOCAL_TCP); |
|
|
|
JoinHostPort("[::1]", port), LOCAL_TCP); |
|
|
|
}}, |
|
|
|
}}, |
|
|
|
#ifdef GRPC_HAVE_UNIX_SOCKET |
|
|
|
#ifdef GRPC_HAVE_UNIX_SOCKET |
|
|
|
CoreTestConfiguration{ |
|
|
|
CoreTestConfiguration{ |
|
|
|
"Chttp2FullstackLocalUdsPercentEncoded", |
|
|
|
"Chttp2FullstackLocalUdsPercentEncoded", |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | |
|
|
|
FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS | |
|
|
|
FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS | |
|
|
|
FEATURE_MASK_IS_HTTP2 | FEATURE_MASK_DO_NOT_FUZZ | |
|
|
|
FEATURE_MASK_IS_HTTP2 | FEATURE_MASK_DO_NOT_FUZZ | |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
nullptr, |
|
|
|
nullptr, |
|
|
|
[](const ChannelArgs& /*client_args*/, |
|
|
|
[](const ChannelArgs& /*client_args*/, |
|
|
|
const ChannelArgs& /*server_args*/) { |
|
|
|
const ChannelArgs& /*server_args*/) { |
|
|
|
gpr_timespec now = gpr_now(GPR_CLOCK_MONOTONIC); |
|
|
|
gpr_timespec now = gpr_now(GPR_CLOCK_MONOTONIC); |
|
|
|
return std::make_unique<LocalTestFixture>( |
|
|
|
return std::make_unique<LocalTestFixture>( |
|
|
|
absl::StrFormat( |
|
|
|
absl::StrFormat("unix:%s" |
|
|
|
"unix:%s" |
|
|
|
"grpc_fullstack_test.%%25.%d.%" PRId64 |
|
|
|
"grpc_fullstack_test.%%25.%d.%" PRId64 ".%" PRId32 |
|
|
|
".%" PRId32 ".%" PRId64 ".%" PRId64, |
|
|
|
".%" PRId64 ".%" PRId64, |
|
|
|
temp_dir, getpid(), now.tv_sec, now.tv_nsec, |
|
|
|
temp_dir, getpid(), now.tv_sec, now.tv_nsec, |
|
|
|
unique.fetch_add(1, std::memory_order_relaxed), |
|
|
|
unique.fetch_add(1, std::memory_order_relaxed), Rand()), |
|
|
|
Rand()), |
|
|
|
UDS); |
|
|
|
UDS); |
|
|
|
}}, |
|
|
|
}}, |
|
|
|
CoreTestConfiguration{ |
|
|
|
CoreTestConfiguration{ |
|
|
|
"Chttp2FullstackLocalUds", |
|
|
|
"Chttp2FullstackLocalUds", |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | |
|
|
|
FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS | |
|
|
|
FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS | |
|
|
|
FEATURE_MASK_IS_HTTP2 | FEATURE_MASK_DO_NOT_FUZZ | |
|
|
|
FEATURE_MASK_IS_HTTP2 | FEATURE_MASK_DO_NOT_FUZZ | |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
nullptr, |
|
|
|
nullptr, |
|
|
|
[](const ChannelArgs& /*client_args*/, |
|
|
|
[](const ChannelArgs& /*client_args*/, |
|
|
|
const ChannelArgs& /*server_args*/) { |
|
|
|
const ChannelArgs& /*server_args*/) { |
|
|
|
gpr_timespec now = gpr_now(GPR_CLOCK_REALTIME); |
|
|
|
gpr_timespec now = gpr_now(GPR_CLOCK_REALTIME); |
|
|
|
return std::make_unique<LocalTestFixture>( |
|
|
|
return std::make_unique<LocalTestFixture>( |
|
|
|
absl::StrFormat( |
|
|
|
absl::StrFormat("unix:%s" |
|
|
|
"unix:%s" |
|
|
|
"grpc_fullstack_test.%d.%" PRId64 ".%" PRId32 |
|
|
|
"grpc_fullstack_test.%d.%" PRId64 ".%" PRId32 ".%" PRId64 |
|
|
|
".%" PRId64 ".%" PRId64, |
|
|
|
".%" PRId64, |
|
|
|
temp_dir, getpid(), now.tv_sec, now.tv_nsec, |
|
|
|
temp_dir, getpid(), now.tv_sec, now.tv_nsec, |
|
|
|
unique.fetch_add(1, std::memory_order_relaxed), |
|
|
|
unique.fetch_add(1, std::memory_order_relaxed), Rand()), |
|
|
|
Rand()), |
|
|
|
UDS); |
|
|
|
UDS); |
|
|
|
}}, |
|
|
|
}}, |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
CoreTestConfiguration{"Chttp2FullstackNoRetry", |
|
|
|
CoreTestConfiguration{"Chttp2FullstackNoRetry", |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | |
|
|
|
FEATURE_MASK_IS_HTTP2 | |
|
|
|
FEATURE_MASK_IS_HTTP2 | |
|
|
|
FEATURE_MASK_DOES_NOT_SUPPORT_RETRY, |
|
|
|
FEATURE_MASK_DOES_NOT_SUPPORT_RETRY, |
|
|
|
nullptr, |
|
|
|
nullptr, |
|
|
|
[](const ChannelArgs& /*client_args*/, |
|
|
|
[](const ChannelArgs& /*client_args*/, |
|
|
|
const ChannelArgs& /*server_args*/) { |
|
|
|
const ChannelArgs& /*server_args*/) { |
|
|
|
return std::make_unique<NoRetryFixture>(); |
|
|
|
return std::make_unique<NoRetryFixture>(); |
|
|
|
}}, |
|
|
|
}}, |
|
|
|
CoreTestConfiguration{ |
|
|
|
CoreTestConfiguration{ |
|
|
|
"Chttp2FullstackWithCensus", |
|
|
|
"Chttp2FullstackWithCensus", |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | FEATURE_MASK_IS_HTTP2, |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | FEATURE_MASK_IS_HTTP2, nullptr, |
|
|
|
nullptr, |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
return std::make_unique<CensusFixture>(); |
|
|
|
return std::make_unique<CensusFixture>(); |
|
|
|
}}, |
|
|
|
}}, |
|
|
|
CoreTestConfiguration{ |
|
|
|
CoreTestConfiguration{ |
|
|
|
"Chttp2FullstackWithProxy", |
|
|
|
"Chttp2FullstackWithProxy", |
|
|
|
FEATURE_MASK_SUPPORTS_REQUEST_PROXYING | |
|
|
|
FEATURE_MASK_SUPPORTS_REQUEST_PROXYING | |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | FEATURE_MASK_IS_HTTP2 | |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | FEATURE_MASK_IS_HTTP2 | |
|
|
|
FEATURE_MASK_DO_NOT_FUZZ, |
|
|
|
FEATURE_MASK_DO_NOT_FUZZ, |
|
|
|
nullptr, |
|
|
|
nullptr, |
|
|
|
[](const ChannelArgs& client_args, const ChannelArgs& server_args) { |
|
|
|
[](const ChannelArgs& client_args, const ChannelArgs& server_args) { |
|
|
|
return std::make_unique<ProxyFixture>(client_args, server_args); |
|
|
|
return std::make_unique<ProxyFixture>(client_args, server_args); |
|
|
|
}}, |
|
|
|
}}, |
|
|
|
CoreTestConfiguration{ |
|
|
|
CoreTestConfiguration{ |
|
|
|
"Chttp2HttpProxy", |
|
|
|
"Chttp2HttpProxy", |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | FEATURE_MASK_IS_HTTP2 | |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | FEATURE_MASK_IS_HTTP2 | |
|
|
|
FEATURE_MASK_DO_NOT_FUZZ, |
|
|
|
FEATURE_MASK_DO_NOT_FUZZ, |
|
|
|
nullptr, |
|
|
|
nullptr, |
|
|
|
[](const ChannelArgs& client_args, const ChannelArgs&) { |
|
|
|
[](const ChannelArgs& client_args, const ChannelArgs&) { |
|
|
|
return std::make_unique<HttpProxyFilter>(client_args); |
|
|
|
return std::make_unique<HttpProxyFilter>(client_args); |
|
|
|
}}, |
|
|
|
}}, |
|
|
|
CoreTestConfiguration{ |
|
|
|
CoreTestConfiguration{ |
|
|
|
"Chttp2SslProxy", |
|
|
|
"Chttp2SslProxy", |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | FEATURE_MASK_IS_SECURE | |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | FEATURE_MASK_IS_SECURE | |
|
|
|
FEATURE_MASK_SUPPORTS_REQUEST_PROXYING | |
|
|
|
FEATURE_MASK_SUPPORTS_REQUEST_PROXYING | |
|
|
|
FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS | |
|
|
|
FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS | |
|
|
|
FEATURE_MASK_IS_HTTP2 | FEATURE_MASK_DO_NOT_FUZZ, |
|
|
|
FEATURE_MASK_IS_HTTP2 | FEATURE_MASK_DO_NOT_FUZZ, |
|
|
|
"foo.test.google.fr", |
|
|
|
"foo.test.google.fr", |
|
|
|
[](const ChannelArgs& client_args, const ChannelArgs& server_args) { |
|
|
|
[](const ChannelArgs& client_args, const ChannelArgs& server_args) { |
|
|
|
return std::make_unique<SslProxyFixture>(client_args, server_args); |
|
|
|
return std::make_unique<SslProxyFixture>(client_args, |
|
|
|
}}, |
|
|
|
server_args); |
|
|
|
CoreTestConfiguration{ |
|
|
|
}}, |
|
|
|
"Chttp2InsecureCredentials", |
|
|
|
CoreTestConfiguration{ |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | |
|
|
|
"Chttp2InsecureCredentials", |
|
|
|
FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS_LEVEL_INSECURE | |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | |
|
|
|
FEATURE_MASK_IS_HTTP2 | FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS_LEVEL_INSECURE | |
|
|
|
nullptr, |
|
|
|
FEATURE_MASK_IS_HTTP2 | |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
return std::make_unique<InsecureCredsFixture>(); |
|
|
|
nullptr, |
|
|
|
}, |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
}, |
|
|
|
return std::make_unique<InsecureCredsFixture>(); |
|
|
|
CoreTestConfiguration{ |
|
|
|
}, |
|
|
|
"Chttp2SimpleSslWithOauth2FullstackTls12", |
|
|
|
}, |
|
|
|
FEATURE_MASK_IS_SECURE | FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS | |
|
|
|
CoreTestConfiguration{ |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | FEATURE_MASK_IS_HTTP2 | |
|
|
|
"Chttp2SimpleSslWithOauth2FullstackTls12", |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
FEATURE_MASK_IS_SECURE | |
|
|
|
"foo.test.google.fr", |
|
|
|
FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS | |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | FEATURE_MASK_IS_HTTP2 | |
|
|
|
return std::make_unique<Oauth2Fixture>(grpc_tls_version::TLS1_2); |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
}}, |
|
|
|
"foo.test.google.fr", |
|
|
|
CoreTestConfiguration{ |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
"Chttp2SimpleSslWithOauth2FullstackTls13", |
|
|
|
return std::make_unique<Oauth2Fixture>(grpc_tls_version::TLS1_2); |
|
|
|
FEATURE_MASK_IS_SECURE | FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS | |
|
|
|
}}, |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | FEATURE_MASK_IS_HTTP2, |
|
|
|
CoreTestConfiguration{ |
|
|
|
"foo.test.google.fr", |
|
|
|
"Chttp2SimpleSslWithOauth2FullstackTls13", |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
FEATURE_MASK_IS_SECURE | |
|
|
|
return std::make_unique<Oauth2Fixture>(grpc_tls_version::TLS1_3); |
|
|
|
FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS | |
|
|
|
}}, |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | FEATURE_MASK_IS_HTTP2, |
|
|
|
CoreTestConfiguration{ |
|
|
|
"foo.test.google.fr", |
|
|
|
"Chttp2SimplSslFullstackTls12", |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
FEATURE_MASK_IS_SECURE | FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS | |
|
|
|
return std::make_unique<Oauth2Fixture>(grpc_tls_version::TLS1_3); |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | FEATURE_MASK_IS_HTTP2 | |
|
|
|
}}, |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
CoreTestConfiguration{ |
|
|
|
"foo.test.google.fr", |
|
|
|
"Chttp2SimplSslFullstackTls12", |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
FEATURE_MASK_IS_SECURE | |
|
|
|
return std::make_unique<SslTlsFixture>(grpc_tls_version::TLS1_2); |
|
|
|
FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS | |
|
|
|
}}, |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | FEATURE_MASK_IS_HTTP2 | |
|
|
|
CoreTestConfiguration{ |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
"Chttp2SimplSslFullstackTls13", |
|
|
|
"foo.test.google.fr", |
|
|
|
FEATURE_MASK_IS_SECURE | FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS | |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | |
|
|
|
return std::make_unique<SslTlsFixture>(grpc_tls_version::TLS1_2); |
|
|
|
FEATURE_MASK_DOES_NOT_SUPPORT_CLIENT_HANDSHAKE_COMPLETE_FIRST | |
|
|
|
}}, |
|
|
|
FEATURE_MASK_IS_HTTP2, |
|
|
|
CoreTestConfiguration{ |
|
|
|
"foo.test.google.fr", |
|
|
|
"Chttp2SimplSslFullstackTls13", |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
FEATURE_MASK_IS_SECURE | |
|
|
|
return std::make_unique<SslTlsFixture>(grpc_tls_version::TLS1_3); |
|
|
|
FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS | |
|
|
|
}}, |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | |
|
|
|
CoreTestConfiguration{"Chttp2SocketPair", |
|
|
|
FEATURE_MASK_DOES_NOT_SUPPORT_CLIENT_HANDSHAKE_COMPLETE_FIRST | |
|
|
|
FEATURE_MASK_IS_HTTP2 | FEATURE_MASK_DO_NOT_FUZZ | |
|
|
|
FEATURE_MASK_IS_HTTP2, |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
"foo.test.google.fr", |
|
|
|
nullptr, |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
return std::make_unique<SslTlsFixture>(grpc_tls_version::TLS1_3); |
|
|
|
return std::make_unique<SockpairFixture>( |
|
|
|
}}, |
|
|
|
ChannelArgs()); |
|
|
|
CoreTestConfiguration{ |
|
|
|
}}, |
|
|
|
"Chttp2SocketPair", |
|
|
|
CoreTestConfiguration{ |
|
|
|
FEATURE_MASK_IS_HTTP2 | FEATURE_MASK_DO_NOT_FUZZ | |
|
|
|
"Chttp2SocketPair1ByteAtATime", |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
FEATURE_MASK_IS_HTTP2 | FEATURE_MASK_1BYTE_AT_A_TIME | |
|
|
|
nullptr, |
|
|
|
FEATURE_MASK_DO_NOT_FUZZ | |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
return std::make_unique<SockpairFixture>(ChannelArgs()); |
|
|
|
nullptr, |
|
|
|
}}, |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
CoreTestConfiguration{ |
|
|
|
return std::make_unique<SockpairFixture>( |
|
|
|
"Chttp2SocketPair1ByteAtATime", |
|
|
|
ChannelArgs() |
|
|
|
FEATURE_MASK_IS_HTTP2 | FEATURE_MASK_1BYTE_AT_A_TIME | |
|
|
|
.Set(GRPC_ARG_TCP_READ_CHUNK_SIZE, 1) |
|
|
|
FEATURE_MASK_DO_NOT_FUZZ | |
|
|
|
.Set(GRPC_ARG_TCP_MIN_READ_CHUNK_SIZE, 1) |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
.Set(GRPC_ARG_TCP_MAX_READ_CHUNK_SIZE, 1)); |
|
|
|
nullptr, |
|
|
|
}}, |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
CoreTestConfiguration{ |
|
|
|
return std::make_unique<SockpairFixture>( |
|
|
|
"Chttp2SocketPairMinstack", |
|
|
|
ChannelArgs() |
|
|
|
FEATURE_MASK_IS_HTTP2 | FEATURE_MASK_IS_MINSTACK | |
|
|
|
.Set(GRPC_ARG_TCP_READ_CHUNK_SIZE, 1) |
|
|
|
FEATURE_MASK_DO_NOT_FUZZ, |
|
|
|
.Set(GRPC_ARG_TCP_MIN_READ_CHUNK_SIZE, 1) |
|
|
|
nullptr, |
|
|
|
.Set(GRPC_ARG_TCP_MAX_READ_CHUNK_SIZE, 1)); |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
}}, |
|
|
|
return std::make_unique<SockpairWithMinstackFixture>(ChannelArgs()); |
|
|
|
CoreTestConfiguration{ |
|
|
|
}}, |
|
|
|
"Chttp2SocketPairMinstack", |
|
|
|
CoreTestConfiguration{ |
|
|
|
FEATURE_MASK_IS_HTTP2 | FEATURE_MASK_IS_MINSTACK | |
|
|
|
"Inproc", |
|
|
|
FEATURE_MASK_DO_NOT_FUZZ, |
|
|
|
FEATURE_MASK_DOES_NOT_SUPPORT_WRITE_BUFFERING, |
|
|
|
nullptr, |
|
|
|
nullptr, |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
return std::make_unique<SockpairWithMinstackFixture>( |
|
|
|
return std::make_unique<InprocFixture>(false); |
|
|
|
ChannelArgs()); |
|
|
|
}, |
|
|
|
}}, |
|
|
|
}, |
|
|
|
CoreTestConfiguration{ |
|
|
|
CoreTestConfiguration{ |
|
|
|
"Inproc", |
|
|
|
"InprocWithPromises", |
|
|
|
FEATURE_MASK_DOES_NOT_SUPPORT_WRITE_BUFFERING, |
|
|
|
FEATURE_MASK_DOES_NOT_SUPPORT_WRITE_BUFFERING | |
|
|
|
nullptr, |
|
|
|
FEATURE_MASK_IS_CALL_V3, |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
nullptr, |
|
|
|
return std::make_unique<InprocFixture>(false); |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
}, |
|
|
|
return std::make_unique<InprocFixture>(true); |
|
|
|
}, |
|
|
|
}, |
|
|
|
CoreTestConfiguration{ |
|
|
|
}, |
|
|
|
"InprocWithPromises", |
|
|
|
CoreTestConfiguration{ |
|
|
|
FEATURE_MASK_DOES_NOT_SUPPORT_WRITE_BUFFERING | |
|
|
|
"Chttp2SslCredReloadTls12", |
|
|
|
FEATURE_MASK_IS_CALL_V3, |
|
|
|
FEATURE_MASK_IS_SECURE | FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS | |
|
|
|
nullptr, |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | FEATURE_MASK_IS_HTTP2 | |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
return std::make_unique<InprocFixture>(true); |
|
|
|
"foo.test.google.fr", |
|
|
|
}, |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
}, |
|
|
|
return std::make_unique<SslCredReloadFixture>(TLS1_2); |
|
|
|
CoreTestConfiguration{ |
|
|
|
}}, |
|
|
|
"Chttp2SslCredReloadTls12", |
|
|
|
CoreTestConfiguration{ |
|
|
|
FEATURE_MASK_IS_SECURE | |
|
|
|
"Chttp2SslCredReloadTls13", |
|
|
|
FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS | |
|
|
|
FEATURE_MASK_IS_SECURE | FEATURE_MASK_IS_HTTP2 | |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | FEATURE_MASK_IS_HTTP2 | |
|
|
|
FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS | |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | |
|
|
|
"foo.test.google.fr", |
|
|
|
FEATURE_MASK_DOES_NOT_SUPPORT_CLIENT_HANDSHAKE_COMPLETE_FIRST, |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
"foo.test.google.fr", |
|
|
|
return std::make_unique<SslCredReloadFixture>(TLS1_2); |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
}}, |
|
|
|
return std::make_unique<SslCredReloadFixture>(TLS1_3); |
|
|
|
CoreTestConfiguration{ |
|
|
|
}}, |
|
|
|
"Chttp2SslCredReloadTls13", |
|
|
|
CoreTestConfiguration{ |
|
|
|
FEATURE_MASK_IS_SECURE | FEATURE_MASK_IS_HTTP2 | |
|
|
|
// client: certificate watcher provider + async external verifier
|
|
|
|
FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS | |
|
|
|
// server: certificate watcher provider + async external verifier
|
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | |
|
|
|
// extra: TLS 1.3
|
|
|
|
FEATURE_MASK_DOES_NOT_SUPPORT_CLIENT_HANDSHAKE_COMPLETE_FIRST, |
|
|
|
"Chttp2CertWatcherProviderAsyncVerifierTls13", |
|
|
|
"foo.test.google.fr", |
|
|
|
kH2TLSFeatureMask | FEATURE_MASK_DO_NOT_FUZZ | |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
return std::make_unique<SslCredReloadFixture>(TLS1_3); |
|
|
|
"foo.test.google.fr", |
|
|
|
}}, |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
CoreTestConfiguration{ |
|
|
|
return std::make_unique<TlsFixture>( |
|
|
|
// client: certificate watcher provider + async external verifier
|
|
|
|
SecurityPrimitives::TlsVersion::V_13, |
|
|
|
// server: certificate watcher provider + async external verifier
|
|
|
|
SecurityPrimitives::ProviderType::FILE_PROVIDER, |
|
|
|
// extra: TLS 1.3
|
|
|
|
SecurityPrimitives::VerifierType::EXTERNAL_ASYNC_VERIFIER); |
|
|
|
"Chttp2CertWatcherProviderAsyncVerifierTls13", |
|
|
|
}, |
|
|
|
kH2TLSFeatureMask | FEATURE_MASK_DO_NOT_FUZZ | |
|
|
|
}, |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
CoreTestConfiguration{ |
|
|
|
"foo.test.google.fr", |
|
|
|
// client: certificate watcher provider + hostname verifier
|
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
// server: certificate watcher provider + sync external verifier
|
|
|
|
return std::make_unique<TlsFixture>( |
|
|
|
// extra: TLS 1.2
|
|
|
|
SecurityPrimitives::TlsVersion::V_13, |
|
|
|
"Chttp2CertWatcherProviderSyncVerifierTls12", |
|
|
|
SecurityPrimitives::ProviderType::FILE_PROVIDER, |
|
|
|
kH2TLSFeatureMask | FEATURE_MASK_DO_NOT_FUZZ | |
|
|
|
SecurityPrimitives::VerifierType::EXTERNAL_ASYNC_VERIFIER); |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
}, |
|
|
|
"foo.test.google.fr", |
|
|
|
}, |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
CoreTestConfiguration{ |
|
|
|
return std::make_unique<TlsFixture>( |
|
|
|
// client: certificate watcher provider + hostname verifier
|
|
|
|
SecurityPrimitives::TlsVersion::V_12, |
|
|
|
// server: certificate watcher provider + sync external verifier
|
|
|
|
SecurityPrimitives::ProviderType::FILE_PROVIDER, |
|
|
|
// extra: TLS 1.2
|
|
|
|
SecurityPrimitives::VerifierType::HOSTNAME_VERIFIER); |
|
|
|
"Chttp2CertWatcherProviderSyncVerifierTls12", |
|
|
|
}, |
|
|
|
kH2TLSFeatureMask | FEATURE_MASK_DO_NOT_FUZZ | |
|
|
|
}, |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
CoreTestConfiguration{ |
|
|
|
"foo.test.google.fr", |
|
|
|
// client: static data provider + sync external verifier
|
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
// server: static data provider + sync external verifier
|
|
|
|
return std::make_unique<TlsFixture>( |
|
|
|
// extra: TLS 1.2
|
|
|
|
SecurityPrimitives::TlsVersion::V_12, |
|
|
|
"Chttp2SimpleSslFullstack", |
|
|
|
SecurityPrimitives::ProviderType::FILE_PROVIDER, |
|
|
|
kH2TLSFeatureMask, |
|
|
|
SecurityPrimitives::VerifierType::HOSTNAME_VERIFIER); |
|
|
|
"foo.test.google.fr", |
|
|
|
}, |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
}, |
|
|
|
return std::make_unique<TlsFixture>( |
|
|
|
CoreTestConfiguration{ |
|
|
|
SecurityPrimitives::TlsVersion::V_12, |
|
|
|
// client: static data provider + sync external verifier
|
|
|
|
SecurityPrimitives::ProviderType::STATIC_PROVIDER, |
|
|
|
// server: static data provider + sync external verifier
|
|
|
|
SecurityPrimitives::VerifierType::EXTERNAL_SYNC_VERIFIER); |
|
|
|
// extra: TLS 1.2
|
|
|
|
}, |
|
|
|
"Chttp2SimpleSslFullstack", |
|
|
|
}, |
|
|
|
kH2TLSFeatureMask, |
|
|
|
CoreTestConfiguration{ |
|
|
|
"foo.test.google.fr", |
|
|
|
// client: static data provider + async external verifier
|
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
// server: static data provider + async external verifier
|
|
|
|
return std::make_unique<TlsFixture>( |
|
|
|
// extra: TLS 1.3
|
|
|
|
SecurityPrimitives::TlsVersion::V_12, |
|
|
|
"Chttp2StaticProviderAsyncVerifierTls13", |
|
|
|
SecurityPrimitives::ProviderType::STATIC_PROVIDER, |
|
|
|
kH2TLSFeatureMask | FEATURE_MASK_DO_NOT_FUZZ | |
|
|
|
SecurityPrimitives::VerifierType::EXTERNAL_SYNC_VERIFIER); |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
}, |
|
|
|
"foo.test.google.fr", |
|
|
|
}, |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
CoreTestConfiguration{ |
|
|
|
return std::make_unique<TlsFixture>( |
|
|
|
// client: static data provider + async external verifier
|
|
|
|
SecurityPrimitives::TlsVersion::V_13, |
|
|
|
// server: static data provider + async external verifier
|
|
|
|
SecurityPrimitives::ProviderType::STATIC_PROVIDER, |
|
|
|
// extra: TLS 1.3
|
|
|
|
SecurityPrimitives::VerifierType::EXTERNAL_ASYNC_VERIFIER); |
|
|
|
"Chttp2StaticProviderAsyncVerifierTls13", |
|
|
|
}, |
|
|
|
kH2TLSFeatureMask | FEATURE_MASK_DO_NOT_FUZZ | |
|
|
|
}, |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
|
|
|
|
"foo.test.google.fr", |
|
|
|
|
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
|
|
|
|
return std::make_unique<TlsFixture>( |
|
|
|
|
|
|
|
SecurityPrimitives::TlsVersion::V_13, |
|
|
|
|
|
|
|
SecurityPrimitives::ProviderType::STATIC_PROVIDER, |
|
|
|
|
|
|
|
SecurityPrimitives::VerifierType::EXTERNAL_ASYNC_VERIFIER); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
#ifdef GPR_LINUX |
|
|
|
#ifdef GPR_LINUX |
|
|
|
CoreTestConfiguration{ |
|
|
|
CoreTestConfiguration{ |
|
|
|
"Chttp2FullstackUdsAbstractNamespace", |
|
|
|
"Chttp2FullstackUdsAbstractNamespace", |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | FEATURE_MASK_IS_HTTP2 | |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | FEATURE_MASK_IS_HTTP2 | |
|
|
|
FEATURE_MASK_DO_NOT_FUZZ | |
|
|
|
FEATURE_MASK_DO_NOT_FUZZ | |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
nullptr, |
|
|
|
nullptr, |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
gpr_timespec now = gpr_now(GPR_CLOCK_REALTIME); |
|
|
|
gpr_timespec now = gpr_now(GPR_CLOCK_REALTIME); |
|
|
|
return std::make_unique<InsecureFixture>(absl::StrFormat( |
|
|
|
return std::make_unique<InsecureFixture>(absl::StrFormat( |
|
|
|
"unix-abstract:grpc_fullstack_test.%d.%" PRId64 ".%" PRId32 |
|
|
|
"unix-abstract:grpc_fullstack_test.%d.%" PRId64 ".%" PRId32 |
|
|
|
".%" PRId64, |
|
|
|
".%" PRId64, |
|
|
|
getpid(), now.tv_sec, now.tv_nsec, |
|
|
|
getpid(), now.tv_sec, now.tv_nsec, |
|
|
|
unique.fetch_add(1, std::memory_order_relaxed))); |
|
|
|
unique.fetch_add(1, std::memory_order_relaxed))); |
|
|
|
}}, |
|
|
|
}}, |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#ifdef GRPC_HAVE_UNIX_SOCKET |
|
|
|
#ifdef GRPC_HAVE_UNIX_SOCKET |
|
|
|
CoreTestConfiguration{ |
|
|
|
CoreTestConfiguration{ |
|
|
|
"Chttp2FullstackUds", |
|
|
|
"Chttp2FullstackUds", |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | FEATURE_MASK_IS_HTTP2 | |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | FEATURE_MASK_IS_HTTP2 | |
|
|
|
FEATURE_MASK_DO_NOT_FUZZ, |
|
|
|
FEATURE_MASK_DO_NOT_FUZZ, |
|
|
|
nullptr, |
|
|
|
nullptr, |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
[](const ChannelArgs&, const ChannelArgs&) { |
|
|
|
gpr_timespec now = gpr_now(GPR_CLOCK_REALTIME); |
|
|
|
gpr_timespec now = gpr_now(GPR_CLOCK_REALTIME); |
|
|
|
return std::make_unique<InsecureFixture>(absl::StrFormat( |
|
|
|
return std::make_unique<InsecureFixture>(absl::StrFormat( |
|
|
|
"unix:%s" |
|
|
|
"unix:%s" |
|
|
|
"grpc_fullstack_test.%d.%" PRId64 ".%" PRId32 ".%" PRId64 |
|
|
|
"grpc_fullstack_test.%d.%" PRId64 ".%" PRId32 ".%" PRId64 |
|
|
|
".%" PRId64, |
|
|
|
".%" PRId64, |
|
|
|
temp_dir, getpid(), now.tv_sec, now.tv_nsec, |
|
|
|
temp_dir, getpid(), now.tv_sec, now.tv_nsec, |
|
|
|
unique.fetch_add(1, std::memory_order_relaxed), Rand())); |
|
|
|
unique.fetch_add(1, std::memory_order_relaxed), Rand())); |
|
|
|
}}, |
|
|
|
}}, |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
// TODO(ctiller): these got inadvertently disabled when the project
|
|
|
|
// TODO(ctiller): these got inadvertently disabled when the project
|
|
|
|
// switched to Bazel in 2016, and have not been re-enabled since and are now
|
|
|
|
// switched to Bazel in 2016, and have not been re-enabled since and are now
|
|
|
@ -983,30 +972,27 @@ std::vector<CoreTestConfiguration> DefaultConfigs() { |
|
|
|
}}, |
|
|
|
}}, |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#ifdef GRPC_POSIX_WAKEUP_FD |
|
|
|
#ifdef GRPC_POSIX_WAKEUP_FD |
|
|
|
CoreTestConfiguration{ |
|
|
|
CoreTestConfiguration{ |
|
|
|
"Chttp2FullstackWithPipeWakeup", |
|
|
|
"Chttp2FullstackWithPipeWakeup", |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | FEATURE_MASK_IS_HTTP2 | |
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | FEATURE_MASK_IS_HTTP2 | |
|
|
|
FEATURE_MASK_DO_NOT_FUZZ | |
|
|
|
FEATURE_MASK_DO_NOT_FUZZ | |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
FEATURE_MASK_EXCLUDE_FROM_EXPERIMENT_RUNS, |
|
|
|
nullptr, |
|
|
|
|
|
|
|
[](const ChannelArgs& /*client_args*/, |
|
|
|
|
|
|
|
const ChannelArgs& /*server_args*/) { |
|
|
|
|
|
|
|
return std::make_unique<InsecureFixtureWithPipeForWakeupFd>(); |
|
|
|
|
|
|
|
}}, |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
CoreTestConfiguration { |
|
|
|
|
|
|
|
"ChaoticGoodFullStack", |
|
|
|
|
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | |
|
|
|
|
|
|
|
FEATURE_MASK_DOES_NOT_SUPPORT_RETRY | |
|
|
|
|
|
|
|
FEATURE_MASK_DOES_NOT_SUPPORT_WRITE_BUFFERING | |
|
|
|
|
|
|
|
FEATURE_MASK_IS_CALL_V3, |
|
|
|
|
|
|
|
nullptr, |
|
|
|
nullptr, |
|
|
|
[](const ChannelArgs& /*client_args*/, |
|
|
|
[](const ChannelArgs& /*client_args*/, |
|
|
|
const ChannelArgs& /*server_args*/) { |
|
|
|
const ChannelArgs& /*server_args*/) { |
|
|
|
return std::make_unique<ChaoticGoodFixture>(); |
|
|
|
return std::make_unique<InsecureFixtureWithPipeForWakeupFd>(); |
|
|
|
} |
|
|
|
}}, |
|
|
|
} |
|
|
|
#endif |
|
|
|
}; |
|
|
|
CoreTestConfiguration{"ChaoticGoodFullStack", |
|
|
|
|
|
|
|
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL | |
|
|
|
|
|
|
|
FEATURE_MASK_DOES_NOT_SUPPORT_RETRY | |
|
|
|
|
|
|
|
FEATURE_MASK_DOES_NOT_SUPPORT_WRITE_BUFFERING | |
|
|
|
|
|
|
|
FEATURE_MASK_IS_CALL_V3, |
|
|
|
|
|
|
|
nullptr, |
|
|
|
|
|
|
|
[](const ChannelArgs& /*client_args*/, |
|
|
|
|
|
|
|
const ChannelArgs& /*server_args*/) { |
|
|
|
|
|
|
|
return std::make_unique<ChaoticGoodFixture>(); |
|
|
|
|
|
|
|
}}}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
std::vector<CoreTestConfiguration> AllConfigs() { |
|
|
|
std::vector<CoreTestConfiguration> AllConfigs() { |
|
|
|