...
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "rules",
5 srcs = [
6 "banner_rules.go",
7 "commands.go",
8 "internal_types.go",
9 "privileges.go",
10 "request_payloads.go",
11 "response_payloads.go",
12 "rules.go",
13 "rulesengine.go",
14 "validation.go",
15 ],
16 data = glob(["testdata/**"]),
17 importpath = "edge-infra.dev/pkg/sds/emergencyaccess/rules",
18 visibility = ["//visibility:public"],
19 deps = [
20 "//pkg/sds/emergencyaccess/eaconst",
21 "@com_github_google_uuid//:uuid",
22 ],
23)
24
25go_test(
26 name = "rules_test",
27 srcs = [
28 "banner_rules_test.go",
29 "commands_test.go",
30 "privileges_test.go",
31 "request_payloads_test.go",
32 "rules_test.go",
33 "validation_test.go",
34 ],
35 embed = [":rules"],
36 deps = [
37 "//pkg/lib/uuid",
38 "@com_github_stretchr_testify//assert",
39 ],
40)
View as plain text