mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/soap/calc/*, test/soap/helloworkd/*: changed port# of test server.
(17171) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
df8b1ad9e8
commit
cf73166d47
8 changed files with 24 additions and 11 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sun Oct 19 00:14:22 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
|
||||||
|
|
||||||
|
* test/soap/calc/*, test/soap/helloworkd/*: changed port# of test
|
||||||
|
server. (17171)
|
||||||
|
|
||||||
Sat Oct 18 23:01:32 2003 WATANABE Hirofumi <eban@ruby-lang.org>
|
Sat Oct 18 23:01:32 2003 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
* missing/acosh.c (DBL_MANT_DIG): typo fix(ifdef -> ifndef).
|
* missing/acosh.c (DBL_MANT_DIG): typo fix(ifdef -> ifndef).
|
||||||
|
|
|
@ -13,5 +13,5 @@ class CalcServer < SOAP::RPC::StandaloneServer
|
||||||
end
|
end
|
||||||
|
|
||||||
if $0 == __FILE__
|
if $0 == __FILE__
|
||||||
status = CalcServer.new('CalcServer', nil, '0.0.0.0', 7000).start
|
status = CalcServer.new('CalcServer', nil, '0.0.0.0', 17171).start
|
||||||
end
|
end
|
||||||
|
|
|
@ -16,5 +16,5 @@ class CalcServer2 < SOAP::RPC::StandaloneServer
|
||||||
end
|
end
|
||||||
|
|
||||||
if $0 == __FILE__
|
if $0 == __FILE__
|
||||||
status = CalcServer2.new('CalcServer', 'http://tempuri.org/calcService', '0.0.0.0', 7000).start
|
status = CalcServer2.new('CalcServer', 'http://tempuri.org/calcService', '0.0.0.0', 17171).start
|
||||||
end
|
end
|
||||||
|
|
|
@ -12,8 +12,10 @@ module Calc
|
||||||
|
|
||||||
|
|
||||||
class TestCalc < Test::Unit::TestCase
|
class TestCalc < Test::Unit::TestCase
|
||||||
|
Port = 17171
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
@server = CalcServer.new(self.class.name, nil, '0.0.0.0', 7000)
|
@server = CalcServer.new(self.class.name, nil, '0.0.0.0', Port)
|
||||||
@server.level = Logger::Severity::FATAL
|
@server.level = Logger::Severity::FATAL
|
||||||
@t = Thread.new {
|
@t = Thread.new {
|
||||||
@server.start
|
@server.start
|
||||||
|
@ -21,7 +23,7 @@ class TestCalc < Test::Unit::TestCase
|
||||||
while @server.server.nil? or @server.server.status != :Running
|
while @server.server.nil? or @server.server.status != :Running
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
end
|
end
|
||||||
@calc = SOAP::RPC::Driver.new('http://localhost:7000/', 'http://tempuri.org/calcService')
|
@calc = SOAP::RPC::Driver.new("http://localhost:#{Port}/", 'http://tempuri.org/calcService')
|
||||||
@calc.add_method('add', 'lhs', 'rhs')
|
@calc.add_method('add', 'lhs', 'rhs')
|
||||||
@calc.add_method('sub', 'lhs', 'rhs')
|
@calc.add_method('sub', 'lhs', 'rhs')
|
||||||
@calc.add_method('multi', 'lhs', 'rhs')
|
@calc.add_method('multi', 'lhs', 'rhs')
|
||||||
|
|
|
@ -12,8 +12,10 @@ module Calc
|
||||||
|
|
||||||
|
|
||||||
class TestCalc2 < Test::Unit::TestCase
|
class TestCalc2 < Test::Unit::TestCase
|
||||||
|
Port = 17171
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
@server = CalcServer2.new('CalcServer', 'http://tempuri.org/calcService', '0.0.0.0', 7000)
|
@server = CalcServer2.new('CalcServer', 'http://tempuri.org/calcService', '0.0.0.0', Port)
|
||||||
@server.level = Logger::Severity::FATAL
|
@server.level = Logger::Severity::FATAL
|
||||||
@t = Thread.new {
|
@t = Thread.new {
|
||||||
@server.start
|
@server.start
|
||||||
|
@ -21,7 +23,7 @@ class TestCalc2 < Test::Unit::TestCase
|
||||||
while @server.server.nil? or @server.server.status != :Running
|
while @server.server.nil? or @server.server.status != :Running
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
end
|
end
|
||||||
@var = SOAP::RPC::Driver.new('http://localhost:7000/', 'http://tempuri.org/calcService')
|
@var = SOAP::RPC::Driver.new("http://localhost:#{Port}/", 'http://tempuri.org/calcService')
|
||||||
@var.add_method('set', 'newValue')
|
@var.add_method('set', 'newValue')
|
||||||
@var.add_method('get')
|
@var.add_method('get')
|
||||||
@var.add_method_as('+', 'add', 'rhs')
|
@var.add_method_as('+', 'add', 'rhs')
|
||||||
|
|
|
@ -16,13 +16,15 @@ class TestCalcCGI < Test::Unit::TestCase
|
||||||
Config::CONFIG["ruby_install_name"] + Config::CONFIG["EXEEXT"]
|
Config::CONFIG["ruby_install_name"] + Config::CONFIG["EXEEXT"]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Port = 17171
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
logger = Logger.new(STDERR)
|
logger = Logger.new(STDERR)
|
||||||
logger.level = Logger::Severity::FATAL
|
logger.level = Logger::Severity::FATAL
|
||||||
@server = WEBrick::HTTPServer.new(
|
@server = WEBrick::HTTPServer.new(
|
||||||
:BindAddress => "0.0.0.0",
|
:BindAddress => "0.0.0.0",
|
||||||
:Logger => logger,
|
:Logger => logger,
|
||||||
:Port => 8808,
|
:Port => Port,
|
||||||
:AccessLog => [],
|
:AccessLog => [],
|
||||||
:DocumentRoot => File.dirname(File.expand_path(__FILE__)),
|
:DocumentRoot => File.dirname(File.expand_path(__FILE__)),
|
||||||
:CGIPathEnv => ENV['PATH'],
|
:CGIPathEnv => ENV['PATH'],
|
||||||
|
@ -34,7 +36,7 @@ class TestCalcCGI < Test::Unit::TestCase
|
||||||
while @server.status != :Running
|
while @server.status != :Running
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
end
|
end
|
||||||
@calc = SOAP::RPC::Driver.new('http://localhost:8808/server.cgi', 'http://tempuri.org/calcService')
|
@calc = SOAP::RPC::Driver.new("http://localhost:#{Port}/server.cgi", 'http://tempuri.org/calcService')
|
||||||
@calc.add_method('add', 'lhs', 'rhs')
|
@calc.add_method('add', 'lhs', 'rhs')
|
||||||
@calc.add_method('sub', 'lhs', 'rhs')
|
@calc.add_method('sub', 'lhs', 'rhs')
|
||||||
@calc.add_method('multi', 'lhs', 'rhs')
|
@calc.add_method('multi', 'lhs', 'rhs')
|
||||||
|
|
|
@ -11,6 +11,6 @@ class HelloWorldServer < SOAP::RPC::StandaloneServer
|
||||||
end
|
end
|
||||||
|
|
||||||
if $0 == __FILE__
|
if $0 == __FILE__
|
||||||
server = HelloWorldServer.new('hws', 'urn:hws', '0.0.0.0', 2000)
|
server = HelloWorldServer.new('hws', 'urn:hws', '0.0.0.0', 17171)
|
||||||
server.start
|
server.start
|
||||||
end
|
end
|
||||||
|
|
|
@ -12,8 +12,10 @@ module HelloWorld
|
||||||
|
|
||||||
|
|
||||||
class TestHelloWorld < Test::Unit::TestCase
|
class TestHelloWorld < Test::Unit::TestCase
|
||||||
|
Port = 17171
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
@server = HelloWorldServer.new('hws', 'urn:hws', '0.0.0.0', 2000)
|
@server = HelloWorldServer.new('hws', 'urn:hws', '0.0.0.0', Port)
|
||||||
@server.level = Logger::Severity::UNKNOWN
|
@server.level = Logger::Severity::UNKNOWN
|
||||||
@t = Thread.new {
|
@t = Thread.new {
|
||||||
@server.start
|
@server.start
|
||||||
|
@ -21,7 +23,7 @@ class TestHelloWorld < Test::Unit::TestCase
|
||||||
while @server.server.nil? or @server.server.status != :Running
|
while @server.server.nil? or @server.server.status != :Running
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
end
|
end
|
||||||
@client = SOAP::RPC::Driver.new('http://localhost:2000/', 'urn:hws')
|
@client = SOAP::RPC::Driver.new("http://localhost:#{Port}/", 'urn:hws')
|
||||||
@client.add_method("hello_world", "from")
|
@client.add_method("hello_world", "from")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue