Skip to content

Add input validation tests for SSH connection parameters#1

Open
quiloos39 wants to merge 1 commit intomainfrom
add-input-validation-tests
Open

Add input validation tests for SSH connection parameters#1
quiloos39 wants to merge 1 commit intomainfrom
add-input-validation-tests

Conversation

@quiloos39
Copy link
Owner

@quiloos39 quiloos39 commented Feb 16, 2026

Summary

  • Add comprehensive Zod schema validation tests for ssh_connect and ssh_execute tool inputs
  • Covers 23 test cases: required fields, type rejection, optional fields, edge cases (IPv6, empty strings, null/undefined coercion), and strict parsing

Test plan

  • Run npx tsx tests/input-validation.test.ts and verify all 23 tests pass
  • Confirm schema shapes match the actual tool registrations in src/tools/connect.ts and src/tools/execute.ts

@quiloos39 quiloos39 changed the title Add input validation tests for SSH connection parameters\n\nAdds comprehensive test suite for validating SSH connection input parameters using Zod schemas. Covers host, port, username, timeout, and edge case validation. Add input validation tests for SSH connection parameters Feb 16, 2026
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

Comments