agent/tests/cli/fleet/nodes/Taskfile.yaml

18 lines
462 B
YAML
Raw Normal View History

version: "3"
tasks:
test:
cmds:
- |
bash <<'EOF'
set -euo pipefail
source ../../_lib/run.sh
go build -trimpath -ldflags="-s -w" -o bin/core-agent ../../../../cmd/core-agent
output="$(mktemp)"
# fleet/nodes calls the API — exit 1 with error is expected offline
run_capture_all 1 "$output" ./bin/core-agent fleet/nodes
assert_contains "fleet" "$output"
EOF