diff --git a/.woodpecker/edge-subpath.yml b/.woodpecker/edge-subpath.yml index e1af263..c6157bd 100644 --- a/.woodpecker/edge-subpath.yml +++ b/.woodpecker/edge-subpath.yml @@ -21,14 +21,14 @@ # ============================================================================= when: - event: [push, pull_request] - paths: - - "nomad/jobs/edge.hcl" - - "docker/edge/**" - - "tools/edge-control/**" - - ".woodpecker/edge-subpath.yml" - - "tests/smoke-edge-subpath.sh" - - "tests/test-caddyfile-routing.sh" + - event: [push, pull_request] + path: + - "nomad/jobs/edge.hcl" + - "docker/edge/**" + - "tools/edge-control/**" + - ".woodpecker/edge-subpath.yml" + - "tests/smoke-edge-subpath.sh" + - "tests/test-caddyfile-routing.sh" steps: # ── 1. ShellCheck on smoke script ──────────────────────────────────────── diff --git a/tests/smoke-edge-subpath.sh b/tests/smoke-edge-subpath.sh index 6a1f383..d1f6518 100755 --- a/tests/smoke-edge-subpath.sh +++ b/tests/smoke-edge-subpath.sh @@ -115,21 +115,21 @@ http_request() { # Make a GET request and return status code http_get() { local url="$1" - shift || true + shift http_request "GET" "$url" "$@" } # Make a HEAD request (no body) http_head() { local url="$1" - shift || true + shift http_request "HEAD" "$url" "$@" } # Make a GET request and return the response body http_get_body() { local url="$1" - shift || true + shift curl -sS --max-time "$EDGE_TIMEOUT" "$@" "$url" }