Validate API

Run the project's Hurl scenarios with an OIDC access token passed as a secret variable

johnkozaris b34e9bd 2 files · 2.0 KB Updated

File contents

Validate API

Use $ARGUMENTS or discover the project's Hurl scenarios. Resolve API_BASE_URL from project configuration. Confirm before contacting production.

Use $TOKEN when present. Otherwise run ${TOKEN_COMMAND:-scripts/get-backend-token.sh}; if that command is absent, route through /backend-validator:get-dev-token.

Confirm the backend is reachable using a project-defined readiness or health surface when one exists. Do not invent an endpoint.

Run the target with the installed Hurl secret-variable interface:

hurl --test \
  --secret token="$TOKEN" \
  --variable base_url="$API_BASE_URL" \
  "$TARGET"

On failure, identify the exact scenario/assertion and distinguish backend, fixture, token, environment, and test defects.

Use the project's existing validation stack rather than replacing it. Load references/hurl-patterns.md for captures, retries, parallel isolation, and report-leakage details.

johnkozaris/jko-claude-plugins/tree/main/plugins/backend-validator/skills/validate-api commit b34e9bd0b7

Frequently asked questions

npx skillmds@latest add johnkozaris/validate-api