1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/test/config
MSP-Greg 4c8d4d6921 Update test_integration files per PR #1956 (#1965)
* Update test_integration files per PR #1956

test_integration_cluster.rb

Request handling during server TERM - two tests

`#test_term_closes_listeners_tcp`
`#test_term_closes_listeners_unix`

using `#term_closes_listeners`

Send requests 10 per second.  Send 10, then :TERM server, then send another 30.
No more than 10 should throw Errno::ECONNRESET.

Request handling during phased restart - two tests

`#test_usr1_all_respond_tcp`
`#test_usr1_all_respond_unix`

using `#usr1_all_respond`

Send requests 1 per second.  Send 1, then :USR1 server, then send another 24.
All should be responded to, and at least three workers should be used

Stuck worker tests - two tests

`#test_stuck_external_term_spawn`
Tests whether externally TERM'd 'stuck' workers are proper re-spawned.

`#test_stuck_phased_restart`
Tests whether 'stuck' workers are properly shutdown during phased-restart.

helper files/methods changes

1. helper file changes to allow binding to TCP or UNIX, see kwarg unix:
2. Skip on Windows for signal TERM

* Misc updates, debug output, cleanup

* Add comments

* fix test_int_signal_with_background_thread_in_jruby per review

* TestIntegrationCluster#term_closes_listeners - add interleaved assert

* cluster.rb - remove duplicate Worker#term? method
2019-09-19 19:37:53 +02:00
..
ab_rs.rb sort configs/rackups/tests (#1268) 2017-04-11 14:08:18 -07:00
app.rb Ignore multiple port declarations 2015-02-17 08:58:19 -06:00
control_no_token.rb Fixes the bug that wouldn't allow no_token be set to true (#1803) 2019-05-28 09:37:34 -04:00
custom_log_formatter.rb Allow to define a custom formatter for logs (#1816) 2019-08-01 12:21:23 -07:00
plugin1.rb PluginRegistry#fire_background - fix up per issue 1972 (#1973) 2019-09-18 15:53:29 +02:00
prune_bundler_with_deps.rb Allow extra runtime deps to be defined when using prune_bundler (#1105) 2019-09-02 16:10:33 +00:00
settings.rb Specified parameters should overwrite loaded config files 2017-01-30 20:29:19 -08:00
ssl_config.rb Allow mutual TLS CA to be set using ssl_bind DSL 2019-02-20 14:27:00 -06:00
state_file_testing_config.rb Let's use Rubocop! (#1325) 2017-06-04 13:21:05 -07:00
suppress_exception.rb add tests 2019-02-21 21:31:35 +01:00
with_integer_convert.rb worker_timeout, worker_boot_timeout, worker_shutdown_timeout fix integer convert (#1450) 2018-03-19 15:05:15 -06:00
worker_shutdown_timeout_2.rb Update test_integration files per PR #1956 (#1965) 2019-09-19 19:37:53 +02:00