Sha256: 210d2fdbca169671be45d119b41ee949ed76dddf0fa8a5ae380b3bfe5472656b

Contents?: true

Size: 658 Bytes

Versions: 10

Compression:

Stored size: 658 Bytes

Contents

require 'webrick'
require File.dirname(__FILE__) + '/../lib/yawast'
require File.dirname(__FILE__) + '/base'

class TestSSLLabsInfo < Minitest::Test
  include TestBase
  def test_info_msg_present
    port = rand(60000) + 1024 # pick a random port number
    server = start_web_server File.dirname(__FILE__) + '/data/ssl_labs_info.json', 'api/v3/info', port

    uri = Yawast::Commands::Utils.extract_uri(["http://localhost:#{port}"])

    body = Yawast::Scanner::Plugins::SSL::SSLLabs::Info.call_info uri
    msg = Yawast::Scanner::Plugins::SSL::SSLLabs::Info.extract_msg body

    assert msg != nil, 'SSL Labs: Info Msg Not Found'

    server.exit
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
yawast-0.7.2 test/test_ssl_labs_info.rb
yawast-0.7.1 test/test_ssl_labs_info.rb
yawast-0.7.0 test/test_ssl_labs_info.rb
yawast-0.7.0.beta3 test/test_ssl_labs_info.rb
yawast-0.7.0.beta2 test/test_ssl_labs_info.rb
yawast-0.7.0.beta1 test/test_ssl_labs_info.rb
yawast-0.6.0 test/test_ssl_labs_info.rb
yawast-0.6.0.beta6 test/test_ssl_labs_info.rb
yawast-0.6.0.beta5 test/test_ssl_labs_info.rb
yawast-0.6.0.beta4 test/test_ssl_labs_info.rb