Sha256: 3420a27268d30d57dddacba92f02b956ea238743608057179dfeae71850f04b8
Contents?: true
Size: 737 Bytes
Versions: 16
Compression:
Stored size: 737 Bytes
Contents
require 'webrick' require File.dirname(__FILE__) + '/../lib/yawast' require File.dirname(__FILE__) + '/base' class TestScannerApacheServerStatus < Minitest::Test include TestBase def test_server_status_present port = rand(60000) + 1024 # pick a random port number server = start_web_server File.dirname(__FILE__) + '/data/apache_server_status.txt', 'server-status', port override_stdout uri = Yawast::Commands::Utils.extract_uri(["http://localhost:#{port}"]) Yawast::Shared::Http.setup nil, nil Yawast::Scanner::Apache.check_server_status uri assert stdout_value.include?('Apache Server Status page found'), 'Apache Server Status page warning not found' server.exit restore_stdout end end
Version data entries
16 entries across 16 versions & 1 rubygems