Sha256: df035af1d127453923eecc8cd8967e39bc6d3aa6f9fc8797fe4784dc9673171e

Contents?: true

Size: 414 Bytes

Versions: 16

Compression:

Stored size: 414 Bytes

Contents

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

class TestScannerNginxHeaders < Minitest::Test
  include TestBase

  def test_nginx_basic_banner
    server = 'nginx/1.8.1'

    override_stdout
    Yawast::Scanner::Nginx.check_banner server

    assert stdout_value.include?("nginx Version: #{server}"), "Unexpected banner: #{stdout_value}"

    restore_stdout
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
yawast-0.6.0.beta2 test/test_scan_nginx_banner.rb
yawast-0.6.0.beta1 test/test_scan_nginx_banner.rb
yawast-0.5.2 test/test_scan_nginx_banner.rb
yawast-0.5.1 test/test_scan_nginx_banner.rb
yawast-0.5.1.beta1 test/test_scan_nginx_banner.rb
yawast-0.5.0 test/test_scan_nginx_banner.rb
yawast-0.5.0.beta8 test/test_scan_nginx_banner.rb
yawast-0.5.0.beta7 test/test_scan_nginx_banner.rb
yawast-0.5.0.beta6 test/test_scan_nginx_banner.rb
yawast-0.5.0.beta5 test/test_scan_nginx_banner.rb
yawast-0.5.0.beta4 test/test_scan_nginx_banner.rb
yawast-0.5.0.beta3 test/test_scan_nginx_banner.rb
yawast-0.5.0.beta2 test/test_scan_nginx_banner.rb
yawast-0.5.0.beta1 test/test_scan_nginx_banner.rb
yawast-0.4.0 test/test_scan_nginx_banner.rb
yawast-0.4.0.beta5 test/test_scan_nginx_banner.rb