blob: 3ca92ee4489d88798d6cdf7289dcbc1578fa887b [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_test")
go_test(
name = "e2e_test",
srcs = ["main_test.go"],
data = [
# We use the layer instead of the binary to not add a transition target
"//cloud/agent/takeover",
"//third_party/edk2:OVMF_CODE.fd",
"//third_party/edk2:OVMF_VARS.fd",
"@debian_11_cloudimage//file",
],
x_defs = {
"xCloudImagePath": "$(rlocationpath @debian_11_cloudimage//file )",
"xOvmfVarsPath": "$(rlocationpath //third_party/edk2:OVMF_VARS.fd )",
"xOvmfCodePath": "$(rlocationpath //third_party/edk2:OVMF_CODE.fd )",
# TODO(tim): Hardcoded because of https://github.com/monogon-dev/monogon/issues/316
"xTakeoverPath": "_main/cloud/agent/takeover/takeover_bin_/takeover_bin",
},
deps = [
"//cloud/agent/api",
"//osbase/fat32",
"//osbase/freeport",
"@com_github_pkg_sftp//:sftp",
"@io_bazel_rules_go//go/runfiles:go_default_library",
"@org_golang_google_protobuf//proto",
"@org_golang_x_crypto//ssh",
],
)