Description
Add integration tests for synapse graphql query (implemented in Issue #86) against the mock HTTP server from Issue #64.
Scope guardrail: this PR must only touch files under cli/synapse-cli/. Do not touch anything under src/ — read the handler referenced below only to learn the request/response contract.
Requirements and context
Suggested execution
- Fork the repo and create a branch
git checkout -b feature/rust-cli-test-coverage-for-synapse-graphql-query
- Implement changes
- Spin up the shared mock server fixture and stub the relevant endpoint(s).
- Run the subcommand as a subprocess (or via the crate's test entrypoint) and assert on exit code + output.
- Cover both
--json and default table output.
- Test and commit
- Run the crate's test command and confirm it's green
- Example commit message:
test(cli): add coverage for graphql subcommand
Guidelines
- Assignment required before starting
- PR description must include:
Closes #87
- PR must only touch files under
cli/synapse-cli/
- Complexity: High (200 points) — Every issue in this Wave is tagged High — full points regardless of individual scope.
Description
Add integration tests for
synapse graphql query(implemented in Issue #86) against the mock HTTP server from Issue #64.Scope guardrail: this PR must only touch files under
cli/synapse-cli/. Do not touch anything undersrc/— read the handler referenced below only to learn the request/response contract.Requirements and context
--jsonmodes).Suggested execution
git checkout -b feature/rust-cli-test-coverage-for-synapse-graphql-query--jsonand default table output.test(cli): add coverage for graphql subcommandGuidelines
Closes #87cli/synapse-cli/