Skip to content

Add additional test coverage for SSH connect command#5014

Open
anton-107 wants to merge 1 commit intomainfrom
worktree-investigate-the-best-way-to-set-up-an-automated-7
Open

Add additional test coverage for SSH connect command#5014
anton-107 wants to merge 1 commit intomainfrom
worktree-investigate-the-best-way-to-set-up-an-automated-7

Conversation

@anton-107
Copy link
Copy Markdown
Contributor

Summary

  • Unit tests: Add tests for previously uncovered keys/ package (14 tests), workspace/ package (7 tests), Run() orchestrator (8 tests), and submitSSHTunnelJob (7 tests). Expand client_test.go with FormatMetadata, IsServerlessMode, and SessionIdentifier table-driven tests.
  • Testserver handlers: Add POST /api/2.2/jobs/runs/submit and GET /api/2.0/secrets/list handlers. Fix 404 error responses to include error_code: "RESOURCE_DOES_NOT_EXIST" for proper SDK error mapping.
  • Local acceptance tests: Add connect-local-cluster (verifies API call sequence with mock server) and connect-local-validation (tests 5 validation error cases).
  • Cloud acceptance test: Add connect-serverless-cpu test for serverless CPU compute (complements existing GPU test).

Test plan

  • go test ./experimental/ssh/... — all 9 SSH packages pass (101 tests total)
  • go test ./acceptance -run TestAccept/ssh/connect-local — both local acceptance tests pass
  • make lint / make fmt / make checks — all clean

This pull request was AI-assisted by Isaac.

Add unit tests for previously uncovered packages (keys, workspace,
job submission, Run orchestrator) and expand client_test.go with
FormatMetadata/IsServerlessMode/SessionIdentifier tests. Add local
acceptance tests for cluster connect and validation flows. Add cloud
acceptance test for serverless CPU. Extend testserver with jobs/submit
and secrets/list handlers, and fix error_code in 404 responses for
proper SDK error mapping.

Co-authored-by: Isaac
@anton-107 anton-107 changed the title Add comprehensive test coverage for SSH connect command Add additional test coverage for SSH connect command Apr 17, 2026
@github-actions
Copy link
Copy Markdown

Waiting for approval

Based on git history, these people are best suited to review:

  • @denik -- recent work in libs/testserver/, experimental/ssh/internal/client/

Eligible reviewers: @andrewnester, @pietern, @renaudhartert-db, @shreyas-goenka, @simonfaltum

Suggestions based on git history. See OWNERS for ownership rules.

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