Files
nomad/e2e/workload_id/input/api-win.nomad.hcl
Michael Schurter d5f0db8a5e Task API / Dynamic Node Metadata E2E test fixes (#16219)
* taskapi: return Forbidden on bad credentials

Prior to this change a "Server error" would be returned when ACLs are
enabled which did not match when ACLs are disabled.

* e2e: love love love datacenter wildcard default

* e2e: skip windows nodes on linux only test

The Logfs are a bit weird because they're most useful when converted to
Printfs to make debugging the test much faster, but that makes CI noisy.

In a perfect world Go would expose how many tests are being run and we
could stream output live if there's only 1. For now I left these helpful
lines in as basically glorified comments.
2023-02-21 10:53:10 -08:00

36 lines
760 B
HCL

job "api-win" {
type = "batch"
constraint {
attribute = "${attr.kernel.name}"
value = "windows"
}
constraint {
attribute = "${attr.cpu.arch}"
value = "amd64"
}
group "api-win" {
task "win" {
driver = "raw_exec"
config {
command = "powershell"
args = ["local/curl-7.87.0_4-win64-mingw/bin/curl.exe -H \"Authorization: Bearer $env:NOMAD_TOKEN\" --unix-socket $env:NOMAD_SECRETS_DIR/api.sock -v localhost:4646/v1/agent/health"]
}
artifact {
source = "https://curl.se/windows/dl-7.87.0_4/curl-7.87.0_4-win64-mingw.zip"
}
identity {
env = true
}
resources {
cpu = 16
memory = 32
disk = 64
}
}
}
}