updated stress test with new tests cases

pull/6839/head
David Garcia Quintas 9 years ago
parent dc44e17950
commit 3c65d24fab
  1. 14
      test/cpp/interop/stress_interop_client.cc
  2. 36
      test/cpp/interop/stress_interop_client.h

@ -138,8 +138,12 @@ bool StressTestInteropClient::RunTest(TestCaseType test_case) {
is_success = interop_client_->DoLargeUnary(); is_success = interop_client_->DoLargeUnary();
break; break;
} }
case LARGE_COMPRESSED_UNARY: { case CLIENT_COMPRESSED_UNARY: {
is_success = interop_client_->DoLargeCompressedUnary(); is_success = interop_client_->DoClientCompressedUnary();
break;
}
case CLIENT_COMPRESSED_STREAMING: {
is_success = interop_client_->DoClientCompressedStreaming();
break; break;
} }
case CLIENT_STREAMING: { case CLIENT_STREAMING: {
@ -150,8 +154,12 @@ bool StressTestInteropClient::RunTest(TestCaseType test_case) {
is_success = interop_client_->DoResponseStreaming(); is_success = interop_client_->DoResponseStreaming();
break; break;
} }
case SERVER_COMPRESSED_UNARY: {
is_success = interop_client_->DoServerCompressedUnary();
break;
}
case SERVER_COMPRESSED_STREAMING: { case SERVER_COMPRESSED_STREAMING: {
is_success = interop_client_->DoResponseCompressedStreaming(); is_success = interop_client_->DoServerCompressedStreaming();
break; break;
} }
case SLOW_CONSUMER: { case SLOW_CONSUMER: {

@ -51,29 +51,33 @@ using std::vector;
enum TestCaseType { enum TestCaseType {
UNKNOWN_TEST = -1, UNKNOWN_TEST = -1,
EMPTY_UNARY = 0, EMPTY_UNARY,
LARGE_UNARY = 1, LARGE_UNARY,
LARGE_COMPRESSED_UNARY = 2, CLIENT_COMPRESSED_UNARY,
CLIENT_STREAMING = 3, CLIENT_COMPRESSED_STREAMING,
SERVER_STREAMING = 4, CLIENT_STREAMING,
SERVER_COMPRESSED_STREAMING = 5, SERVER_STREAMING,
SLOW_CONSUMER = 6, SERVER_COMPRESSED_UNARY,
HALF_DUPLEX = 7, SERVER_COMPRESSED_STREAMING,
PING_PONG = 8, SLOW_CONSUMER,
CANCEL_AFTER_BEGIN = 9, HALF_DUPLEX,
CANCEL_AFTER_FIRST_RESPONSE = 10, PING_PONG,
TIMEOUT_ON_SLEEPING_SERVER = 11, CANCEL_AFTER_BEGIN,
EMPTY_STREAM = 12, CANCEL_AFTER_FIRST_RESPONSE,
STATUS_CODE_AND_MESSAGE = 13, TIMEOUT_ON_SLEEPING_SERVER,
CUSTOM_METADATA = 14 EMPTY_STREAM,
STATUS_CODE_AND_MESSAGE,
CUSTOM_METADATA
}; };
const vector<pair<TestCaseType, grpc::string>> kTestCaseList = { const vector<pair<TestCaseType, grpc::string>> kTestCaseList = {
{EMPTY_UNARY, "empty_unary"}, {EMPTY_UNARY, "empty_unary"},
{LARGE_UNARY, "large_unary"}, {LARGE_UNARY, "large_unary"},
{LARGE_COMPRESSED_UNARY, "large_compressed_unary"}, {CLIENT_COMPRESSED_UNARY, "client_compressed_unary"},
{CLIENT_COMPRESSED_STREAMING, "client_compressed_streaming"},
{CLIENT_STREAMING, "client_streaming"}, {CLIENT_STREAMING, "client_streaming"},
{SERVER_STREAMING, "server_streaming"}, {SERVER_STREAMING, "server_streaming"},
{SERVER_COMPRESSED_UNARY, "server_compressed_unary"},
{SERVER_COMPRESSED_STREAMING, "server_compressed_streaming"}, {SERVER_COMPRESSED_STREAMING, "server_compressed_streaming"},
{SLOW_CONSUMER, "slow_consumer"}, {SLOW_CONSUMER, "slow_consumer"},
{HALF_DUPLEX, "half_duplex"}, {HALF_DUPLEX, "half_duplex"},

Loading…
Cancel
Save