|
|
@ -1280,6 +1280,8 @@ TEST_P(ProxyEnd2endTest, RpcDeadlineExpires) { |
|
|
|
EchoResponse response; |
|
|
|
EchoResponse response; |
|
|
|
request.set_message("Hello"); |
|
|
|
request.set_message("Hello"); |
|
|
|
request.mutable_param()->set_skip_cancelled_check(true); |
|
|
|
request.mutable_param()->set_skip_cancelled_check(true); |
|
|
|
|
|
|
|
// Let server sleep for 2 ms first to guarantee expiry
|
|
|
|
|
|
|
|
request.mutable_param()->set_server_sleep_us(2 * 1000); |
|
|
|
|
|
|
|
|
|
|
|
ClientContext context; |
|
|
|
ClientContext context; |
|
|
|
std::chrono::system_clock::time_point deadline = |
|
|
|
std::chrono::system_clock::time_point deadline = |
|
|
@ -1407,6 +1409,10 @@ TEST_P(ProxyEnd2endTest, HugeResponse) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
TEST_P(ProxyEnd2endTest, Peer) { |
|
|
|
TEST_P(ProxyEnd2endTest, Peer) { |
|
|
|
|
|
|
|
// Peer is not meaningful for inproc
|
|
|
|
|
|
|
|
if (GetParam().inproc) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
ResetStub(); |
|
|
|
ResetStub(); |
|
|
|
EchoRequest request; |
|
|
|
EchoRequest request; |
|
|
|
EchoResponse response; |
|
|
|
EchoResponse response; |
|
|
@ -1775,11 +1781,10 @@ std::vector<TestScenario> CreateTestScenarios(bool use_proxy, |
|
|
|
credentials_types.push_back(kInsecureCredentialsType); |
|
|
|
credentials_types.push_back(kInsecureCredentialsType); |
|
|
|
} |
|
|
|
} |
|
|
|
GPR_ASSERT(!credentials_types.empty()); |
|
|
|
GPR_ASSERT(!credentials_types.empty()); |
|
|
|
for (auto it = credentials_types.begin(); it != credentials_types.end(); |
|
|
|
for (const auto& cred : credentials_types) { |
|
|
|
++it) { |
|
|
|
scenarios.emplace_back(false, false, cred); |
|
|
|
scenarios.emplace_back(false, false, *it); |
|
|
|
|
|
|
|
if (use_proxy) { |
|
|
|
if (use_proxy) { |
|
|
|
scenarios.emplace_back(true, false, *it); |
|
|
|
scenarios.emplace_back(true, false, cred); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (test_inproc && insec_ok()) { |
|
|
|
if (test_inproc && insec_ok()) { |
|
|
@ -1798,7 +1803,7 @@ INSTANTIATE_TEST_CASE_P(End2endServerTryCancel, End2endServerTryCancelTest, |
|
|
|
|
|
|
|
|
|
|
|
INSTANTIATE_TEST_CASE_P(ProxyEnd2end, ProxyEnd2endTest, |
|
|
|
INSTANTIATE_TEST_CASE_P(ProxyEnd2end, ProxyEnd2endTest, |
|
|
|
::testing::ValuesIn(CreateTestScenarios(true, true, |
|
|
|
::testing::ValuesIn(CreateTestScenarios(true, true, |
|
|
|
true, false))); |
|
|
|
true, true))); |
|
|
|
|
|
|
|
|
|
|
|
INSTANTIATE_TEST_CASE_P(SecureEnd2end, SecureEnd2endTest, |
|
|
|
INSTANTIATE_TEST_CASE_P(SecureEnd2end, SecureEnd2endTest, |
|
|
|
::testing::ValuesIn(CreateTestScenarios(false, false, |
|
|
|
::testing::ValuesIn(CreateTestScenarios(false, false, |
|
|
|