Sha256: 2c4762346f5d360b8fa29ea0229af39128c09bc7b7385d99fd8711142506ee95

Contents?: true

Size: 437 Bytes

Versions: 3

Compression:

Stored size: 437 Bytes

Contents

require 'rfuzz/session'

context "Base HTTP Protocol" do
  setup do
    @sess = RFuzz::Session.new :host => "localhost", :port => 3000
  end

  specify "Blocks Long URIs" do
    @sess.run(10) do |c,r|
      uris = r.uris(50,r.num(90) + 1)

      uris.each do |u| 
        resp = nil
        @sess.count_errors(:illegal) { resp = c.get(u * 512) }
        resp.http_status.should_match /^2[0-9][0-9]$/ if resp
      end
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rfuzz-0.9 examples/mongrel_test_suite/test/http/base_protocol.rb
rfuzz-0.7 examples/mongrel_test_suite/test/http/base_protocol.rb
rfuzz-0.8 examples/mongrel_test_suite/test/http/base_protocol.rb