summaryrefslogtreecommitdiff
path: root/test/soap
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-27 07:03:29 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-27 07:03:29 +0000
commit6671baa96b2921e2cdaeb4ca4a16bcd05f5e45ff (patch)
treefe2fa61702c537812d58f103f9d353ebef51d6c7 /test/soap
parenteb4ace3c49b2834b38c7f79bbd8ca3e6ee6e1c3a (diff)
* lib/soap/rpc/cgistub.rb: make logging severity threshold higher.
* lib/soap/rpc/standaloneServer.rb: defer WEBrick server start to give a change to reset logging severity threshold. * test/soap/calc/test_*, test/soap/helloworld/test_helloworld.rb: run silent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/soap')
-rw-r--r--test/soap/calc/test_calc.rb3
-rw-r--r--test/soap/calc/test_calc2.rb3
-rw-r--r--test/soap/calc/test_calc_cgi.rb5
-rw-r--r--test/soap/helloworld/hw_s.rb1
-rw-r--r--test/soap/helloworld/test_helloworld.rb3
5 files changed, 11 insertions, 4 deletions
diff --git a/test/soap/calc/test_calc.rb b/test/soap/calc/test_calc.rb
index e14dbf5..528b3e2 100644
--- a/test/soap/calc/test_calc.rb
+++ b/test/soap/calc/test_calc.rb
@@ -14,10 +14,11 @@ module Calc
class TestCalc < Test::Unit::TestCase
def setup
@server = CalcServer.new(self.class.name, nil, '0.0.0.0', 7000)
+ @server.level = Logger::Severity::FATAL
@t = Thread.new {
@server.start
}
- while @server.server.status != :Running
+ while @server.server.nil? or @server.server.status != :Running
sleep 0.1
end
@calc = SOAP::RPC::Driver.new('http://localhost:7000/', 'http://tempuri.org/calcService')
diff --git a/test/soap/calc/test_calc2.rb b/test/soap/calc/test_calc2.rb
index 0e84ca3..776151f 100644
--- a/test/soap/calc/test_calc2.rb
+++ b/test/soap/calc/test_calc2.rb
@@ -14,10 +14,11 @@ module Calc
class TestCalc2 < Test::Unit::TestCase
def setup
@server = CalcServer2.new('CalcServer', 'http://tempuri.org/calcService', '0.0.0.0', 7000)
+ @server.level = Logger::Severity::FATAL
@t = Thread.new {
@server.start
}
- while @server.server.status != :Running
+ while @server.server.nil? or @server.server.status != :Running
sleep 0.1
end
@var = SOAP::RPC::Driver.new('http://localhost:7000/', 'http://tempuri.org/calcService')
diff --git a/test/soap/calc/test_calc_cgi.rb b/test/soap/calc/test_calc_cgi.rb
index 6c89d46..6d1204d 100644
--- a/test/soap/calc/test_calc_cgi.rb
+++ b/test/soap/calc/test_calc_cgi.rb
@@ -1,5 +1,6 @@
require 'test/unit'
require 'soap/rpc/driver'
+require 'logger'
require 'webrick'
@@ -9,9 +10,13 @@ module Calc
class TestCalcCGI < Test::Unit::TestCase
def setup
+ logger = Logger.new(STDERR)
+ logger.level = Logger::Severity::FATAL
@server = WEBrick::HTTPServer.new(
:BindAddress => "0.0.0.0",
+ :Logger => logger,
:Port => 8808,
+ :AccessLog => [],
:DocumentRoot => File.dirname(File.expand_path(__FILE__)),
:CGIPathEnv => ENV['PATH']
)
diff --git a/test/soap/helloworld/hw_s.rb b/test/soap/helloworld/hw_s.rb
index b917f72..970c76a 100644
--- a/test/soap/helloworld/hw_s.rb
+++ b/test/soap/helloworld/hw_s.rb
@@ -2,7 +2,6 @@ require 'soap/rpc/standaloneServer'
class HelloWorldServer < SOAP::RPC::StandaloneServer
def on_init
- @log.level = Logger::Severity::DEBUG
add_method(self, 'hello_world', 'from')
end
diff --git a/test/soap/helloworld/test_helloworld.rb b/test/soap/helloworld/test_helloworld.rb
index 0aa552e..3f12bf4 100644
--- a/test/soap/helloworld/test_helloworld.rb
+++ b/test/soap/helloworld/test_helloworld.rb
@@ -14,10 +14,11 @@ module HelloWorld
class TestHelloWorld < Test::Unit::TestCase
def setup
@server = HelloWorldServer.new('hws', 'urn:hws', '0.0.0.0', 2000)
+ @server.level = Logger::Severity::UNKNOWN
@t = Thread.new {
@server.start
}
- while @server.server.status != :Running
+ while @server.server.nil? or @server.server.status != :Running
sleep 0.1
end
@client = SOAP::RPC::Driver.new('http://localhost:2000/', 'urn:hws')