tree: ec5f01728c19539e6a397a141afe213f3c0c6ddc [path history] [tgz]
  1. lib/
  2. protos/
  3. call_credentials_returning_bad_metadata_doesnt_kill_background_thread_test.rb
  4. call_credentials_timeout_test.rb
  5. channel_closing_client.rb
  6. channel_closing_test.rb
  7. channel_state_client.rb
  8. channel_state_test.rb
  9. client_memory_usage_client.rb
  10. client_memory_usage_test.rb
  11. end2end_common.rb
  12. errors_load_before_grpc_lib_test.rb
  13. forking_client_client.rb
  14. forking_client_test.rb
  16. graceful_sig_handling_client.rb
  17. graceful_sig_handling_test.rb
  18. graceful_sig_stop_client.rb
  19. graceful_sig_stop_test.rb
  20. grpc_class_init_client.rb
  21. grpc_class_init_test.rb
  22. killed_client_thread_client.rb
  23. killed_client_thread_test.rb
  24. load_grpc_with_gc_stress_test.rb
  25. logger_load_before_grpc_lib_test.rb
  26. multiple_killed_watching_threads_test.rb
  27. package_with_underscore_test.rb
  29. sig_handling_client.rb
  30. sig_handling_test.rb
  31. sig_int_during_channel_watch_client.rb
  32. sig_int_during_channel_watch_test.rb
  33. status_codes_load_before_grpc_lib_test.rb

This directory contains some grpc-ruby end to end tests.

Each test here involves two files: a “driver” and a “client”. For example, the “channel_closing” test involves channel_closing_driver.rb and channel_closing_client.rb.

Typically, the “driver” will start up a simple “echo” server, and then spawn a client. It gives the client the address of the “echo” server as well as an address to listen on for control rpcs. Depending on the test, the client usually starts up a “ClientControl” grpc server for the driver to interact with (the driver can tell the client process to do strange things at different times, depending on the test).

So far these tests are mostly useful for testing process-shutdown related situations, since the client's run in separate processes.

These tests are invoked through the “tools/run_tests/” script (the Rakefile doesn't start these).