Sha256: a262911de97418042711c7144e550db7a6a534fc56c8d6d1e0c3b8f1e02f96a1

Contents?: true

Size: 634 Bytes

Versions: 17

Compression:

Stored size: 634 Bytes

Contents

require File.dirname(__FILE__) + '/../../spec_helper'

describe RequestLogAnalyzer::Filter::Anonymize, 'anonymize request' do

  before(:each) do
    @filter = RequestLogAnalyzer::Filter::Anonymize.new(testing_format)
  end

  it "should anonimize ip" do
    @filter.filter(request(:ip => '123.123.123.123'))[:ip].should_not eql('123.123.123.123')
  end

  it "should anonimize url" do
    @filter.filter(request(:url => 'https://test.mysite.com/employees'))[:url].should eql('http://example.com/employees')
  end

  it "should fuzz durations" do
    @filter.filter(request(:duration => 100))[:duration].should_not eql(100)
  end

end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
request-log-analyzer-1.8.0 spec/unit/filter/anonymize_filter_spec.rb
request-log-analyzer-1.7.0 spec/unit/filter/anonymize_filter_spec.rb
request-log-analyzer-1.6.4 spec/unit/filter/anonymize_filter_spec.rb
request-log-analyzer-1.6.3 spec/unit/filter/anonymize_filter_spec.rb
request-log-analyzer-1.6.2 spec/unit/filter/anonymize_filter_spec.rb
request-log-analyzer-1.6.1 spec/unit/filter/anonymize_filter_spec.rb
request-log-analyzer-1.6.0 spec/unit/filter/anonymize_filter_spec.rb
request-log-analyzer-1.5.4 spec/unit/filter/anonymize_filter_spec.rb
request-log-analyzer-1.5.3 spec/unit/filter/anonymize_filter_spec.rb
request-log-analyzer-1.5.2 spec/unit/filter/anonymize_filter_spec.rb
request-log-analyzer-1.5.1 spec/unit/filter/anonymize_filter_spec.rb
request-log-analyzer-1.5.0 spec/unit/filter/anonymize_filter_spec.rb
request-log-analyzer-1.4.2 spec/unit/filter/anonymize_filter_spec.rb
ngmoco-request-log-analyzer-1.4.2 spec/unit/filter/anonymize_filter_spec.rb
request-log-analyzer-1.4.1 spec/unit/filter/anonymize_filter_spec.rb
request-log-analyzer-1.4.0.1 spec/unit/filter/anonymize_filter_spec.rb
request-log-analyzer-1.4.0 spec/unit/filter/anonymize_filter_spec.rb