Hiroshi SHIBATA
af60317861
Removed needless block arguments
2024-07-17 17:37:57 +09:00
Hiroshi SHIBATA
2a12e4ffec
To avoid fd leak with fetch request for SSL server
2024-07-17 17:37:57 +09:00
Hiroshi SHIBATA
e09df57427
[ruby/open-uri] Try Windows tests again
...
https://github.com/ruby/open-uri/commit/50f265ba29
2024-07-09 07:27:48 +00:00
Hiroshi SHIBATA
e62ac3aac7
Reapply "Reverts related commits with https://github.com/ruby/open-uri/pull/37 "
...
This reverts commit 02c4f0c89d
.
2024-07-09 16:21:55 +09:00
Hiroshi SHIBATA
02c4f0c89d
Reverts related commits with https://github.com/ruby/open-uri/pull/37
...
It caused Timeout failure with RJIT and chkbuild
http://rubyci.s3.amazonaws.com/debian11/ruby-master/log/20240708T063006Z.fail.html.gz
https://github.com/ruby/ruby/actions/runs/9836594303/job/27152644853
2024-07-08 20:00:01 +09:00
Hiroshi SHIBATA
bf898057b4
[ruby/open-uri] Test with Windows
...
https://github.com/ruby/open-uri/commit/2606892a43
2024-07-08 04:53:13 +00:00
Hiroshi SHIBATA
3d78e63312
[ruby/open-uri] Load stringio with the correct files
...
https://github.com/ruby/open-uri/commit/cb17a907a2
2024-07-08 04:53:12 +00:00
Hiroshi SHIBATA
09c52b91b9
[ruby/open-uri] Removed needless class definition and variables
...
https://github.com/ruby/open-uri/commit/ab0e916997
2024-07-08 04:53:12 +00:00
Hiroshi SHIBATA
e6b6c2ba9d
[ruby/open-uri] support CONNECT method for SimpleHTTPProxy
...
https://github.com/ruby/open-uri/commit/2e36793bd5
2024-07-08 04:53:11 +00:00
Hiroshi SHIBATA
b782906400
[ruby/open-uri] Added SimpleHTTPSServer by TCPServer and OpenSSL
...
https://github.com/ruby/open-uri/commit/57c80e1576
2024-07-08 04:53:10 +00:00
Kazuki Yamaguchi
4e29ca0c40
Add :ssl_min_version and :ssl_max_version options
...
Replace :ssl_version option with these two new options. These provide
access to OpenSSL::SSL::SSLContext#{min,max}_version=, which is the
recommended way to specify SSL/TLS protocol versions.
2022-10-12 10:36:51 +09:00
Nishant Patel
43e925090b
[ruby/open-uri] fix: added test case that validates that bad TLS version is silently ignored
...
https://github.com/ruby/open-uri/commit/4b91b11730
2022-10-06 18:00:58 +09:00
Nishant Patel
cdbaac3f4b
[ruby/open-uri] feat: allow option to pass version of SSL / TLS to use during communication. Allow versions are OpenSSL::SSL::SSLContext::METHODS
...
https://github.com/ruby/open-uri/commit/8729858517
2022-10-06 18:00:57 +09:00
Tanaka Akira
05aac90a1b
Warn open-uri's "open" method at Kernel.
...
Use URI.open instead.
Thanks for the patch by jeremyevans0 (Jeremy Evans) [Misc #15893 ].
2019-07-14 17:18:17 +09:00
Yusuke Endoh
43730256e8
open-uri: Regenerate server certificates for tests
...
OpenSSL 1.1.1 requires 2048 bits or more. This change will fix:
https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian/ruby-master/log/20190527T003004Z.fail.html.gz#test%2Fopen-uri
2019-05-27 12:58:08 +09:00
rhe
0cc0080a49
open-uri: don't use OpenSSL::TestUtils from open-uri tests
...
Follow net/http. Define own test DH parameters and use.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-29 15:48:46 +00:00
svn
3cb56e8e3a
* remove trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-06-07 12:29:37 +00:00
rhe
06552d56d1
open-uri: regenerate server certificates used in tests
...
* test/open-uri/test_ssl.rb: Regenerate test certificates. The test CA
certificate was incorrectly generated. A CA certificate must have the
basic constraints extension with cA bit set to TRUE. OpenSSL <= 1.0.2
allowed the error when the certificate is in the trusted store but
OpenSSL 1.1.0 no longer does.
[ruby-core:75225] [Feature #12324 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-06-07 12:29:36 +00:00
nobu
8d66627161
leakchecker.rb: remove temporary measure
...
* lib/webrick/utils.rb (WEBrick::Utils::TimeoutHandler#watcher):
make watcher thread restartable.
* lib/webrick/utils.rb (WEBrick::Utils::TimeoutHandler#terminate):
new method to terminate watcher thread.
* test/lib/leakchecker.rb (LeakChecker#find_threads): revert
r46941.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-01-05 06:09:17 +00:00
akr
68ebbbfebe
* lib/open-uri.rb: Remove indicator for "frozen_string_literal: true".
...
* lib/pp.rb: Ditto.
* lib/prettyprint.rb: Ditto.
* lib/resolv.rb: Ditto.
* lib/securerandom.rb: Ditto.
* lib/tmpdir.rb: Ditto.
* lib/unicode_normalize/tables.rb: Ditto.
* test/net/ftp/test_buffered_socket.rb: Ditto.
* test/net/ftp/test_mlsx_entry.rb: Ditto.
* test/open-uri/test_open-uri.rb: Ditto.
* test/open-uri/test_ssl.rb: Ditto.
* test/pathname/test_pathname.rb: Ditto.
* test/test_pp.rb: Ditto.
* test/test_prettyprint.rb: Ditto.
* tool/transcode-tblgen.rb: Ditto.
* ext/pathname/lib/pathname.rb: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-10 11:48:14 +00:00
akr
89db37cf77
* lib/open-uri.rb: Specify frozen_string_literal: true.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-18 12:17:52 +00:00
nobu
21a40e94ac
skip old OpenSSL
...
* test/open-uri/test_ssl.rb, test/webrick/test_httpproxy.rb: also
depends on test/openssl/utils.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-13 07:12:56 +00:00
usa
bf4b7f3b8c
* test/net/http/test_https.rb
...
(TestNetHTTPS#test_certificate_verify_failure): on Windows,
Errno::ECONNRESET will be raised when the verify is failure at the
client side, and it'll be eaten by WEBrick.
* test/open-uri/test_ssl.rb (TestOpenURISSL#test_validation_failure):
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-09 17:51:43 +00:00
akr
ad58f04833
* test/open-uri: Test server log in server thread.
...
* test/webrick: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-09 14:01:20 +00:00
akr
070c310e87
* test/webrick: Store log in an array.
...
* test/net/http: Ditto.
* test/open-uri: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-09 11:51:06 +00:00
akr
8222432c9d
Use assert_join_threads.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-08 13:41:49 +00:00
naruse
f977ebb1c9
suppress warnings: using default DH parameters.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-06-22 00:21:37 +00:00
akr
f07096f7e1
Join threads.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-31 14:05:54 +00:00
naruse
b712455f98
Wait until the server stops.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-23 14:05:49 +00:00
nobu
77b1d88513
skip OpenSSL dependent tests if not available
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-23 13:48:41 +00:00
naruse
eab4183f14
Wait until the proxy stops.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-22 15:04:44 +00:00
naruse
3f443e6115
Use mount_proc to avoid the delay of writing data to files.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-04 12:49:12 +00:00
nobu
3a47cf3395
* remove trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-15 11:55:52 +00:00
akr
136c25ebf0
unset HTTP_PROXY, etc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-10 10:26:55 +00:00
akr
c35f659524
test CA certs dir.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 11:56:12 +00:00
akr
5ee445bc0c
test proxy log.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 11:07:05 +00:00
akr
f34cf072a4
add https test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 09:50:57 +00:00