bazel: set integration go build tag

This commit is contained in:
Malte Poll 2023-08-16 21:58:12 +02:00 committed by Malte Poll
parent ae7888a13f
commit 3352a9e988
7 changed files with 108 additions and 1 deletions

View File

@ -4,7 +4,10 @@ load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier", "bui
load("//bazel/ci:proto_targets.bzl", "proto_targets")
load("//bazel/sh:def.bzl", "noop_warn", "repo_command", "sh_template")
required_tags = ["e2e"]
required_tags = [
"e2e",
"integration",
]
gazelle(
name = "gazelle_generate",

25
csi/test/BUILD.bazel Normal file
View File

@ -0,0 +1,25 @@
load("//bazel/go:go_test.bzl", "go_test")
go_test(
name = "test_test",
srcs = ["mount_integration_test.go"],
# keep
tags = ["manual"],
deps = select({
"@io_bazel_rules_go//go/platform:android": [
"//csi/cryptmapper",
"//internal/cryptsetup",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@org_uber_go_goleak//:goleak",
],
"@io_bazel_rules_go//go/platform:linux": [
"//csi/cryptmapper",
"//internal/cryptsetup",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@org_uber_go_goleak//:goleak",
],
"//conditions:default": [],
}),
)

View File

@ -0,0 +1,34 @@
load("//bazel/go:go_test.bzl", "go_test")
go_test(
name = "test_test",
srcs = [
"benchmark_test.go",
"integration_test.go",
],
# keep
tags = ["manual"],
deps = select({
"@io_bazel_rules_go//go/platform:android": [
"//disk-mapper/internal/diskencryption",
"//internal/cryptsetup",
"//internal/logger",
"@com_github_martinjungblut_go_cryptsetup//:go-cryptsetup",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@org_uber_go_goleak//:goleak",
"@org_uber_go_zap//zapcore",
],
"@io_bazel_rules_go//go/platform:linux": [
"//disk-mapper/internal/diskencryption",
"//internal/cryptsetup",
"//internal/logger",
"@com_github_martinjungblut_go_cryptsetup//:go-cryptsetup",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@org_uber_go_goleak//:goleak",
"@org_uber_go_zap//zapcore",
],
"//conditions:default": [],
}),
)

View File

@ -0,0 +1,13 @@
load("//bazel/go:go_test.bzl", "go_test")
go_test(
name = "test_test",
srcs = ["integration_test.go"],
deps = [
"//internal/api/attestationconfigapi",
"//internal/logger",
"//internal/staticupload",
"@com_github_stretchr_testify//require",
"@org_uber_go_zap//:zap",
],
)

View File

@ -0,0 +1,29 @@
load("//bazel/go:go_test.bzl", "go_test")
go_test(
name = "test_test",
srcs = [
"aws_test.go",
"azure_test.go",
"gcp_test.go",
"integration_test.go",
],
deps = [
"//internal/kms/config",
"//internal/kms/kms",
"//internal/kms/kms/aws",
"//internal/kms/kms/azure",
"//internal/kms/kms/gcp",
"//internal/kms/storage",
"//internal/kms/storage/awss3",
"//internal/kms/storage/azureblob",
"//internal/kms/storage/gcs",
"//internal/kms/storage/memfs",
"//internal/kms/uri",
"@com_github_aws_aws_sdk_go_v2_config//:config",
"@com_github_aws_aws_sdk_go_v2_service_s3//:s3",
"@com_github_aws_aws_sdk_go_v2_service_s3//types",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
],
)

View File

@ -26,6 +26,7 @@ go_test(
name = "license_test",
srcs = [
"file_test.go",
"license_integration_test.go",
"license_test.go",
],
embed = [":license"],

View File

@ -28,6 +28,7 @@ go_library(
go_test(
name = "sigstore_test",
srcs = [
"rekor_integration_test.go",
"rekor_test.go",
"sign_test.go",
"verify_test.go",
@ -38,5 +39,6 @@ go_test(
"@com_github_sigstore_rekor//pkg/types/hashedrekord/v0.0.1:v0_0_1",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@org_uber_go_goleak//:goleak",
],
)