load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") package(default_visibility = ["//visibility:public"]) filegroup( name = "testdata", srcs = glob(["testdata/**"]), visibility = ["//visibility:public"], ) go_library( name = "server", srcs = [ "banner_rules.go", "commands.go", "logger.go", "privileges.go", "rules.go", "server.go", "validation.go", ], importpath = "edge-infra.dev/pkg/sds/emergencyaccess/rules/server", visibility = ["//visibility:public"], deps = [ "//pkg/edge/api/middleware", "//pkg/lib/fog", "//pkg/sds/emergencyaccess/middleware", "//pkg/sds/emergencyaccess/rules", "//pkg/sds/emergencyaccess/rules/setup", "@com_github_gin_contrib_requestid//:requestid", "@com_github_gin_gonic_gin//:gin", "@com_github_go_logr_logr//:logr", "@com_github_peterbourgon_ff_v3//:ff", ], ) go_test( name = "server_test", srcs = [ "banner_rules_test.go", "commands_test.go", "privileges_test.go", "rules_test.go", "server_test.go", "validation_test.go", ], data = [":testdata"], embed = [":server"], deps = [ "//pkg/sds/emergencyaccess/rules", "@com_github_gin_gonic_gin//:gin", "@com_github_go_logr_logr//:logr", "@com_github_google_shlex//:shlex", "@com_github_stretchr_testify//assert", ], )