• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_library", "grpc_cc_test", "grpc_cc_binary", "grpc_package")
16
17licenses(["notice"])  # Apache v2
18
19grpc_package(name = "test/core/security")
20
21load("//test/core/util:grpc_fuzzer.bzl", "grpc_fuzzer")
22
23grpc_fuzzer(
24    name = "alts_credentials_fuzzer",
25    srcs = ["alts_credentials_fuzzer.cc"],
26    language = "C++",
27    corpus = "corpus/alts_credentials_corpus",
28    deps = [
29        "//:gpr",
30        "//:grpc",
31        "//test/core/util:grpc_test_util",
32    ],
33)
34
35grpc_fuzzer(
36    name = "ssl_server_fuzzer",
37    srcs = ["ssl_server_fuzzer.cc"],
38    language = "C++",
39    corpus = "corpus/ssl_server_corpus",
40    deps = [
41        "//:gpr",
42        "//:grpc",
43        "//test/core/end2end:ssl_test_data",
44        "//test/core/util:grpc_test_util",
45    ],
46)
47
48grpc_cc_library(
49    name = "oauth2_utils",
50    srcs = ["oauth2_utils.cc"],
51    hdrs = ["oauth2_utils.h"],
52    language = "C++",
53    deps = ["//:grpc"],
54    visibility = ["//test/cpp:__subpackages__"],
55)
56
57grpc_cc_test(
58    name = "auth_context_test",
59    srcs = ["auth_context_test.cc"],
60    language = "C++",
61    deps = [
62        "//:gpr",
63        "//:grpc",
64        "//test/core/util:gpr_test_util",
65        "//test/core/util:grpc_test_util",
66    ],
67)
68
69grpc_cc_test(
70    name = "credentials_test",
71    srcs = ["credentials_test.cc"],
72    language = "C++",
73    deps = [
74        "//:gpr",
75        "//:grpc",
76        "//test/core/util:gpr_test_util",
77        "//test/core/util:grpc_test_util",
78    ],
79)
80
81grpc_cc_test(
82    name = "json_token_test",
83    srcs = ["json_token_test.cc"],
84    language = "C++",
85    deps = [
86        "//:gpr",
87        "//:grpc",
88        "//test/core/util:gpr_test_util",
89        "//test/core/util:grpc_test_util",
90    ],
91)
92
93grpc_cc_test(
94    name = "jwt_verifier_test",
95    srcs = ["jwt_verifier_test.cc"],
96    language = "C++",
97    deps = [
98        "//:gpr",
99        "//:grpc",
100        "//test/core/util:gpr_test_util",
101        "//test/core/util:grpc_test_util",
102    ],
103)
104
105
106grpc_cc_test(
107    name = "secure_endpoint_test",
108    srcs = ["secure_endpoint_test.cc"],
109    language = "C++",
110    deps = [
111        "//:gpr",
112        "//:grpc",
113        "//test/core/iomgr:endpoint_tests",
114        "//test/core/util:gpr_test_util",
115        "//test/core/util:grpc_test_util",
116    ],
117)
118
119grpc_cc_test(
120    name = "security_connector_test",
121    srcs = ["security_connector_test.cc"],
122    language = "C++",
123    deps = [
124        "//:gpr",
125        "//:grpc",
126        "//test/core/util:gpr_test_util",
127        "//test/core/util:grpc_test_util",
128    ],
129)
130
131grpc_cc_test(
132    name = "linux_system_roots_test",
133    srcs = ["linux_system_roots_test.cc"],
134    data = [
135        "//test/core/security/etc:bundle.pem",
136        "//test/core/security/etc:test_roots/cert1.pem",
137        "//test/core/security/etc:test_roots/cert2.pem",
138        "//test/core/security/etc:test_roots/cert3.pem",
139    ],
140    language = "C++",
141    external_deps = [
142        "gtest",
143    ],
144    deps = [
145        "//:gpr",
146        "//:grpc",
147        "//test/core/util:gpr_test_util",
148        "//test/core/util:grpc_test_util",
149    ],
150)
151
152grpc_cc_test(
153    name = "ssl_credentials_test",
154    srcs = ["ssl_credentials_test.cc"],
155    language = "C++",
156    deps = [
157        "//:gpr",
158        "//:grpc",
159        "//test/core/util:gpr_test_util",
160        "//test/core/util:grpc_test_util",
161    ]
162)
163
164grpc_cc_binary(
165    name = "create_jwt",
166    srcs = ["create_jwt.cc"],
167    language = "C++",
168    deps = [
169        "//:gpr",
170        "//:grpc",
171        "//test/core/util:grpc_test_util",
172    ],
173)
174
175grpc_cc_binary(
176    name = "fetch_oauth2",
177    srcs = ["fetch_oauth2.cc"],
178    language = "C++",
179    deps = [
180        ":oauth2_utils",
181        "//:gpr",
182        "//:grpc",
183        "//test/core/util:grpc_test_util",
184    ],
185)
186
187grpc_cc_binary(
188    name = "verify_jwt",
189    srcs = ["verify_jwt.cc"],
190    language = "C++",
191    deps = [
192        "//:gpr",
193        "//:grpc",
194        "//test/core/util:grpc_test_util",
195    ],
196)
197
198grpc_cc_test(
199    name = "check_gcp_environment_linux_test",
200    srcs = ["check_gcp_environment_linux_test.cc"],
201    language = "C++",
202    deps = [
203        "//:alts_util",
204        "//:gpr",
205        "//:gpr_base",
206        "//:grpc",
207        "//test/core/util:gpr_test_util",
208    ],
209)
210
211grpc_cc_test(
212    name = "check_gcp_environment_windows_test",
213    srcs = ["check_gcp_environment_windows_test.cc"],
214    language = "C++",
215    deps = [
216        "//:alts_util",
217        "//:gpr",
218        "//:gpr_base",
219        "//:grpc",
220        "//test/core/util:gpr_test_util",
221    ],
222)
223
224grpc_cc_test(
225    name = "grpc_alts_credentials_options_test",
226    srcs = ["grpc_alts_credentials_options_test.cc"],
227    language = "C++",
228    deps = [
229        "//:alts_util",
230        "//:gpr",
231        "//:grpc",
232        "//test/core/util:gpr_test_util",
233    ],
234)
235
236grpc_cc_test(
237    name = "alts_security_connector_test",
238    srcs = ["alts_security_connector_test.cc"],
239    language = "C++",
240    deps = [
241        "//:gpr",
242        "//:grpc",
243        "//:grpc_base_c",
244        "//:grpc_secure",
245        "//:tsi",
246        "//:tsi_interface",
247        "//test/core/util:gpr_test_util",
248    ],
249)
250