Skip to content

Commit

Permalink
failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emdneto committed Jul 16, 2024
1 parent ed8ab4c commit 6f28546
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,28 @@ def test_schema_url(self):
"https://opentelemetry.io/schemas/1.11.0",
)

def test_schema_url_new_semconv(self):
pool = urllib3.HTTPSConnectionPool("mock")
response = pool.request("GET", "/status/200")

self.assertEqual(b"Hello!", response.data)
span = self.assert_span()
self.assertEqual(
span.instrumentation_info.schema_url,
"https://opentelemetry.io/schemas/1.21.0",
)

def test_schema_url_both_semconv(self):
pool = urllib3.HTTPSConnectionPool("mock")
response = pool.request("GET", "/status/200")

self.assertEqual(b"Hello!", response.data)
span = self.assert_span()
self.assertEqual(
span.instrumentation_info.schema_url,
"https://opentelemetry.io/schemas/1.21.0",
)

def test_basic_not_found(self):
url_404 = "http://mock/status/404"
httpretty.register_uri(httpretty.GET, url_404, status=404)
Expand Down

0 comments on commit 6f28546

Please sign in to comment.