xref: /aosp_15_r20/external/grpc-grpc/src/python/grpcio_tests/tests/observability/BUILD.bazel (revision cc02d7e222339f7a4f6ba5f422e6413f4bd931f2)
1# Copyright 2023 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.
14package(default_visibility = ["//visibility:public"])
15
16py_library(
17    name = "test_server",
18    srcs = ["_test_server.py"],
19)
20
21py_library(
22    name = "_from_observability_import_star",
23    srcs = ["_from_observability_import_star.py"],
24)
25
26py_test(
27    name = "_open_telemetry_observability_test",
28    size = "small",
29    srcs = ["_open_telemetry_observability_test.py"],
30    imports = ["../../"],
31    main = "_open_telemetry_observability_test.py",
32    deps = [
33        ":test_server",
34        "//src/python/grpcio/grpc:grpcio",
35        "//src/python/grpcio_observability/grpc_observability:pyobservability",
36        "//src/python/grpcio_tests/tests/testing",
37    ],
38)
39
40py_test(
41    name = "_observability_api_test",
42    size = "small",
43    srcs = ["_observability_api_test.py"],
44    imports = ["../../"],
45    main = "_observability_api_test.py",
46    deps = [
47        ":_from_observability_import_star",
48        "//src/python/grpcio/grpc:grpcio",
49        "//src/python/grpcio_observability/grpc_observability:pyobservability",
50        "//src/python/grpcio_tests/tests/testing",
51    ],
52)
53