instana 1.204.0.pre2 → 1.204.0.pre3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/instana/secrets.rb +1 -1
- data/lib/instana/version.rb +1 -1
- data/test/instrumentation/net_http_test.rb +18 -0
- data/test/secrets_test.rb +9 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6c2235234526a14bbb8818b104e9417f4683179b2166cb222fe136af32794d4
|
4
|
+
data.tar.gz: 16a190359fa7208ceeaf7170db5cfc732bcb464837f6acde9eb1c5be08b09eba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1465d42aeee46d0db43c2563b6bea541efddb553bb30fec875cc1cc2b5de30303476258ad889ccc9c6b10c4e1164f12001c743c16de0dafebce8e0020fd850b
|
7
|
+
data.tar.gz: b87b819750e3901f524609b89c2c8a96ac54965d8c6db2f4100a9cc2586cfafd55be20b30516364fdbec1199da7db8c987b6fb8f4edfc82761624caf5ea5d94b
|
data/lib/instana/secrets.rb
CHANGED
data/lib/instana/version.rb
CHANGED
@@ -29,6 +29,24 @@ class NetHTTPTest < Minitest::Test
|
|
29
29
|
WebMock.disable_net_connect!
|
30
30
|
end
|
31
31
|
|
32
|
+
def test_get_without_query
|
33
|
+
clear_all!
|
34
|
+
WebMock.allow_net_connect!
|
35
|
+
|
36
|
+
Instana.tracer.start_or_continue_trace(:"net-http-test") do
|
37
|
+
Net::HTTP.get(URI('http://127.0.0.1:6511/'))
|
38
|
+
end
|
39
|
+
|
40
|
+
spans = ::Instana.processor.queued_spans
|
41
|
+
assert_equal 3, spans.length
|
42
|
+
|
43
|
+
http_span = find_first_span_by_name(spans, :'net-http')
|
44
|
+
assert_equal "http://127.0.0.1:6511/", http_span[:data][:http][:url]
|
45
|
+
assert_equal "200", http_span[:data][:http][:status]
|
46
|
+
|
47
|
+
WebMock.disable_net_connect!
|
48
|
+
end
|
49
|
+
|
32
50
|
def test_block_request
|
33
51
|
clear_all!
|
34
52
|
WebMock.allow_net_connect!
|
data/test/secrets_test.rb
CHANGED
@@ -88,6 +88,15 @@ class SecretsTest < Minitest::Test
|
|
88
88
|
assert_redacted @subject.remove_from_query(url, sample_config), %w(filter[instantiate]), raw_str: true
|
89
89
|
end
|
90
90
|
|
91
|
+
def test_with_nil
|
92
|
+
sample_config = {
|
93
|
+
"matcher"=>"contains",
|
94
|
+
"list"=>["stan"]
|
95
|
+
}
|
96
|
+
|
97
|
+
assert_equal @subject.remove_from_query(nil, sample_config), nil
|
98
|
+
end
|
99
|
+
|
91
100
|
private
|
92
101
|
|
93
102
|
def url_for(keys)
|