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:
Ashley Davis 2022-01-14 15:36:00 +00:00
parent f1813d0368
commit 1605f9794f
No known key found for this signature in database
GPG Key ID: DD14CC017E32BEB1
7 changed files with 62 additions and 14 deletions

View File

@ -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",
],
)

View File

@ -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",
],
)

View File

@ -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",

View 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",
],
)

View 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",
],
)