...
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3package(default_visibility = ["//visibility:public"])
4
5filegroup(
6 name = "testdata",
7 srcs = glob(["testdata/**"]),
8 visibility = ["//visibility:public"],
9)
10
11go_library(
12 name = "server",
13 srcs = [
14 "banner_rules.go",
15 "commands.go",
16 "logger.go",
17 "privileges.go",
18 "rules.go",
19 "server.go",
20 "validation.go",
21 ],
22 importpath = "edge-infra.dev/pkg/sds/emergencyaccess/rules/server",
23 visibility = ["//visibility:public"],
24 deps = [
25 "//pkg/edge/api/middleware",
26 "//pkg/lib/fog",
27 "//pkg/sds/emergencyaccess/middleware",
28 "//pkg/sds/emergencyaccess/rules",
29 "//pkg/sds/emergencyaccess/rules/setup",
30 "@com_github_gin_contrib_requestid//:requestid",
31 "@com_github_gin_gonic_gin//:gin",
32 "@com_github_go_logr_logr//:logr",
33 "@com_github_peterbourgon_ff_v3//:ff",
34 ],
35)
36
37go_test(
38 name = "server_test",
39 srcs = [
40 "banner_rules_test.go",
41 "commands_test.go",
42 "privileges_test.go",
43 "rules_test.go",
44 "server_test.go",
45 "validation_test.go",
46 ],
47 data = [":testdata"],
48 embed = [":server"],
49 deps = [
50 "//pkg/sds/emergencyaccess/rules",
51 "@com_github_gin_gonic_gin//:gin",
52 "@com_github_go_logr_logr//:logr",
53 "@com_github_google_shlex//:shlex",
54 "@com_github_stretchr_testify//assert",
55 ],
56)
View as plain text