prysm-pulse/validator/client/beacon-api/BUILD.bazel
Patrice Vignola e231cfd59d
Onboard validator's beacon REST API tests to CI (#11682)
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-11-24 11:50:13 +01:00

45 lines
1.5 KiB
Python

load("@prysm//tools/go:def.bzl", "go_library", "go_test")
# gazelle:build_tags use_beacon_api
go_library(
name = "go_default_library",
srcs = [
"beacon_api_helpers.go",
"beacon_api_validator_client.go",
"genesis.go",
],
importpath = "github.com/prysmaticlabs/prysm/v3/validator/client/beacon-api",
visibility = ["//validator:__subpackages__"],
deps = [
"//api/gateway/apimiddleware:go_default_library",
"//beacon-chain/rpc/apimiddleware:go_default_library",
"//proto/prysm/v1alpha1:go_default_library",
"//validator/client/iface:go_default_library",
"@com_github_ethereum_go_ethereum//common/hexutil:go_default_library",
"@com_github_pkg_errors//:go_default_library",
"@io_bazel_rules_go//proto/wkt:empty_go_proto",
],
)
# gazelle:build_tags use_beacon_api
go_test(
name = "go_default_test",
size = "small",
srcs = [
"beacon_api_helpers_test.go",
"genesis_test.go",
"handlers_test.go",
"wait_for_chain_start_test.go",
],
embed = [":go_default_library"],
gotags = ["use_beacon_api"],
deps = [
"//api/gateway/apimiddleware:go_default_library",
"//beacon-chain/rpc/apimiddleware:go_default_library",
"//testing/assert:go_default_library",
"//testing/require:go_default_library",
"@com_github_ethereum_go_ethereum//common/hexutil:go_default_library",
"@org_golang_google_protobuf//types/known/emptypb:go_default_library",
],
)