pyvider 2025-01-11
Major refactor of rpcplugin client
74 files · 4,730+ · 1,280-

rpcplugin Overhaul

73 files changed
  • terraform_handshake.py Updated terraform_handshake.py (+3/-3 lines)
  • client.py Updated client.py (+84/-41 lines)
  • handshake.py Updated handshake.py (+131/-83 lines)
  • security.py Updated security.py (+113/-9 lines)
  • server.py Updated server.py (+4/-4 lines)
  • example_server.py Added example_server.py (+30 lines)
  • run_server.py Updated run_server.py (+5/-5 lines)
  • run_tcp_server.py Updated run_tcp_server.py (+69/-17 lines)
  • run_unix_server.py Updated run_unix_server.py (+62/-17 lines)
  • test_client.py Updated test_client.py (+184/-320 lines)
  • test_handshake.py Removed test_handshake.py (-126 lines)
  • test_security.py Updated test_security.py (+20/-1 lines)
  • test_server.py Updated test_server.py (+16/-16 lines)
  • transport.py Updated transport.py (+90/-106 lines)
  • test_terraform_handshake.py Updated test_terraform_handshake.py (+16/-16 lines)
  • chatgpt-20250111-1513.md Added chatgpt-20250111-1513.md (+88 lines)
  • plugins.md Added plugins.md (+3 lines)
  • env.sh Updated env.sh (+1/-1 lines)
  • debug_cert_pem.pem Removed debug_cert_pem.pem (-20 lines)
  • debug_cert_validate.pem Removed debug_cert_validate.pem (-20 lines)
  • debug_key_pem.pem Removed debug_key_pem.pem (-27 lines)
  • .gitignore Added .gitignore (+3 lines)
  • README.md Added README.md (+14 lines)
  • main.go Added main.go (+65 lines)
  • greeter_impl.go Added greeter_impl.go (+55 lines)
  • greeter_interface.go Added greeter_interface.go (+65 lines)
  • README.md Added README.md (+46 lines)
  • buf.gen.yaml Added buf.gen.yaml (+14 lines)
  • buf.yaml Added buf.yaml (+4 lines)
  • main.go Added main.go (+84 lines)
  • main.go Added main.go (+64 lines)
  • kv.pb.go Added kv.pb.go (+487 lines)
  • kv.proto Added kv.proto (+40 lines)
  • kv_grpc.pb.go Added kv_grpc.pb.go (+235 lines)
  • grpc.go Added grpc.go (+107 lines)
  • interface.go Added interface.go (+63 lines)
  • .gitignore Added .gitignore (+4 lines)
  • README.md Added README.md (+66 lines)
  • buf.gen.yaml Added buf.gen.yaml (+18 lines)
  • buf.yaml Added buf.yaml (+4 lines)
  • build.sh Added build.sh (+20 lines)
  • go.mod Added go.mod (+24 lines)
  • go.sum Added go.sum (+65 lines)
  • main.go Added main.go (+128 lines)
  • main.go Added main.go (+92 lines)
  • main.go Added main.go (+111 lines)
  • kv_pb2.py Added kv_pb2.py (+34 lines)
  • kv_pb2_grpc.py Added kv_pb2_grpc.py (+99 lines)
  • kv.pb.go Added kv.pb.go (+278 lines)
  • kv.proto Added kv.proto (+26 lines)
  • kv_grpc.pb.go Added kv_grpc.pb.go (+147 lines)
  • grpc.go Added grpc.go (+74 lines)
  • interface.go Added interface.go (+68 lines)
  • rpc.go Added rpc.go (+45 lines)
  • test.sh Added test.sh (+18 lines)
  • .gitignore Added .gitignore (+5 lines)
  • README.md Added README.md (+30 lines)
  • main.go Added main.go (+87 lines)
  • main.go Added main.go (+65 lines)
  • exception.py Updated exception.py (+2/-2 lines)
  • compile_mock_message.sh Removed compile_mock_message.sh (-7 lines)
  • compile_proto.sh Added compile_proto.sh (+26 lines)
  • example.proto Added example.proto (+36 lines)
  • example_pb2.py Added example_pb2.py (+44 lines)
  • example_pb2_grpc.py Added example_pb2_grpc.py (+189 lines)
  • test_client_grpc.py Added test_client_grpc.py (+149 lines)
  • test_handshake_magic_cookie.py Added test_handshake_magic_cookie.py (+59 lines)
  • test_handshake_negotiation.py Added test_handshake_negotiation.py (+72 lines)
  • test_handshake_responses.py Added test_handshake_responses.py (+131 lines)
  • test_minimal.py Added test_minimal.py (+40 lines)
  • test_transport_tcp.py Updated test_transport_tcp.py (+7/-9 lines)
  • test_transport_unix.py Updated test_transport_unix.py (+72/-84 lines)
  • x_test_client_grpc.py Removed x_test_client_grpc.py (-185 lines)
  • Refactored client.py (125 lines changed), handshake.py (214 lines changed), security.py (118 lines expanded), transport.py (196 lines changed) decouple internal
    9 files
    • terraform_handshake.py
    • client.py
    • handshake.py
    • security.py
    • test_client.py
    • test_handshake.py
    • test_security.py
    • transport.py
    • test_terraform_handshake.py
  • Updated server.py with minor fixes remediate internal
    6 files
    • server.py
    • example_server.py
    • run_server.py
    • run_tcp_server.py
    • run_unix_server.py
    • test_server.py

Test Infrastructure

1 file changed
  • conftest.py Updated conftest.py (+130/-161 lines)
  • Refined test files: conftest.py, test_client.py, test_server.py, test_handshake.py qualify internal
    4 files
    • conftest.py
    • test_client.py
    • test_handshake.py
    • test_server.py
  • Updated Terraform handshake tests qualify internal
    14 files
    • test.sh
    • test_client.py
    • test_client_grpc.py
    • test_handshake.py
    • test_handshake_magic_cookie.py
    • test_handshake_negotiation.py
    • test_handshake_responses.py
    • test_minimal.py
    • test_security.py
    • test_server.py
    • test_transport_tcp.py
    • test_transport_unix.py
    • x_test_client_grpc.py
    • test_terraform_handshake.py

Import Standardization

74 files changed
  • chatgpt-20250111-1513.md Changes to chatgpt-20250111-1513.md
  • plugins.md Changes to plugins.md
  • env.sh Changes to env.sh
  • terraform_handshake.py Changes to terraform_handshake.py
  • client.py Changes to client.py
  • debug_cert_pem.pem Changes to debug_cert_pem.pem
  • debug_cert_validate.pem Changes to debug_cert_validate.pem
  • debug_key_pem.pem Changes to debug_key_pem.pem
  • .gitignore Changes to .gitignore
  • README.md Changes to README.md
  • main.go Changes to main.go
  • greeter_impl.go Changes to greeter_impl.go
  • greeter_interface.go Changes to greeter_interface.go
  • README.md Changes to README.md
  • buf.gen.yaml Changes to buf.gen.yaml
  • buf.yaml Changes to buf.yaml
  • main.go Changes to main.go
  • main.go Changes to main.go
  • kv.pb.go Changes to kv.pb.go
  • kv.proto Changes to kv.proto
  • kv_grpc.pb.go Changes to kv_grpc.pb.go
  • grpc.go Changes to grpc.go
  • interface.go Changes to interface.go
  • .gitignore Changes to .gitignore
  • README.md Changes to README.md
  • buf.gen.yaml Changes to buf.gen.yaml
  • buf.yaml Changes to buf.yaml
  • build.sh Changes to build.sh
  • env.sh Changes to env.sh
  • go.mod Changes to go.mod
  • go.sum Changes to go.sum
  • main.go Changes to main.go
  • main.go Changes to main.go
  • kv_pb2.py Changes to kv_pb2.py
  • kv_pb2_grpc.py Changes to kv_pb2_grpc.py
  • kv.pb.go Changes to kv.pb.go
  • kv.proto Changes to kv.proto
  • kv_grpc.pb.go Changes to kv_grpc.pb.go
  • grpc.go Changes to grpc.go
  • interface.go Changes to interface.go
  • rpc.go Changes to rpc.go
  • test.sh Changes to test.sh
  • .gitignore Changes to .gitignore
  • README.md Changes to README.md
  • main.go Changes to main.go
  • main.go Changes to main.go
  • exception.py Changes to exception.py
  • handshake.py Changes to handshake.py
  • security.py Changes to security.py
  • server.py Changes to server.py
  • compile_mock_message.sh Changes to compile_mock_message.sh
  • compile_proto.sh Changes to compile_proto.sh
  • conftest.py Changes to conftest.py
  • example.proto Changes to example.proto
  • example_pb2.py Changes to example_pb2.py
  • example_pb2_grpc.py Changes to example_pb2_grpc.py
  • example_server.py Changes to example_server.py
  • run_server.py Changes to run_server.py
  • run_tcp_server.py Changes to run_tcp_server.py
  • run_unix_server.py Changes to run_unix_server.py
  • test_client.py Changes to test_client.py
  • test_client_grpc.py Changes to test_client_grpc.py
  • test_handshake.py Changes to test_handshake.py
  • test_handshake_magic_cookie.py Changes to test_handshake_magic_cookie.py
  • test_handshake_negotiation.py Changes to test_handshake_negotiation.py
  • test_handshake_responses.py Changes to test_handshake_responses.py
  • test_minimal.py Changes to test_minimal.py
  • test_security.py Changes to test_security.py
  • test_server.py Changes to test_server.py
  • test_transport_tcp.py Changes to test_transport_tcp.py
  • test_transport_unix.py Changes to test_transport_unix.py
  • x_test_client_grpc.py Changes to x_test_client_grpc.py
  • transport.py Changes to transport.py
  • test_terraform_handshake.py Changes to test_terraform_handshake.py
  • Updated imports across rpcplugin modules for consistency decouple internal
    1 file
    • env.sh