diff options
| author | (no author) <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-15 14:47:07 +0000 |
|---|---|---|
| committer | (no author) <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-15 14:47:07 +0000 |
| commit | f592275211f19e520ec7e257db41899084533806 (patch) | |
| tree | 7eb17be0ca672f580224b641611a99ddc8e9b897 /test/soap/test_httpconfigloader.rb | |
| parent | 7092ebc19804e64e547f20b6fff2e148569f4753 (diff) | |
| download | ruby-f592275211f19e520ec7e257db41899084533806.tar.gz ruby-f592275211f19e520ec7e257db41899084533806.tar.xz ruby-f592275211f19e520ec7e257db41899084533806.zip | |
This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/soap/test_httpconfigloader.rb')
| -rw-r--r-- | test/soap/test_httpconfigloader.rb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/test/soap/test_httpconfigloader.rb b/test/soap/test_httpconfigloader.rb new file mode 100644 index 000000000..b06243f66 --- /dev/null +++ b/test/soap/test_httpconfigloader.rb @@ -0,0 +1,39 @@ +require 'test/unit' +require 'soap/httpconfigloader' +require 'soap/rpc/driver' + +if defined?(HTTPAccess2) + +module SOAP + + +class TestHTTPConfigLoader < Test::Unit::TestCase + DIR = File.dirname(File.expand_path(__FILE__)) + + def setup + @client = SOAP::RPC::Driver.new(nil, nil) + end + + def test_property + testpropertyname = File.join(DIR, 'soapclient.properties') + File.open(testpropertyname, "w") do |f| + f <<<<__EOP__ +protocol.http.ssl_config.verify_mode = OpenSSL::SSL::VERIFY_PEER +# depth: 1 causes an error (intentional) +protocol.http.ssl_config.verify_depth = 1 +protocol.http.ssl_config.ciphers = ALL +__EOP__ + end + begin + @client.loadproperty(testpropertyname) + assert_equal('ALL', @client.options['protocol.http.ssl_config.ciphers']) + ensure + File.unlink(testpropertyname) + end + end +end + + +end + +end |
