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
|
load("//build:build.bzl", "go_custom_test")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "server",
srcs = [
"defaulting.go",
"factory.go",
"module.go",
"server.go",
],
importpath = "gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16/internal/module/agent_configuration/server",
visibility = ["//:__subpackages__"],
deps = [
"//internal/api",
"//internal/gitaly",
"//internal/gitlab",
"//internal/gitlab/api",
"//internal/module/agent_configuration",
"//internal/module/agent_configuration/rpc",
"//internal/module/agent_tracker",
"//internal/module/modserver",
"//internal/module/modshared",
"//internal/tool/errz",
"//internal/tool/logz",
"//internal/tool/mathz",
"//internal/tool/prototool",
"//internal/tool/retry",
"//internal/tool/syncz",
"//pkg/agentcfg",
"//pkg/kascfg",
"@io_k8s_apimachinery//pkg/util/wait",
"@io_k8s_sigs_yaml//:yaml",
"@org_golang_google_grpc//codes",
"@org_golang_google_grpc//status",
"@org_golang_google_protobuf//encoding/protojson",
"@org_golang_google_protobuf//types/known/timestamppb",
"@org_uber_go_zap//:zap",
],
)
go_custom_test(
name = "server_test",
srcs = ["server_test.go"],
embed = [":server"],
deps = [
"//internal/api",
"//internal/gitaly",
"//internal/gitlab/api",
"//internal/module/agent_configuration",
"//internal/module/agent_configuration/rpc",
"//internal/module/agent_tracker",
"//internal/module/modserver",
"//internal/module/modshared",
"//internal/tool/testing/matcher",
"//internal/tool/testing/mock_agent_tracker",
"//internal/tool/testing/mock_gitlab",
"//internal/tool/testing/mock_internalgitaly",
"//internal/tool/testing/mock_modserver",
"//internal/tool/testing/mock_rpc",
"//internal/tool/testing/testhelpers",
"//pkg/agentcfg",
"@com_github_golang_mock//gomock",
"@com_github_google_go_cmp//cmp",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@io_k8s_sigs_yaml//:yaml",
"@org_golang_google_grpc//codes",
"@org_golang_google_grpc//status",
"@org_golang_google_protobuf//encoding/protojson",
"@org_golang_google_protobuf//testing/protocmp",
],
)
|