Sha256: 89d3b94a610c3318732f4978508d7008767c45ee6e432cfaff14f8f531b2e43e

Contents?: true

Size: 468 Bytes

Versions: 25

Compression:

Stored size: 468 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper'))
require 'ostruct'

class NewRelic::Agent::TransactionInfoTest < Test::Unit::TestCase
  def setup
    @request = OpenStruct.new(:cookies => {'NRAGENT' => 'tk=1234<tag>evil</tag>5678'})
  end
  
  def test_get_token_gets_sanitized_token_from_cookie
    assert_equal('1234&lt;tag&gt;evil&lt;/tag&gt;5678',
                 NewRelic::Agent::TransactionInfo.get_token(@request))
  end
end

Version data entries

25 entries across 25 versions & 4 rubygems

Version Path
newrelic_rpm-3.4.1 test/new_relic/agent/transaction_info_test.rb
newrelic_rpm-3.4.1.beta1 test/new_relic/agent/transaction_info_test.rb
ghazel-newrelic_rpm-3.4.0.2 test/new_relic/agent/transaction_info_test.rb
newrelic_rpm-3.4.0.1 test/new_relic/agent/transaction_info_test.rb
newrelic_rpm-3.4.0 test/new_relic/agent/transaction_info_test.rb
newrelic_rpm-3.4.0.beta2 test/new_relic/agent/transaction_info_test.rb
newrelic_rpm-3.3.5 test/new_relic/agent/transaction_info_test.rb
newrelic_rpm-3.3.5.beta1 test/new_relic/agent/transaction_info_test.rb
newrelic_rpm-3.4.0.beta1 test/new_relic/agent/transaction_info_test.rb
dolores_rpm-3.3.4.8 test/new_relic/agent/transaction_info_test.rb
dolores_rpm-3.3.4.7 test/new_relic/agent/transaction_info_test.rb
dolores_rpm-3.3.4.6 test/new_relic/agent/transaction_info_test.rb
dolores_rpm-3.3.4.5 test/new_relic/agent/transaction_info_test.rb
dolores_rpm-3.3.4.4 test/new_relic/agent/transaction_info_test.rb
dolores_rpm-3.3.4.3 test/new_relic/agent/transaction_info_test.rb
dolores_rpm-3.3.4.1.fork2 test/new_relic/agent/transaction_info_test.rb
dolores_rpm-3.3.4.1.fork test/new_relic/agent/transaction_info_test.rb
wd_newrelic_rpm-3.3.4.1 test/new_relic/agent/transaction_info_test.rb
dolores_rpm-3.3.4.fork test/new_relic/agent/transaction_info_test.rb
newrelic_rpm-3.3.4.1 test/new_relic/agent/transaction_info_test.rb