-
Notifications
You must be signed in to change notification settings - Fork 736
Expand file tree
/
Copy pathBUILD
More file actions
35 lines (33 loc) · 1000 Bytes
/
BUILD
File metadata and controls
35 lines (33 loc) · 1000 Bytes
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
load("@rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "adminapi",
srcs = ["admin.go"],
importpath = "github.com/redpanda-data/redpanda/src/go/rpk/pkg/adminapi",
visibility = ["//visibility:public"],
deps = [
"//src/go/rpk/pkg/config",
"//src/go/rpk/pkg/oauth/authtoken",
"//src/go/rpk/pkg/oauth/providers/auth0",
"@com_github_kr_text//:text",
"@com_github_moby_term//:term",
"@com_github_redpanda_data_common_go_rpadmin//:rpadmin",
"@com_github_spf13_afero//:afero",
"@org_uber_go_zap//:zap",
],
)
go_test(
name = "adminapi_test",
size = "small",
srcs = [
"admin_test.go",
"auth_test.go",
],
embed = [":adminapi"],
env = {"HOME": "/"},
deps = [
"//src/go/rpk/pkg/config",
"@com_github_redpanda_data_common_go_rpadmin//:rpadmin",
"@com_github_spf13_afero//:afero",
"@com_github_stretchr_testify//require",
],
)