Skip to content

test: add tests for all new CLI commands#1

Merged
ovasylenko merged 1 commit into
mainfrom
feat/cli-new-command-tests
May 31, 2026
Merged

test: add tests for all new CLI commands#1
ovasylenko merged 1 commit into
mainfrom
feat/cli-new-command-tests

Conversation

@ovasylenko

Copy link
Copy Markdown
Contributor

Summary

  • Add 27 integration tests covering all new CLI commands introduced in 6035f4c
  • Instance tests: update-context, batch-create, checkpoints (list/save/latest/prune), inject-blocks, bulk-state, bulk-reschedule, stream (SSE)
  • Sequence tests: list, delete, migrate-instance
  • Rollback policy tests: list, get, create, delete
  • Misc tests: session update-data, plugin update, credential update, pool resource CRUD, per-tenant circuit breaker list/get/reset, rich approval list output

Test plan

  • All 37 tests pass (go test ./...)
  • go vet ./... clean
  • Uses httptest mock servers with request body verification
  • Covers JSON output parsing, text output assertions, SSE streaming, temp file handling

Cover 27 new commands added in 6035f4c with httptest-based integration
tests: instance (update-context, batch-create, checkpoints, inject-blocks,
bulk-state, bulk-reschedule, stream), sequence (list, delete, migrate-instance),
rollback-policy (list, get, create, delete), session (update-data), plugin
(update), credential (update), pool (add/update/delete-resource),
circuit-breaker (per-tenant list/get/reset), and approval (rich output).
@ovasylenko ovasylenko merged commit 63609a8 into main May 31, 2026
4 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.

1 participant