Skip to content
Browse files

remove SSL test, it doesn't work now that we're actually checking certs

  • Loading branch information...
1 parent 087d18a commit 79a9acacbeb4a9144d61c347cfd86e7a9f390f6f bct committed May 1, 2009
Showing with 3 additions and 26 deletions.
  1. +3 −26 test/test_http.rb
View
29 test/test_http.rb
@@ -24,7 +24,7 @@ def setup
def test_parse_wwwauth
# a Basic WWW-Authenticate
header = 'realm="SokEvo"'
-
+
params = @http.send :parse_quoted_wwwauth, header
assert_equal "SokEvo", params[:realm]
@@ -272,29 +272,6 @@ def test_multiple_auth
assert_authenticates
end
- def test_https
- require 'webrick/https'
-
- @s = WEBrick::HTTPServer.new(
- :Port => (@port + 1),
- :DocumentRoot => Dir::pwd + "/htdocs",
- :Logger => WEBrick::Log.new($stderr, WEBrick::Log::FATAL),
- :AccessLog => [],
- :SSLEnable => true,
- :SSLVerifyClient => ::OpenSSL::SSL::VERIFY_NONE,
- :SSLCertName => [ ["C","CA"], ["O","localhost"], ["CN", "WWW"] ]
- )
-
- mount_one_shot do |req,res|
- res.body = SECRET_DATA
- end
-
- res = @http.get("https://localhost:#{@port + 1}/")
-
- assert_equal "200", res.code
- assert_equal SECRET_DATA, res.body
- end
-
# mount a block on the test server, shutting the server down after a
# single request
def mount_one_shot &block
@@ -309,8 +286,8 @@ def mount_one_shot &block
# test that we authenticated properly
def assert_authenticates
get_root
- assert_equal "200", @res.code
- assert_equal SECRET_DATA, @res.body
+ assert_equal "200", @res.code
+ assert_equal SECRET_DATA, @res.body
end
# performs a GET on the test server

0 comments on commit 79a9aca

Please sign in to comment.
Something went wrong with that request. Please try again.