File: BUILD.bazel

package info (click to toggle)
gitlab-agent 16.11.5-1
  • links: PTS, VCS
  • area: contrib
  • in suites: experimental
  • size: 7,072 kB
  • sloc: makefile: 193; sh: 55; ruby: 3
file content (52 lines) | stat: -rw-r--r-- 1,684 bytes parent folder | download
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
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//build:build.bzl", "go_custom_test")

go_library(
    name = "tunclient",
    srcs = [
        "connection.go",
        "connection_manager.go",
    ],
    importpath = "gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16/internal/tunnel/tunclient",
    visibility = ["//:__subpackages__"],
    deps = [
        "//internal/tool/grpctool",
        "//internal/tool/logz",
        "//internal/tool/retry",
        "//internal/tunnel/info",
        "//internal/tunnel/rpc",
        "@io_k8s_apimachinery//pkg/util/wait",
        "@org_golang_google_grpc//:grpc",
        "@org_golang_google_grpc//metadata",
        "@org_golang_google_grpc//status",
        "@org_golang_google_protobuf//reflect/protoreflect",
        "@org_golang_x_sync//errgroup",
        "@org_uber_go_zap//:zap",
    ],
)

go_custom_test(
    name = "tunclient_test",
    srcs = [
        "connection_manager_test.go",
        "connection_test.go",
    ],
    embed = [":tunclient"],
    deps = [
        "//internal/tool/prototool",
        "//internal/tool/testing/matcher",
        "//internal/tool/testing/mock_reverse_tunnel_rpc",
        "//internal/tool/testing/mock_rpc",
        "//internal/tool/testing/testhelpers",
        "//internal/tunnel/info",
        "//internal/tunnel/rpc",
        "@com_github_stretchr_testify//assert",
        "@com_github_stretchr_testify//require",
        "@org_golang_google_grpc//:grpc",
        "@org_golang_google_grpc//codes",
        "@org_golang_google_grpc//metadata",
        "@org_golang_google_grpc//status",
        "@org_uber_go_mock//gomock",
        "@org_uber_go_zap//zaptest",
    ],
)