constellation/internal/license/BUILD.bazel
Markus Rudy 6cfc80454a license: dedicated module for integration test
The integration test for the license module depends on network
connectivity and should be Bazel-tagged as such. Since the unit tests do
not have a network dependency, we should not apply the tag to those. The
easiest way to do this in a Gazelle-compliant way is to move the
integration test into its own module.
2023-11-23 13:48:54 +01:00

40 lines
920 B
Python

load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "license",
srcs = [
# keep
"checker_enterprise.go",
# keep
"checker_oss.go",
"file.go",
"license.go",
],
importpath = "github.com/edgelesssys/constellation/v2/internal/license",
visibility = ["//:__subpackages__"],
deps = [
"//internal/cloud/cloudprovider",
"//internal/config",
# keep
"//internal/constants",
"//internal/file",
],
)
go_test(
name = "license_test",
srcs = [
"file_test.go",
"license_test.go",
],
embed = [":license"],
deps = [
"//internal/constants",
"//internal/file",
"@com_github_spf13_afero//:afero",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
],
)