BUILD 2.8 KB

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