Skip to content

Add market readiness endpoint tests and documentation - #132

Open
royliz3090-jpg wants to merge 2 commits into
jaxassistant55:mainfrom
royliz3090-jpg:add-market-readiness-tests
Open

Add market readiness endpoint tests and documentation#132
royliz3090-jpg wants to merge 2 commits into
jaxassistant55:mainfrom
royliz3090-jpg:add-market-readiness-tests

Conversation

@royliz3090-jpg

Copy link
Copy Markdown

Summary

Adds Go tests for the market gateway readiness and liveness endpoints, plus documentation with curl examples and CI integration patterns.

Closes #75

Changes

  • Added market/gateway/readiness_test.go with tests for:

    • Readiness endpoint returns 200 when healthy
    • Readiness endpoint returns 503 when unhealthy
    • Liveness endpoint returns 200 when process is running
  • Updated docs/OPERATIONS.md with:

    • Curl examples for readiness, liveness, and health endpoints
    • Example Kubernetes deployment configuration
    • CI integration pattern for waiting on gateway readiness

Testing

Tests use the existing gateway test helpers (httptest) and do not require external services or credentials.

cd market && go test ./gateway/ -run TestReadiness
cd market && go test ./gateway/ -run TestLiveness

Diagnostic Build Artifacts

Built with python3 build.py - diagnostic artifacts generated for this commit.


Lightning wallet: fullphone56@walletofsatoshi.com

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.

[$25 BOUNTY] [Go] Add market readiness operations docs and tests

1 participant