1# Copyright 2021 The 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. 14py_binary( 15 name = "xds_interop_client", 16 srcs = ["xds_interop_client.py"], 17 python_version = "PY3", 18 deps = [ 19 "//src/proto/grpc/testing:empty_py_pb2", 20 "//src/proto/grpc/testing:py_messages_proto", 21 "//src/proto/grpc/testing:py_test_proto", 22 "//src/proto/grpc/testing:test_py_pb2_grpc", 23 "//src/python/grpcio/grpc:grpcio", 24 "//src/python/grpcio_admin/grpc_admin", 25 "//src/python/grpcio_channelz/grpc_channelz/v1:grpc_channelz", 26 ], 27) 28 29py_binary( 30 name = "xds_interop_server", 31 srcs = ["xds_interop_server.py"], 32 python_version = "PY3", 33 deps = [ 34 "//src/proto/grpc/testing:empty_py_pb2", 35 "//src/proto/grpc/testing:py_messages_proto", 36 "//src/proto/grpc/testing:py_test_proto", 37 "//src/proto/grpc/testing:test_py_pb2_grpc", 38 "//src/python/grpcio/grpc:grpcio", 39 "//src/python/grpcio_channelz/grpc_channelz/v1:grpc_channelz", 40 "//src/python/grpcio_health_checking/grpc_health/v1:grpc_health", 41 "//src/python/grpcio_reflection/grpc_reflection/v1alpha:grpc_reflection", 42 ], 43) 44 45py_test( 46 name = "xds_interop_client_test", 47 srcs = ["xds_interop_client_test.py"], 48 imports = ["."], 49 python_version = "PY3", 50 deps = [ 51 ":xds_interop_client", 52 ":xds_interop_server", 53 "//src/proto/grpc/testing:empty_py_pb2", 54 "//src/proto/grpc/testing:py_messages_proto", 55 "//src/proto/grpc/testing:py_test_proto", 56 "//src/proto/grpc/testing:test_py_pb2_grpc", 57 "//src/python/grpcio_tests/tests/unit/framework/common", 58 ], 59) 60