Skip to content

Commit

Permalink
boskos: move handlers and tests into their own package
Browse files Browse the repository at this point in the history
  • Loading branch information
ixdy committed Feb 6, 2020
1 parent 61838e1 commit 79d1fd8
Show file tree
Hide file tree
Showing 9 changed files with 460 additions and 392 deletions.
1 change: 1 addition & 0 deletions boskos/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ filegroup(
"//boskos/cmd/reaper:all-srcs",
"//boskos/common:all-srcs",
"//boskos/crds:all-srcs",
"//boskos/handlers:all-srcs",
"//boskos/mason:all-srcs",
"//boskos/ranch:all-srcs",
"//boskos/storage:all-srcs",
Expand Down
22 changes: 2 additions & 20 deletions boskos/cmd/boskos/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("//prow:def.bzl", "prow_image")

go_binary(
Expand All @@ -19,39 +19,21 @@ go_library(
importpath = "k8s.io/test-infra/boskos/cmd/boskos",
visibility = ["//visibility:private"],
deps = [
"//boskos/common:go_default_library",
"//boskos/crds:go_default_library",
"//boskos/handlers:go_default_library",
"//boskos/ranch:go_default_library",
"//prow/config:go_default_library",
"//prow/interrupts:go_default_library",
"//prow/logrusutil:go_default_library",
"//prow/metrics:go_default_library",
"//prow/pjutil:go_default_library",
"//prow/simplifypath:go_default_library",
"@com_github_fsnotify_fsnotify//:go_default_library",
"@com_github_prometheus_client_golang//prometheus:go_default_library",
"@com_github_sirupsen_logrus//:go_default_library",
"@com_github_spf13_viper//:go_default_library",
],
)

go_test(
name = "go_default_test",
srcs = [
"boskos_test.go",
"server_client_test.go",
"storage_test.go",
],
embed = [":go_default_library"],
deps = [
"//boskos/client:go_default_library",
"//boskos/common:go_default_library",
"//boskos/crds:go_default_library",
"//boskos/ranch:go_default_library",
"//boskos/storage:go_default_library",
],
)

filegroup(
name = "package-srcs",
srcs = glob(["**"]),
Expand Down
Loading

0 comments on commit 79d1fd8

Please sign in to comment.