| 1 |
# Copyright 2017 gRPC authors. |
| 2 |
# |
| 3 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
# you may not use this file except in compliance with the License. |
| 5 |
# You may obtain a copy of the License at |
| 6 |
# |
| 7 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
# |
| 9 |
# Unless required by applicable law or agreed to in writing, software |
| 10 |
# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
# See the License for the specific language governing permissions and |
| 13 |
# limitations under the License. |
| 14 |
|
| 15 |
load("//bazel:grpc_build_system.bzl", "grpc_cc_test", "grpc_package") |
| 16 |
|
| 17 |
licenses(["notice"]) |
| 18 |
|
| 19 |
grpc_package(name = "test/cpp/client") |
| 20 |
|
| 21 |
grpc_cc_test( |
| 22 |
name = "credentials_test", |
| 23 |
srcs = ["credentials_test.cc"], |
| 24 |
data = [ |
| 25 |
"//src/core/tsi/test_creds:ca.pem", |
| 26 |
"//src/core/tsi/test_creds:server1.key", |
| 27 |
"//src/core/tsi/test_creds:server1.pem", |
| 28 |
], |
| 29 |
external_deps = [ |
| 30 |
"gtest", |
| 31 |
], |
| 32 |
deps = [ |
| 33 |
"//:gpr", |
| 34 |
"//:grpc", |
| 35 |
"//:grpc++", |
| 36 |
"//test/core/util:grpc_test_util", |
| 37 |
"//test/cpp/util:tls_test_utils", |
| 38 |
], |
| 39 |
) |
| 40 |
|
| 41 |
grpc_cc_test( |
| 42 |
name = "client_channel_stress_test", |
| 43 |
srcs = ["client_channel_stress_test.cc"], |
| 44 |
# TODO(jtattermusch): test fails frequently on Win RBE, but passes locally |
| 45 |
# reenable the tests once it works reliably on Win RBE. |
| 46 |
# TODO(roth): Test marked as manual for now due to variable duration |
| 47 |
# problem triggered by https://github.com/grpc/grpc/pull/22481. |
| 48 |
# Once we figure out the problem, either re-enable or just decide to |
| 49 |
# remove this test. Tracked internally in b/153136407. |
| 50 |
tags = [ |
| 51 |
"manual", |
| 52 |
"no_test_android", # fails on android due to "Too many open files". |
| 53 |
"no_windows", |
| 54 |
], |
| 55 |
deps = [ |
| 56 |
"//:exec_ctx", |
| 57 |
"//:gpr", |
| 58 |
"//:grpc", |
| 59 |
"//:grpc++", |
| 60 |
"//:grpc_resolver_fake", |
| 61 |
"//src/proto/grpc/lb/v1:load_balancer_proto", |
| 62 |
"//src/proto/grpc/testing:echo_messages_proto", |
| 63 |
"//src/proto/grpc/testing:echo_proto", |
| 64 |
"//src/proto/grpc/testing/duplicate:echo_duplicate_proto", |
| 65 |
"//test/core/util:grpc_test_util", |
| 66 |
"//test/cpp/end2end:test_service_impl", |
| 67 |
"//test/cpp/util:test_util", |
| 68 |
], |
| 69 |
) |
| 70 |
|
| 71 |
grpc_cc_test( |
| 72 |
name = "destroy_grpclb_channel_with_active_connect_stress_test", |
| 73 |
srcs = ["destroy_grpclb_channel_with_active_connect_stress_test.cc"], |
| 74 |
external_deps = ["gtest"], |
| 75 |
tags = [ |
| 76 |
"nomsan", # 4/22/22 - seems to tickle the RBE compiler badly causing timeouts |
| 77 |
], |
| 78 |
deps = [ |
| 79 |
"//:gpr", |
| 80 |
"//:grpc", |
| 81 |
"//:grpc++", |
| 82 |
"//:grpc_resolver_fake", |
| 83 |
"//test/core/util:grpc_test_util", |
| 84 |
"//test/cpp/util:test_util", |
| 85 |
], |
| 86 |
) |