~ubuntu-branches/ubuntu/intrepid/ruby1.9/intrepid-updates

« back to all changes in this revision

Viewing changes to test/soap/test_httpconfigloader.rb

  • Committer: Bazaar Package Importer
  • Author(s): akira yamada
  • Date: 2005-09-21 13:16:19 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050921131619-qhlm5e5pz3bvsh2g
Tags: 1.9.0+20050921-1
* akira yamada <akira@debian.org>
- new upstream snapshot. (2005-09-21)
    - [security] JVN#62914675 CVE-2005-2337
        - preserve safe level in the environment where a method is defined.
        - prohibit calling tainted method (>2) when $SAFE == 0.
- removed debian/patches/802_workaround_for_send.dpatch:
    - the patch is in upstream.
- debian/control: build-depends on libreadline5-dev.  (closes: #326333)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
require 'test/unit'
 
2
require 'soap/httpconfigloader'
 
3
require 'soap/rpc/driver'
 
4
 
 
5
if defined?(HTTPAccess2)
 
6
 
 
7
module SOAP
 
8
 
 
9
 
 
10
class TestHTTPConfigLoader < Test::Unit::TestCase
 
11
  DIR = File.dirname(File.expand_path(__FILE__))
 
12
 
 
13
  def setup
 
14
    @client = SOAP::RPC::Driver.new(nil, nil)
 
15
  end
 
16
 
 
17
  def test_property
 
18
    testpropertyname = File.join(DIR, 'soapclient.properties')
 
19
    File.open(testpropertyname, "w") do |f|
 
20
      f <<<<__EOP__
 
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
 
25
__EOP__
 
26
    end
 
27
    begin
 
28
      @client.loadproperty(testpropertyname)
 
29
      assert_equal('ALL', @client.options['protocol.http.ssl_config.ciphers'])
 
30
    ensure
 
31
      File.unlink(testpropertyname)
 
32
    end
 
33
  end
 
34
end
 
35
 
 
36
 
 
37
end
 
38
 
 
39
end