mirror of https://github.com/kubernetes/kops.git
Merge pull request #3922 from justinsb/bazel_fix_tests
Automatic merge from submit-queue. bazel: fix tests/ directory
This commit is contained in:
commit
36abd6f418
2
Makefile
2
Makefile
|
@ -587,7 +587,7 @@ kops-server-push: kops-server-build
|
|||
|
||||
.PHONY: bazel-test
|
||||
bazel-test:
|
||||
bazel ${BAZEL_OPTIONS} test //cmd/... //pkg/... //channels/... //nodeup/... //channels/... //protokube/... //dns-controller/... //upup/... //util/... //hack:verify-all --test_output=errors
|
||||
bazel ${BAZEL_OPTIONS} test //cmd/... //pkg/... //channels/... //nodeup/... //channels/... //protokube/... //dns-controller/... //tests/... //upup/... //util/... //hack:verify-all --test_output=errors
|
||||
|
||||
.PHONY: bazel-build
|
||||
bazel-build:
|
||||
|
|
|
@ -3,9 +3,19 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test")
|
|||
go_test(
|
||||
name = "go_default_test",
|
||||
srcs = ["integration_test.go"],
|
||||
data = [
|
||||
"exported_testdata", # keep
|
||||
"//channels:channeldata", # keep
|
||||
],
|
||||
importpath = "k8s.io/kops/tests/integration/channel",
|
||||
deps = [
|
||||
"//pkg/apis/kops:go_default_library",
|
||||
"//vendor/github.com/blang/semver:go_default_library",
|
||||
],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "exported_testdata",
|
||||
srcs = glob(["simple/**"]),
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
|
|
@ -3,6 +3,9 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test")
|
|||
go_test(
|
||||
name = "go_default_test",
|
||||
srcs = ["integration_test.go"],
|
||||
data = [
|
||||
"exported_testdata", # keep
|
||||
],
|
||||
importpath = "k8s.io/kops/tests/integration/conversion",
|
||||
deps = [
|
||||
"//pkg/apis/kops:go_default_library",
|
||||
|
@ -14,3 +17,9 @@ go_test(
|
|||
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
|
||||
],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "exported_testdata",
|
||||
srcs = glob(["minimal/**"]),
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue