File: BUILD.bazel

package info (click to toggle)
gitlab-agent 16.1.3-2
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid, trixie
  • size: 6,324 kB
  • sloc: makefile: 175; sh: 52; ruby: 3
file content (52 lines) | stat: -rw-r--r-- 1,735 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 = "server",
    srcs = [
        "factory.go",
        "module.go",
        "server.go",
    ],
    importpath = "gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16/internal/module/configuration_project/server",
    visibility = ["//:__subpackages__"],
    deps = [
        "//internal/api",
        "//internal/gitaly",
        "//internal/gitaly/vendored/gitalypb",
        "//internal/module/agent_configuration",
        "//internal/module/configuration_project",
        "//internal/module/configuration_project/rpc",
        "//internal/module/modserver",
        "//internal/module/modshared",
        "//internal/tool/git",
        "//internal/tool/logz",
        "@org_golang_google_grpc//codes",
        "@org_golang_google_grpc//status",
    ],
)

go_custom_test(
    name = "server_test",
    srcs = ["server_test.go"],
    embed = [":server"],
    deps = [
        "//internal/api",
        "//internal/gitaly",
        "//internal/gitaly/vendored/gitalypb",
        "//internal/gitlab",
        "//internal/gitlab/api",
        "//internal/module/configuration_project/rpc",
        "//internal/module/modserver",
        "//internal/tool/grpctool",
        "//internal/tool/ioz",
        "@com_github_google_go_cmp//cmp",
        "@com_github_google_go_cmp//cmp/cmpopts",
        "@com_github_stretchr_testify//assert",
        "@com_github_stretchr_testify//require",
        "@org_golang_google_grpc//:grpc",
        "@org_golang_google_grpc//credentials/insecure",
        "@org_golang_google_protobuf//encoding/protojson",
        "@org_golang_google_protobuf//testing/protocmp",
    ],
)