Skip to content

feat: add check_http_json task for HTTP endpoint assertions with jq#188

Merged
pk910 merged 7 commits into
ethpandaops:masterfrom
chetanyb:check-http-json
Jun 1, 2026
Merged

feat: add check_http_json task for HTTP endpoint assertions with jq#188
pk910 merged 7 commits into
ethpandaops:masterfrom
chetanyb:check-http-json

Conversation

@chetanyb
Copy link
Copy Markdown
Contributor

Summary

  • Add check_http_json task for fetching JSON from HTTP endpoints and evaluating assertions using jq queries
  • Support polling, multiple HTTP methods, custom headers/body, and configurable status expectations
  • Implement two assertion modes: existence (exists: true/false) and comparison (operator + value)

Test plan

  • Unit tests pass with race detector (go test -race)
  • Linting clean (golangci-lint run --new-from-rev="origin/master")
  • Config validation rejects invalid inputs
  • Recursive numeric equality handles nested JSON/YAML type mismatches
  • Max 32 jq results enforced per assertion
  • Context cancellation stops jq execution

🤖 Generated with Claude Code

@pk910 pk910 enabled auto-merge June 1, 2026 14:04
@pk910 pk910 merged commit 3493e50 into ethpandaops:master Jun 1, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants