mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-16 11:24:35 -05:00
519efe637d
* Clean up license checker code Signed-off-by: Daniel Weiße <dw@edgeless.systems> * Create license check depending on init/upgrade actions Signed-off-by: Daniel Weiße <dw@edgeless.systems> * Run license check in Terraform provider Signed-off-by: Daniel Weiße <dw@edgeless.systems> * fix license integration test action Signed-off-by: Daniel Weiße <dw@edgeless.systems> * Run tests with enterprise tag Signed-off-by: Daniel Weiße <dw@edgeless.systems> * Allow b64 encoding for license ID Signed-off-by: Daniel Weiße <dw@edgeless.systems> * Update checker_enterprise.go --------- Signed-off-by: Daniel Weiße <dw@edgeless.systems> Co-authored-by: Thomas Tendyck <51411342+thomasten@users.noreply.github.com>
35 lines
762 B
Python
35 lines
762 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",
|
|
# keep
|
|
"//internal/constants",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "license_test",
|
|
srcs = ["file_test.go"],
|
|
embed = [":license"],
|
|
tags = [
|
|
"enterprise",
|
|
],
|
|
deps = [
|
|
"@com_github_stretchr_testify//assert",
|
|
"@com_github_stretchr_testify//require",
|
|
],
|
|
)
|