Sha256: eb00257d996d47d3fa3c8c4c47d9644e962d6eb82fdea08fd6700af434e3eac7
Contents?: true
Size: 748 Bytes
Versions: 11
Compression:
Stored size: 748 Bytes
Contents
require 'webrick' require File.dirname(__FILE__) + '/../lib/yawast' require File.dirname(__FILE__) + '/base' class TestScannerApacheServerInfo < Minitest::Test include TestBase def test_server_info_present port = rand(60000) + 1024 # pick a random port number server = start_web_server File.dirname(__FILE__) + '/data/apache_server_info.txt', 'server-info', port override_stdout uri = Yawast::Commands::Utils.extract_uri(["http://localhost:#{port}"]) Yawast::Shared::Http.setup nil, nil Yawast::Scanner::Plugins::Servers::Apache.check_server_info uri assert stdout_value.include?('Apache Server Information page found'), 'Apache Server Info page warning not found' server.exit restore_stdout end end
Version data entries
11 entries across 11 versions & 1 rubygems