Skip to content

Commit b631527

Browse files
Change GET to POST in test_extended_request_hook
1 parent 0f7ae6b commit b631527

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

instrumentation/opentelemetry-instrumentation-urllib3/tests/test_urllib3_integration.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def setUp(self):
4545
httpretty.enable(allow_net_connect=False)
4646
httpretty.register_uri(httpretty.GET, self.HTTP_URL, body="Hello!")
4747
httpretty.register_uri(httpretty.GET, self.HTTPS_URL, body="Hello!")
48+
httpretty.register_uri(httpretty.POST, self.HTTP_URL, body="Hello!")
49+
4850

4951
def tearDown(self):
5052
super().tearDown()
@@ -294,7 +296,7 @@ def extended_request_hook(span, request, headers, body):
294296
body = "param1=1&param2=2"
295297

296298
pool = urllib3.HTTPConnectionPool("httpbin.org")
297-
response = pool.request("GET", "/status/200", body=body, headers=headers)
299+
response = pool.request("POST", "/status/200", body=body, headers=headers)
298300

299301
self.assertEqual(b"Hello!", response.data)
300302

0 commit comments

Comments
 (0)