test/instrumentation/excon_test.rb in instana-1.7.4 vs test/instrumentation/excon_test.rb in instana-1.7.5
- old
+ new
@@ -45,12 +45,12 @@
refute_nil second_span.key?(:data)
refute_nil second_span[:data].key?(:http)
assert_equal "http://127.0.0.1:6511/", second_span[:data][:http][:url]
assert_equal 200, second_span[:data][:http][:status]
- # excon backtrace included check
- assert second_span.key?(:stack)
+ # excon backtrace not included by default check
+ assert !second_span.key?(:stack)
# Rack server trace validation
assert_equal 1, rs_trace.spans.count
rs_span = rs_trace.spans.to_a[0]
@@ -99,11 +99,11 @@
refute_nil second_span.key?(:data)
refute_nil second_span[:data].key?(:http)
assert_equal "http://127.0.0.1:6500/", second_span[:data][:http][:url]
assert_equal nil, second_span[:data][:http][:status]
- # excon backtrace included check
+ # excon span should include an error backtrace
assert second_span.key?(:stack)
# error validation
assert_equal true, second_span[:error]
#assert_equal 1, second_span[:ec]
@@ -152,20 +152,20 @@
# data keys/values
refute_nil second_span.key?(:data)
refute_nil second_span[:data].key?(:http)
assert_equal "http://127.0.0.1:6511/", second_span[:data][:http][:url]
assert_equal 200, second_span[:data][:http][:status]
- assert second_span.key?(:stack)
+ assert !second_span.key?(:stack)
refute_nil third_span.key?(:data)
refute_nil third_span[:data].key?(:http)
assert_equal "http://127.0.0.1:6511/", third_span[:data][:http][:url]
assert_equal 200, third_span[:data][:http][:status]
- assert third_span.key?(:stack)
+ assert !third_span.key?(:stack)
refute_nil fourth_span.key?(:data)
refute_nil fourth_span[:data].key?(:http)
assert_equal "http://127.0.0.1:6511/", fourth_span[:data][:http][:url]
assert_equal 200, fourth_span[:data][:http][:status]
- assert fourth_span.key?(:stack)
+ assert !fourth_span.key?(:stack)
end
end