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

18 commits

Author SHA1 Message Date
Nate Berkopec
c280d2f463
Privatize binder listeners (#1958)
We had a relese called Private Caller, now we have Private Listeners
2019-09-11 10:49:35 +00:00
MSP-Greg
35dbec0eaa add no_tlsv1_1 to binder, config, etc 2019-08-03 14:56:30 -05: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
MSP-Greg
08f4e66fb3 Update test_binder.rb
fix skip syntax
2019-02-19 21:59:39 -06:00
Evan Phoenix
698979fd6f
Merge pull request #1562 from skrobul/optional_tls
add support for disabling TLSv1.0
2019-02-19 17:03:11 -08:00
MSP-Greg
6a7112d51b Update test files
1. Update skip handling
2. Stability changes
3. Add Ruby & OpenSSL version info output
4. Bypassed SSL tests on DISABLE_SSL ?
2018-09-11 16:31:54 -05:00
Joe Kutner
db9e26af6b Update url for binder parsing test for JRuby 2018-07-09 11:54:59 -05:00
Marek Skrobacki
e142b9f043 add support for disabling TLSv1.0
Many organizations run their applications using in environments that fall into
scope of PCI-DSS compliance audits. One of the requirements set out by standard
is to migrate to more secure protocols if possible.

PCI Security Standards council has advised to migrate away from TLSv1.0 over
last few years and recently set a migration deadline of 30 June 2018 (see [1]
for more details).

Change proposed in this commit gives an user option to disable `TLSv1.0` during
bind, while still leaving the `TLSv1.1` and `TLSv1.2` enabled. `SSLv2` and
`SSLv3` are permanently disabled (as they should).

Default behaviour is not changed if the `no_tls` option is not defined.

[1]: https://blog.pcisecuritystandards.org/are-you-ready-for-30-june-2018-sayin-goodbye-to-ssl-early-tls
2018-05-11 13:12:14 +01:00
Eleanor Allison
6ba53b0e7c Fix path of test file 2017-12-04 19:39:17 +00:00
Eleanor Allison
98ab5f62ed Fix rubocop violations that don't get run as part of test target 2017-12-01 19:13:15 +00:00
Eleanor Allison
0de155b627 Add documentation and tests for change 2017-12-01 18:56:48 +00:00
Eileen M. Uchitelle
6714214d57 Require puma/events in test helper (#1418)
Moves the require for puma/events from the individual test files and
into the main test helper.

The reason for this was while I was debugging the `test_puma_server.rb`
tests I was getting an error for an uninitialized constant for
`Puma::Event`.

Moving the require from the individual files to the test help means the
`puma/events` will always be included instead of having to remember to
do that. It makes debugging individual tests locally easier.
2017-09-23 05:44:21 +09:00
Nikolay Vashchenko
a31a62656d Appveyor CI (#1374)
* appveyour config

* proper platforms for windows

* disabling tests with ssl and interrupts

* excessive ssl setup

* fixed message

* adding info in readme regarding stopgap_13632

* formatting

* trailing spaces
2017-07-27 12:18:58 -06: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
bc76bca535 Silence logger in Binder tests. (#1163) 2016-11-25 11:32:41 -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
प्रथमेश Sonpatki
78b4ab0196 Fixed the issue of @listeners getting nil io (#1120)
* Fixed the issue of @listeners getting nil io

- `add_tcp_listener` and `add_ssl_listener` return `nil` now for
  localhost addresses and it was getting added to the `@listeners`.
- Later on the file descriptor `nil` was getting converted to 0 and
  resulting into `BadFileDescriptor` error as per this gist -
  https://gist.github.com/prathamesh-sonpatki/bc0cac8929dbf17316e8b4b7dda93e20.
- This issue is now fixed and added test case.
- This fixes `rails restart` command on Rails 5 + Puma 3.5 and above.

* Test localhost ssl:// as well

* Skip tests related to localhost binding on JRuby

- Added a helper for omitting tests on JRuby.
2016-11-21 07:40:56 -07:00