Sha256: af9caa8332df0e490233d5feca1df52deba2f18417e94bd62543849810349b28

Contents?: true

Size: 441 Bytes

Versions: 10

Compression:

Stored size: 441 Bytes

Contents

require 'minitest/autorun'
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

10 entries across 10 versions & 1 rubygems

Version Path
yawast-0.4.0.beta4 test/test_scan_nginx_banner.rb
yawast-0.4.0.beta3 test/test_scan_nginx_banner.rb
yawast-0.4.0.beta2 test/test_scan_nginx_banner.rb
yawast-0.4.0.beta1 test/test_scan_nginx_banner.rb
yawast-0.3.0 test/test_scan_nginx_banner.rb
yawast-0.3.0.beta2 test/test_scan_nginx_banner.rb
yawast-0.3.0.beta1 test/test_scan_nginx_banner.rb
yawast-0.2.2 test/test_scan_nginx_banner.rb
yawast-0.2.1 test/test_scan_nginx_banner.rb
yawast-0.2.0.beta3 test/test_scan_nginx_banner.rb