Sha256: 69b7f0d3c5f1e1202cc2b7ee2bbf1a31b9c62d86ef4b017ddd1e86a2d637324d
Contents?: true
Size: 656 Bytes
Versions: 2
Compression:
Stored size: 656 Bytes
Contents
require 'minitest/autorun' require 'webrick' require './lib/yawast' require './test/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 'test/data/apache_server_status.txt', 'server-status', port override_stdout uri = Yawast::Commands::Utils.extract_uri(["http://localhost:#{port}"]) 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yawast-0.2.0.beta2 | test/test_scan_apache_server_status.rb |
yawast-0.2.0.beta1 | test/test_scan_apache_server_status.rb |