2
require 'soap/httpconfigloader'
3
require 'soap/rpc/driver'
5
if defined?(HTTPAccess2)
10
class TestHTTPConfigLoader < Test::Unit::TestCase
11
DIR = File.dirname(File.expand_path(__FILE__))
14
@client = SOAP::RPC::Driver.new(nil, nil)
18
testpropertyname = File.join(DIR, 'soapclient.properties')
19
File.open(testpropertyname, "w") do |f|
21
protocol.http.ssl_config.verify_mode = OpenSSL::SSL::VERIFY_PEER
22
# depth: 1 causes an error (intentional)
23
protocol.http.ssl_config.verify_depth = 1
24
protocol.http.ssl_config.ciphers = ALL
28
@client.loadproperty(testpropertyname)
29
assert_equal('ALL', @client.options['protocol.http.ssl_config.ciphers'])
31
File.unlink(testpropertyname)