summaryrefslogtreecommitdiff
path: root/test/net
AgeCommit message (Collapse)Author
2010-09-27 * test/net/http/test_https.rb: As always, localhost is notshyouhei
guaranteed to be resolved as 127.0.0.1. But a SSL certificate needs a socket to listen on a specific address where a CN resolves to. On situations where localhost is not 127.0.0.1, these tests are not possible. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-27 * test/net/imap/test_imap.rb: resurrection of r29259.shyouhei
this change depends on minitest 1.7.1. * lib/test/unit/assertions.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-15reverting; ↵shyouhei
http://rubyforge.org/tracker/?func=detail&atid=4099&aid=28566&group_id=1040 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-15 * lib/test/unit/assertions.rb (Test::Unit::Assertions::assert_nothing_raised):shyouhei
should properly ignore MiniTest::Skip * lib/minitest/unit.rb (MiniTest::Assertions::assert_raises): ditto. * test/net/imap/test_imap.rb: Properly skip SSL tests when localhost is not 127.0.0.1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-15 * test/net/imap/test_imap.rb: "localhost" not guaranteed toshyouhei
resolve to "127.0.0.1". On my machine it is "::1" instead. The problem is, you have to connect to the imaps server via the canonical name written in a server certificate, and that of the server.cert is "localhost". So you have to listen to the address of what "localhost" resolves to. I think this situation cannot be resolved in a handy manner because the test "test_imaps_post_connection_check" is actually expecting to connect to a server via an address other than the CN. On my machine several assertions won't pass because the test cannot connect to the server. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-09 * test/net/http/test_https.rb (test_identity_verify_failure): followsnahi
the SSL hostname check error message of openssl. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-05* test/net/imap/test_imap.rb (test_exception_during_shutdown):nobu
need to raise always. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-01* lib/net/http.rb: adding support to rfc5789 patch verb.naruse
Added a Net::HTTP::Patch class which expects a message body and response body. It recycles the post method into a patch one, that will send the encoded representation to the server. Summarizing, a new class has been created, the post method extracted into send_entity, including a new argument, which defines which class to use (Post or Patch) and finally a patch method was created. [ruby-core:30426] Patched by Guilherme Silveira <guilherme.silveira AT caelum.com.br> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-09* test/net/imap/test_imap.rb: use IPv4 forshugo
test_imaps_post_connection_check. [ruby-dev:41189] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-08* lib/net/imap.rb (disconnect): terminates @receiver_thread even ifshugo
@sock.shutdown raises an exception. [ruby-dev:34881] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-03* lib/net/http.rb (Net::HTTPResponse#read_chunked): ensure to skip themame
last newline of chunk. [ruby-core:29229] * test/net/http/utils.rb: add an option for chunked response test. * test/net/http/test_http.rb: add tests for chunked response. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-14* lib/net/imap (encode_utf7): encode & properly. Thanks, Kengoshugo
Matsuyama. [ruby-dev:38063] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06test/net/imap/test_imap_response_parser.rb: fixed test_resp_text_code.shugo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06* test/net/imap/test_imap_response_parser.rb (test_resp_text_code): added a testshugo
for [ruby-core:27913]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06* lib/net/imap.rb (receive_responses): does not hang when an unexpected BYEshugo
response received. fixed [ruby-core:27944]. Thanks, Bob Potter. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06* test/net/imap/test_imap.rb (test_exception_during_idle): use timeout.shugo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-19* lib/net/imap.rb (flag_list): untaint strings to intern in the safeshugo
level 1. * lib/net/imap.rb (max_flag_count=): new methods to set the max number of flags interned to symbols. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-30 * lib/net/http.rb (Net::HTTPResponse#each_response_header):nahi
accept multiline message header of HTTP response. see #1796. cf. RFC 2616 '4.2 Message Header'. * test/net/http/test_httpresponse.rb: added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-24* lib/net/imap.rb (idle): leaves IDLE in a ensure clause. a patchshugo
from Eric Hodel. * test/net/imap/test_imap.rb (setup, teardown): turn on Socket.do_not_reverse_lookup in tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-23* lib/net/imap.rb (resp_text_code): accepts response codes withoutshugo
text. [ruby-core:24194] * lib/net/imap.rb (idle, idle_done): new methods for the IMAP4 IDLE command (RFC 2177). Thanks, Eric Hodel. * lib/net/imap.rb (format_date, format_datetime): new method to format IMAP-style date/datetime. Thanks, Eric Hodel. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06* {ext,lib,test}/**/*.rb: removed trailing spaces.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-14* lib/net/pop.rb: check for invalid APOP timestamp. (CVE-2007-1558)kazu
[ruby-dev:36631] * test/net/pop/test_pop.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-24* test: assert_raises has been deprecated since a long time ago.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-29* test/net/http/test_http.rb (_test_request__file): specify encodingmame
explicitly. * test/net/http/utils.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19* test/net/http/test_http.rb: compare encodings of two strings beforemame
comparing themself, which suppress too big error output. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-21* lib/net/imap.rb: do not use Thread#raise. [ruby-dev:34739]shugo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-05* test/io/nonblock/test_flush.rb: don't set Thread.abort_on_exception.akr
* test/net/imap/test_imap.rb: ensure disconnecting imap to terminate receiver thread.. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-30* test/net/imap/test_imap.rb: check OpenSSL definition before testing imaps.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-23* test/net/http/test_https.rb: should rescue LoadError.gotoyuzo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22* test/net/imap/test_imap.rb: added tests for SSL.shugo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22* ext/openssl/lib/net/ssl.rb (OpenSSL::SSL::SSLContext.build): removed.gotoyuzo
* ext/openssl/lib/net/ssl.rb (OpenSSL::SSL::SSLContext#set_params): new method to set suitable SSL parameters. * lib/net/pop.rb, lib/net/http.rb, lib/net/imap.rb, test/openssl/test_ssl.rb: follow above change. * test/net/http/test_https.rb: refine error case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22* lib/net/imap.rb (encode_utf7): accept UTF-8 strings.shugo
* lib/net/imap.rb (decode_utf7): return UTF-8 strings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-20* lib/net/http.rb (Net::HTTP#connect): usegotoyuzo
OpenSSL::SSL::SSLContext.build instead of SSLContext.new (default verify mode is now OpenSSL::SSL::VERIFY_PEER). * lib/net/https.rb: SSL parameters are defined by attr_accessor. * test/net/http/test_https.rb: add test for HTTPS features. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18* test/net/http/utils.rb: split TestNetHTTPUtils module fromgotoyuzo
test/net/http/test_http.rb. and start HTTP server in each test case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-15catch EOFError in a thread.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-15close socket.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-14* test/net/http/test_https_proxy.rbmatz
(HTTPSProxyTest::test_https_proxy_authentication): initialize local variable 't' first. [ruby-dev:32253] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-12* lib/net/http.rb (tokens): forgot to add strip. [ruby-core:11120]aamine
* test/net/http/test_http.rb: test Net::HTTP.post_form. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-26merge test cases with Ruby 1.8aamine
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-26* lib/net/http.rb (Net::HTTP#post, request_post, request): should set ↵aamine
Content-Type: x-www-form-urlencoded by default. * lib/net/http.rb (Net::HTTPHeader#content_type): should return nil when there's no Content-Type. * lib/net/http.rb (Net::HTTPHeader#sub_type): should return nil when there's no sub Content-Type (e.g. "Content-Type: text"). * lib/net/http.rb (Net::HTTPHeader#type_params): wrongly failed when there's no Content-Type. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-08* lib/scanf.rb (Scanf::FormatSpecifier#letter, #width): use matchednobu
substring directly. * ext/nkf/lib/kconv.rb (Kconv.conv): get rid of nil.to_a. * test/ruby/test_assignment.rb, test/ruby/test_iterator.rb: followed change of sample/test.rb. * test/net/http/test_http.rb: removed superfluous splatting stars. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-24* test/net/http/test_http.rb (teardown): ensure that Net::HTTP is version ↵aamine
1.2. [ruby-dev:27312] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-24* test/net/http/test_http.rb: new file.aamine
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-07skip test if openssl is not available.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-03fix another IPv6 issue.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-03avoid IPv6 issue.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-03add ML number.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-03set verify_mode to avoid a warning.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-03add a test.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-04-20* lib/net/http.rb: new method Net::HTTP.post_form.aamine
* lib/net/http.rb: new method Net::HTTPHeader#set_form_data and its alias #form_data=. * lib/net/http.rb: Net::HTTPHeader#add_header -> add_field (adjustted to Ruby 1.8). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e