2023-05-25 12:43:44 -04:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
|
|
|
|
|
|
|
go_library(
|
2023-06-02 03:19:23 -04:00
|
|
|
name = "client",
|
|
|
|
srcs = ["client.go"],
|
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/internal/api/attestationconfig/client",
|
2023-05-25 12:43:44 -04:00
|
|
|
visibility = ["//:__subpackages__"],
|
|
|
|
deps = [
|
2023-06-02 03:19:23 -04:00
|
|
|
"//internal/api/attestationconfig",
|
2023-06-05 06:33:22 -04:00
|
|
|
"//internal/api/attestationconfig/fetcher",
|
|
|
|
"//internal/api/client",
|
|
|
|
"//internal/logger",
|
2023-06-01 07:55:46 -04:00
|
|
|
"//internal/sigstore",
|
|
|
|
"//internal/staticupload",
|
2023-05-25 12:43:44 -04:00
|
|
|
"//internal/variant",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
2023-06-02 03:19:23 -04:00
|
|
|
name = "client_test",
|
|
|
|
srcs = ["client_test.go"],
|
|
|
|
# keep
|
|
|
|
count = 1,
|
2023-06-05 06:33:22 -04:00
|
|
|
embed = [":client"],
|
2023-06-02 03:19:23 -04:00
|
|
|
# keep
|
|
|
|
gotags = ["e2e"],
|
|
|
|
# keep
|
|
|
|
tags = ["manual"],
|
2023-05-25 12:43:44 -04:00
|
|
|
deps = [
|
2023-06-02 03:19:23 -04:00
|
|
|
"//internal/api/attestationconfig",
|
2023-06-05 06:33:22 -04:00
|
|
|
"@com_github_stretchr_testify//assert",
|
2023-05-25 12:43:44 -04:00
|
|
|
],
|
|
|
|
)
|