tofusoup 2025-10-11
RPC input validation added with expanded cross-language integration tests
53 files · 4,282+ · 858-

RPC input validation module added

1 file changed
  • validation.py New validation module implementing input validation for RPC requests
  • Added src/tofusoup/rpc/validation.py implementing input validation for RPC requests, ensuring proper message format and parameter checking before processing harden behavioral
    1 file
    • validation.py

New integration tests for cross-language RPC

3 files changed
  • test_cross_language_matrix.py Comprehensive matrix testing for Python-Go RPC combinations (137 lines)
  • test_curve_support.py Elliptic curve support tests for TLS (149 lines)
  • test_error_scenarios.py Error handling and edge case tests for RPC (107 lines)
  • Added tests/integration/test_cross_language_matrix.py for comprehensive matrix testing of Python-Go RPC combinations qualify internal
    1 file
    • test_cross_language_matrix.py
  • Added tests/integration/test_curve_support.py testing elliptic curve support for TLS across different curve types qualify internal
    1 file
    • test_curve_support.py
  • Added tests/integration/test_error_scenarios.py testing error handling and edge cases in RPC communication qualify internal
    1 file
    • test_error_scenarios.py

Standalone mTLS and curve test scripts added

5 files changed
  • test_py_go_automtls.py Automated mTLS testing between Python and Go (51 lines)
  • test_py_go_basic.py Basic Python-to-Go RPC communication (50 lines)
  • test_py_py_all_curves.py All elliptic curve variants for Python-to-Python (120 lines)
  • test_py_to_py.py Python-to-Python RPC testing (70 lines)
  • test_curve.py Additional curve test scenarios
  • Added test_py_go_automtls.py for automated mTLS testing between Python and Go qualify internal
    1 file
    • test_py_go_automtls.py
  • Added test_py_go_basic.py for basic Python-to-Go RPC communication qualify internal
    1 file
    • test_py_go_basic.py
  • Added test_py_py_all_curves.py testing all elliptic curve variants for Python-to-Python qualify internal
    1 file
    • test_py_py_all_curves.py
  • Added test_py_to_py.py for Python-to-Python RPC testing qualify internal
    1 file
    • test_py_to_py.py
  • Expanded test_curve.py with additional curve test scenarios qualify internal
    1 file
    • test_curve.py