1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
Commit graph

15 commits

Author SHA1 Message Date
Daniel Colson
7fc5af6b12 Remove unused code in app status test (#2020)
[changelog skip]

We needed `backlog` and `running` when we introduced the stats endpoint
in [c5aad50e][]. We changed the endpoint to use `@cli.stats` instead in
[c48b804d][], so these values are no longer needed.

[c5aad50e]: c5aad50eb4
[c48b804d]: c48b804d8f
2019-10-10 11:07:30 +02:00
Nate Berkopec
b18250f1b5
Status app: privatize auth, no more explicit returns 2019-09-20 12:45:56 +02:00
Nate Berkopec
4c85facff3
Test cleanup and parallelization (#1846)
* Add frozen string literal everywhere it wasnt already

* Enforce stopgap for tests

* Small amount of integration test cleanup

* Parallelize and freeze Test_app_status

* Big cleanup for test_binder

* Whitespace fix
2019-07-16 18:53:28 -04:00
Michael Grosser
9d93a0f62f make test_helper no longer be loaded as a test (#1283)
running `rake` loads all files starting with `test_` which is not supposed to also load the helper,
since the helper should be loaded by each test and is not a test itself.
2017-05-12 12:16:55 -07:00
Michael Grosser
d25ef26465 warn when bundler fails and avoid having to use -I to run tests (#1270) 2017-04-11 14:48:11 -07:00
Francesco Rodriguez
b638dd1948 Use Minitest instead of Test::Unit (#1152)
* Bump minitest version.

* Add basic test helper file.

* Use minitest for web server tests.

* Use Minitest for unix socket tests.

* Use Minitest for ThreadPool tests.

* Use Minitest for TCP-Rack tests

* Use Minitest for TCPLogger tests.

* Add missing helper to test helpers.

* Use Minitest for Rack server tests.

* Use Minitest for Rack handler tests.

* Use Minitest for Puma::Server tests.

* Use Minitest for Puma::Server with SSL tests.

* Use Minitest for persisten connections tests.

* Require puma in test_helper file.

* Use minitest for Puma::NullIO tests.

* Remove unnecessary requires on test files.

* Use Minitest for MiniSSL tests.

* Use Minitest for IOBuffer tests.

* Require bundler/setup in Rakefile.

* Use Minitest for HttpParser tests.

* Use Minitest for Puma::Configuration tests.

* Use Minitest for Puma::CLI tests.

* Bump Minitest version for Ruby 2.1 Gemfile.

* Use Minitest for integration tests.

* Use Minitest for Puma::App::Status tests.

* Remove test-unit from Gemfiles.

* Add timeout helper to Minitest::Test.

* Use Minitest for Puma::Binder tests.

* Remove testhelp file.

* Add missing require to Puma::Binder tests.

* Prefer require instead of require_relative.
2016-11-22 08:05:49 -07:00
Evan Phoenix
c48b804d8f Refactor modes, fix control server to always work 2013-07-05 16:08:13 -07:00
Evan Phoenix
5323acfacc Fix warning 2013-06-17 23:07:17 -07:00
Paco Viromontes
a2a53316c3 allow for alternate locations for status app 2012-10-03 18:16:31 -07:00
Santiago Pastorino
074ac5f392 Do not execute @app.call twice in the tests 2012-07-04 18:20:06 -03:00
jc00ke
ede98dadfd Return valid Rack responses from status server
Use Rack::Lint to check the response is valid. Existing code really just
needed Content-Length & Content-Type headers.
2012-04-29 12:18:21 -07:00
Evan Phoenix
49d27f888f Fix integration test and cleanup 1.9.3 warnings 2011-12-07 14:48:41 -08:00
Evan Phoenix
a91d64a560 Add auth token support to App::Status 2011-12-06 16:22:02 -08:00
Evan Phoenix
d8026e87f4 Add ability to restart by reexecing and pumactl to use it
This allows all existing requests to finish, but does not keep the same
socket alive across the exec, so this is not a graceful as it could be.
2011-12-05 15:58:23 -08:00
Evan Phoenix
c5aad50eb4 Add App::Status rack app to control a server
Puma::App::Status is a rack app that can be used to control the current
server. It allows a server to be queried remotely programmaticly.
2011-12-05 09:01:19 -08:00