move fuzzing tests to test/integration/fuzz/%
These tests have external dependencies (rendered CRDs) which mean they can't pass on a clean checkout without further setup. We define such tests as integration tests, and so these are moved to test/integration. Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
This commit is contained in:
parent
f1813d0368
commit
1605f9794f
@ -35,19 +35,13 @@ filegroup(
|
||||
|
||||
go_test(
|
||||
name = "go_default_test",
|
||||
srcs = [
|
||||
"pruning_test.go",
|
||||
"roundtrip_test.go",
|
||||
],
|
||||
srcs = ["roundtrip_test.go"],
|
||||
data = [
|
||||
"//deploy/crds:templated_files",
|
||||
],
|
||||
embed = [":go_default_library"],
|
||||
deps = [
|
||||
"//internal/apis/acme/fuzzer:go_default_library",
|
||||
"//internal/test/paths:go_default_library",
|
||||
"//pkg/api:go_default_library",
|
||||
"@com_github_munnerz_crd_schema_fuzz//:go_default_library",
|
||||
"@io_k8s_apimachinery//pkg/api/apitesting/roundtrip:go_default_library",
|
||||
],
|
||||
)
|
||||
|
||||
@ -37,19 +37,13 @@ filegroup(
|
||||
|
||||
go_test(
|
||||
name = "go_default_test",
|
||||
srcs = [
|
||||
"pruning_test.go",
|
||||
"roundtrip_test.go",
|
||||
],
|
||||
srcs = ["roundtrip_test.go"],
|
||||
data = [
|
||||
"//deploy/crds:templated_files",
|
||||
],
|
||||
embed = [":go_default_library"],
|
||||
deps = [
|
||||
"//internal/apis/certmanager/fuzzer:go_default_library",
|
||||
"//internal/test/paths:go_default_library",
|
||||
"//pkg/api:go_default_library",
|
||||
"@com_github_munnerz_crd_schema_fuzz//:go_default_library",
|
||||
"@io_k8s_apimachinery//pkg/api/apitesting/roundtrip:go_default_library",
|
||||
],
|
||||
)
|
||||
|
||||
@ -14,6 +14,8 @@ filegroup(
|
||||
"//test/integration/conversion:all-srcs",
|
||||
"//test/integration/ctl:all-srcs",
|
||||
"//test/integration/framework:all-srcs",
|
||||
"//test/integration/fuzz/acme:all-srcs",
|
||||
"//test/integration/fuzz/cert-manager:all-srcs",
|
||||
"//test/integration/rfc2136_dns01:all-srcs",
|
||||
"//test/integration/validation:all-srcs",
|
||||
"//test/integration/versionchecker:all-srcs",
|
||||
|
||||
29
test/integration/fuzz/acme/BUILD.bazel
Normal file
29
test/integration/fuzz/acme/BUILD.bazel
Normal file
@ -0,0 +1,29 @@
|
||||
load("@io_bazel_rules_go//go:def.bzl", "go_test")
|
||||
|
||||
filegroup(
|
||||
name = "package-srcs",
|
||||
srcs = glob(["**"]),
|
||||
tags = ["automanaged"],
|
||||
visibility = ["//visibility:private"],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "all-srcs",
|
||||
srcs = [":package-srcs"],
|
||||
tags = ["automanaged"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
go_test(
|
||||
name = "go_default_test",
|
||||
srcs = ["pruning_test.go"],
|
||||
data = [
|
||||
"//deploy/crds:templated_files",
|
||||
],
|
||||
deps = [
|
||||
"//internal/apis/acme/fuzzer:go_default_library",
|
||||
"//internal/test/paths:go_default_library",
|
||||
"//pkg/api:go_default_library",
|
||||
"@com_github_munnerz_crd_schema_fuzz//:go_default_library",
|
||||
],
|
||||
)
|
||||
29
test/integration/fuzz/cert-manager/BUILD.bazel
Normal file
29
test/integration/fuzz/cert-manager/BUILD.bazel
Normal file
@ -0,0 +1,29 @@
|
||||
load("@io_bazel_rules_go//go:def.bzl", "go_test")
|
||||
|
||||
filegroup(
|
||||
name = "package-srcs",
|
||||
srcs = glob(["**"]),
|
||||
tags = ["automanaged"],
|
||||
visibility = ["//visibility:private"],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "all-srcs",
|
||||
srcs = [":package-srcs"],
|
||||
tags = ["automanaged"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
go_test(
|
||||
name = "go_default_test",
|
||||
srcs = ["pruning_test.go"],
|
||||
data = [
|
||||
"//deploy/crds:templated_files",
|
||||
],
|
||||
deps = [
|
||||
"//internal/apis/certmanager/fuzzer:go_default_library",
|
||||
"//internal/test/paths:go_default_library",
|
||||
"//pkg/api:go_default_library",
|
||||
"@com_github_munnerz_crd_schema_fuzz//:go_default_library",
|
||||
],
|
||||
)
|
||||
Loading…
Reference in New Issue
Block a user