aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio_tests/tests/interop/BUILD.bazel
blob: a39f30d32ab0bb2e41d83919887218dad568b18e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
load("@grpc_python_dependencies//:requirements.bzl", "requirement")

package(default_visibility = ["//visibility:public"])

py_library(
    name = "_intraop_test_case",
    srcs = ["_intraop_test_case.py"],
    deps = [
        ":methods",
    ],
    imports=["../../",],
)

py_library(
    name = "client",
    srcs = ["client.py"],
    deps = [
        "//src/python/grpcio/grpc:grpcio",
        ":methods",
        ":resources",
        "//src/proto/grpc/testing:py_test_proto",
        requirement('google-auth'),
    ],
    imports=["../../",],
)

py_library(
    name = "methods",
    srcs = ["methods.py"],
    deps = [
        "//src/python/grpcio/grpc:grpcio",
        "//src/proto/grpc/testing:py_empty_proto",
        "//src/proto/grpc/testing:py_messages_proto",
        "//src/proto/grpc/testing:py_test_proto",
        requirement('google-auth'),
        requirement('requests'),
        requirement('enum34'),
    ],
    imports=["../../",],
)

py_library(
    name = "resources",
    srcs = ["resources.py"],
    data = [
        "//src/python/grpcio_tests/tests/interop/credentials",
    ],
)

py_library(
    name = "server",
    srcs = ["server.py"],
    deps = [
        "//src/python/grpcio/grpc:grpcio",
        ":methods",
        ":resources",
        "//src/python/grpcio_tests/tests/unit:test_common",
        "//src/proto/grpc/testing:py_test_proto",
    ],
    imports=["../../",],
)

py_test(
    name="_insecure_intraop_test",
    size="small",
    srcs=["_insecure_intraop_test.py",],
    main="_insecure_intraop_test.py",
    deps=[
        "//src/python/grpcio/grpc:grpcio",
        ":_intraop_test_case",
        ":methods",
        ":server",
        "//src/python/grpcio_tests/tests/unit:test_common",
        "//src/proto/grpc/testing:py_test_proto",
    ],
    imports=["../../",],
    data=[
        "//src/python/grpcio_tests/tests/unit/credentials",
    ],
)

py_test(
    name="_secure_intraop_test",
    size="small",
    srcs=["_secure_intraop_test.py",],
    main="_secure_intraop_test.py",
    deps=[
        "//src/python/grpcio/grpc:grpcio",
        ":_intraop_test_case",
        ":methods",
        ":server",
        "//src/python/grpcio_tests/tests/unit:test_common",
        "//src/proto/grpc/testing:py_test_proto",
    ],
    imports=["../../",],
)