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 15load("//bazel:grpc_build_system.bzl", "grpc_cc_test", "grpc_package") 16 17licenses(["notice"]) 18 19grpc_package(name = "test/cpp/server") 20 21grpc_cc_test( 22 name = "server_builder_test", 23 srcs = ["server_builder_test.cc"], 24 external_deps = [ 25 "gtest", 26 ], 27 tags = ["no_windows"], 28 deps = [ 29 "//:grpc++_unsecure", 30 "//src/proto/grpc/testing:echo_proto", 31 "//test/core/util:grpc_test_util_base", 32 "//test/core/util:grpc_test_util_unsecure", 33 ], 34) 35 36grpc_cc_test( 37 name = "server_builder_with_socket_mutator_test", 38 srcs = ["server_builder_with_socket_mutator_test.cc"], 39 external_deps = [ 40 "gtest", 41 ], 42 tags = ["no_windows"], 43 deps = [ 44 "//:grpc++_unsecure", 45 "//src/proto/grpc/testing:echo_proto", 46 "//test/core/util:grpc_test_util_base", 47 "//test/core/util:grpc_test_util_unsecure", 48 ], 49) 50 51grpc_cc_test( 52 name = "server_request_call_test", 53 srcs = ["server_request_call_test.cc"], 54 external_deps = [ 55 "gtest", 56 ], 57 tags = ["no_windows"], 58 deps = [ 59 "//:grpc++_unsecure", 60 "//src/proto/grpc/testing:echo_proto", 61 "//test/core/util:grpc_test_util_base", 62 "//test/core/util:grpc_test_util_unsecure", 63 ], 64) 65 66grpc_cc_test( 67 name = "credentials_test", 68 srcs = ["credentials_test.cc"], 69 data = [ 70 "//src/core/tsi/test_creds:ca.pem", 71 "//src/core/tsi/test_creds:server1.key", 72 "//src/core/tsi/test_creds:server1.pem", 73 ], 74 external_deps = [ 75 "gtest", 76 ], 77 deps = [ 78 "//:gpr", 79 "//:grpc", 80 "//:grpc++", 81 "//:grpc++_base", 82 "//test/core/util:grpc_test_util", 83 "//test/cpp/util:tls_test_utils", 84 ], 85) 86 87grpc_cc_test( 88 name = "authorization_policy_provider_test", 89 srcs = ["authorization_policy_provider_test.cc"], 90 data = [ 91 "//test/core/security/authorization/test_policies:invalid_policy.json", 92 "//test/core/security/authorization/test_policies:valid_policy_1.json", 93 "//test/core/security/authorization/test_policies:valid_policy_2.json", 94 ], 95 external_deps = [ 96 "gtest", 97 ], 98 # Test seems to be failing on iOS, but shouldn't be needed there anyway, 99 # since we don't support servers on iOS. 100 tags = ["no_test_ios"], 101 deps = [ 102 "//:gpr", 103 "//:grpc", 104 "//:grpc++", 105 "//:grpc++_authorization_provider", 106 "//test/core/util:grpc_test_util", 107 ], 108) 109