Sha256: 276206378207217aca16c8f81eb6c82c3e3394fa6a1a7c5573d4a077adb4c77a

Contents?: true

Size: 432 Bytes

Versions: 7

Compression:

Stored size: 432 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::Plugins::Servers::Nginx.check_banner server

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

    restore_stdout
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
yawast-0.7.0.beta2 test/test_scan_nginx_banner.rb
yawast-0.7.0.beta1 test/test_scan_nginx_banner.rb
yawast-0.6.0 test/test_scan_nginx_banner.rb
yawast-0.6.0.beta6 test/test_scan_nginx_banner.rb
yawast-0.6.0.beta5 test/test_scan_nginx_banner.rb
yawast-0.6.0.beta4 test/test_scan_nginx_banner.rb
yawast-0.6.0.beta3 test/test_scan_nginx_banner.rb