Debian Codegraph @

test/cpp/server/BUILD

raw
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/server")
20
21 grpc_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
36 grpc_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
51 grpc_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
66 grpc_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 "//test/core/util:grpc_test_util",
82 "//test/cpp/util:tls_test_utils",
83 ],
84 )
85
86 grpc_cc_test(
87 name = "authorization_policy_provider_test",
88 srcs = ["authorization_policy_provider_test.cc"],
89 data = [
90 "//test/core/security/authorization/test_policies:invalid_policy.json",
91 "//test/core/security/authorization/test_policies:valid_policy_1.json",
92 "//test/core/security/authorization/test_policies:valid_policy_2.json",
93 ],
94 external_deps = [
95 "gtest",
96 ],
97 # Test seems to be failing on iOS, but shouldn't be needed there anyway,
98 # since we don't support servers on iOS.
99 tags = ["no_test_ios"],
100 deps = [
101 "//:gpr",
102 "//:grpc",
103 "//:grpc++",
104 "//:grpc++_authorization_provider",
105 "//test/core/util:grpc_test_util",
106 ],
107 )