aboutsummaryrefslogtreecommitdiffstats
path: root/test/xmlrpc
Commit message (Collapse)AuthorAgeFilesLines
* leakchecker.rb: remove temporary measurenobu2016-01-051-0/+5
| | | | | | | | | | | | | * 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
* * lib/xmlrpc/client.rb: Support SSL options in async methods ofkou2015-12-261-2/+7
| | | | | | | | | XMLRPC::Client. [Bug #11489] Reported by Aleksandar Kostadinov. Thanks!!! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add frozen_string_literal: false for all filesnaruse2015-12-168-0/+8
| | | | | | When you change this to true, you may need to add more tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use assert_raisenobu2015-06-021-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/xmlrpc: Refine log test.akr2014-11-092-21/+20
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/xmlrpc: Use assert_join_threads.akr2014-11-093-27/+29
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/xmlrpc: Test webrick error log is empty.akr2014-11-092-5/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Close sockets.akr2014-05-302-0/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/xmlrpc/test_client.rb: append assetion use_ssl variable.hsbt2014-02-281-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/socket/test_addrinfo.rb: remove unused variables.hsbt2014-02-181-2/+2
| | | | | | | | | | | | * test/socket/test_nonblock.rb: ditto. * test/socket/test_socket.rb: ditto. * test/socket/test_unix.rb: ditto. * test/testunit/test_parallel.rb: ditto. * test/webrick/test_filehandler.rb: ditto. * test/xmlrpc/test_features.rb: ditto. * test/zlib/test_zlib.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/xmlrpc: Don't use fixed ports: 8070 and 8071.akr2013-11-043-12/+14
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/xmlrpc/webrick_testing.rb (start_server): Initialize the serverakr2013-11-041-12/+9
| | | | | | | | at main thread to fail early. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/xmlrpc: Wrap definitions by TestXMLRPC module.akr2013-11-037-0/+14
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/xmlrpc/webrick_testing.rb (stop_server): Don't try to shutdownakr2013-11-031-0/+1
| | | | | | | | the server if the server is not started. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_client.rb: load opensslnobu2013-06-201-0/+4
| | | | | | | * test/xmlrpc/test_client.rb: try loading openssl to fix autoloading constant. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb (XMLRPC::Client#parse_set_cookies): Supportkou2013-06-131-0/+11
| | | | | | | | | | multiple names in a response. [ruby-core:41711] [Bug #5774] Reported by Roman Riha. Thanks!!! * test/xmlrpc/test_client.rb (XMLRPC::ClientTest#test_cookie_override): Add a test of the above case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb (XMLRPC::Client#parse_set_cookies): Extract.kou2013-06-111-0/+7
| | | | | | | | * test/xmlrpc/test_client.rb (XMLRPC::ClientTest#test_cookie_simple): Add a test for the extracted method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/xmlrpc/test_client.rb (XMLRPC::ClientTest::Fake::HTTP#started):kou2013-06-111-0/+1
| | | | | | | Add a missing empty line. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use different port from test/xmlrpc/test_cookie.rbnaruse2012-12-131-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* skip OpenSSL dependent tests if not availablenobu2012-04-231-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb (module XMLRPC): fix typo.nagachika2012-03-071-1/+33
| | | | | | | * test/xmlrpc/test_client.rb (test_async_call): add test for XMLRPC::Client#call_async to check above fix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/parser.rb: support i8 types. Thanks Stas Kelvich!tenderlove2012-03-061-0/+14
| | | | | | | | [ruby-core:29246] [Feature #3090] * test/xmlrpc/test_client.rb: supporting test git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb: assume servers that do not send a Content-Typetenderlove2012-03-061-1/+24
| | | | | | | | | header are sending 'text/xml'. Thanks Nathan Leavitt! [ruby-core:41204] [Bug #5660] * test/xmlrpc/test_client.rb: supporting test git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/xmlrpc/test_client.rb: adding a test for performing an XMLRPCtenderlove2012-03-062-15/+110
| | | | | | | call. * test/xmlrpc/data/blog.xml: supporting XML document for the response. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb (new2): use URI for uri parsing.tenderlove2012-03-021-0/+11
| | | | | | | * test/xmlrpc/test_client.rb: test that query params are passed to the client constructor. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb (new2): raises an ArgumentError on badtenderlove2012-03-021-0/+34
| | | | | | | arguments. * test/xmlrpc/test_client.rb: tests for bad uris git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb (new2): fix custom port specification when antenderlove2012-03-021-0/+102
| | | | | | | SSL uri is used. * test/xmlrpc/test_client.rb: tests for XMLRPC::Client.new2 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb, lib/xmlrpc/server.rb: should useshugo2011-08-051-0/+5
| | | | | | String#bytesize instead of String#size. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Cosmetic change of Hash literal.nahi2011-08-032-2/+2
| | | | | | | 'BindAddress: var' => ':BindAddress => var' according to other configurations. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/xmlrpc/webrick_testing.rb (WEBrick_Testing#start_server):shyouhei2011-08-031-0/+1
| | | | | | | Like r32795, bind address should be specified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/xmlrpc/test_webrick_server.rb (Test_Webrick#setup_http_server):shyouhei2011-08-011-0/+1
| | | | | | | | | | | | | | XMLRPC::Client.new3(), when called without host: argument, tries to connect to a host where "localhost" resolves to. On the other hand a WEBrick::HTTPServer.new(), when called without BindAddress: argument, tries to listen all the address where getaddrinfo(AF_UNSPEC) resolves to. This is a mismatch because "localhost" might not resolve to one of those listening sockets. We would better explicitly specify "localhost" here and if failed, just skip the whole test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * forgot to add a test fixture file in r32666.nahi2011-07-251-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb: Fix possible HTTP header formatting failure bynahi2011-07-251-3/+33
| | | | | | | | | | 'Basic' header. Long username caused the base64 String truncation in HTTP header which is not allowed. See #5046. * test/xmlrpc/test_webrick_server.rb: test it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/parser.rb (FaultException): fix to_s and inspectshyouhei2011-05-261-0/+6
| | | | | | | | * test/xmlrpc/parser.rb: test for the above Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/create.rb (XMLRPC::Create#conv2value):naruse2011-04-221-1/+16
| | | | | | | | | | XML-RPC's int is 32bit int, and Fixnum also may be beyond 32bit. * lib/xmlrpc/create.rb (XMLRPC::Create#conv2value): XML-RPC doesn't allow Infinity and NaN. http://www.xmlrpc.com/spec git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/xmlrpc/webrick_testing.rb (WEBrick_Testing#start_server):nobu2011-02-131-2/+7
| | | | | | catch IOError when server socket was closed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use require_relative.akr2010-02-022-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* supress warnings.akr2010-01-252-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {ext,lib,test}/**/*.rb: removed trailing spaces.nobu2009-03-066-26/+26
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test: assert_raises has been deprecated since a long time ago.nobu2008-09-243-26/+26
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb: fix cookie handling. [ruby-dev:34403]kou2008-04-151-0/+96
| | | | | | | * test/xmlrpc/test_cookie.rb: add a test for the above fix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/xmlrpc/webrick_testing.rb: join webrick server thread.akr2007-12-151-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/fileutils/test_fileutils.rb (check_singleton): fix to useko12007-02-141-1/+0
| | | | | | | | | | symbole instead of string. * test/io/nonblock/test_flush.rb: enable tests. * test/xmlrpc/test_webrick_server.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Merge YARVko12006-12-311-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c (rb_range_beg_len): should return Qfalse for non-rangematz2005-10-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | object. * pack.c (EXTEND16): [ruby-dev:27383] * eval.c (set_trace_func): add rb_secure(4) to prevent adding tracing function. * lib/delegate.rb: document update from James Edward Gray II <james@grayproductions.net>. [ruby-core:05942] * process.c (proc_daemon): should restrict execution on levels higher than $SAFE=2. suggested by URABE Shyouhei <shyouhei@ice.uec.ac.jp>. * lib/forwardable.rb: replaced by new implementation from <Daniel.Berger@qwest.com>. [ruby-core:05899] * file.c (path_check_0): disallow sticky world writable directory in PATH (and $LOAD_PATH). [ruby-dev:27226] * numeric.c (fix_idiv): 1.div(1.0) should return integer value. [ruby-dev:27235] * lib/yaml.rb: require 'yaml/constants'. [ruby-core:5776] * lib/xmlrpc/client.rb (XMLRPC::Client::do_rpc): add charset information to content-type header.[ruby-core:5127] * lib/xmlrpc/server.rb (CGIServer::serve): ditto. * lib/xmlrpc/server.rb (ModRubyServer::serve): ditto. * lib/xmlrpc/server.rb (WEBrickServlet::service): ditto. * test/dbm/test_dbm.rb (TestDBM::test_s_open_error): remove test_s_open_error test to detect duplicate open. [ruby-dev:27202] * eval.c (splat_value): use to_a to splat non Array object. * object.c (nil_to_a): remove nil.to_a. [experimental] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/xmlrpc/test_webrick_server.rb (setup_http_server):ocean2005-09-191-5/+11
| | | | | | | | should not include 'webrick/https' unless 'use_ssl' because it fails where openssl is not installed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb: use "" instead of "." if prefix argument ismneumann2004-12-212-16/+17
| | | | | | | | | | | | nil in proxy methods. nil is default value. * test/xmlrpc/test_webrick_server.rb, test/xmlrpc/webrick_testing.rb: use threads instead of forking. this should fix issue #1208 (http://rubyforge.org/tracker/?func=detail&atid=1698&aid=1208&group_id=426). removed testing of SSL enabled servlet as this hangs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/xmlrpc/test_parser.rb, test/xmlrpc/data/*.expected: Expectedmneumann2004-12-026-11/+273
| | | | | | | | values are now stored in YAML instead of using #inspect. This fixes false hash order. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/xmlrpc/test_webrick_server.rb : move `requrie "webrick/https"'eban2004-11-191-1/+1
| | | | | | | into #setup_http_server mohtod to avoid soap test errors. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/parser.rb, test/xmlrpc/test_features.rb: fixed "assinging to ↵mneumann2004-11-171-0/+5
| | | | | | constants" warnings git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e