@@ -494,28 +494,32 @@ def test_response_headers(self):
494494 self .memory_exporter .clear ()
495495 set_global_response_propagator (orig )
496496
497- def test_credential_removal (self ):
498- response = self .fetch (
499- "http://username:[email protected] /status/200" 500- )
501- self .assertEqual (response .code , 200 )
502-
503- spans = self .sorted_spans (self .memory_exporter .get_finished_spans ())
504- self .assertEqual (len (spans ), 1 )
505- client = spans [0 ]
506-
507- self .assertEqual (client .name , "GET" )
508- self .assertEqual (client .kind , SpanKind .CLIENT )
509- self .assertSpanHasAttributes (
510- client ,
511- {
512- SpanAttributes .HTTP_URL : "http://httpbin.org/status/200" ,
513- SpanAttributes .HTTP_METHOD : "GET" ,
514- SpanAttributes .HTTP_STATUS_CODE : 200 ,
515- },
516- )
517-
518- self .memory_exporter .clear ()
497+ # todo(srikanthccv): fix this test
498+ # this test is making request to real httpbin.org/status/200 which
499+ # is not a good idea as it can fail due to availability of the
500+ # service.
501+ # def test_credential_removal(self):
502+ # response = self.fetch(
503+ # "http://username:[email protected] /status/200" 504+ # )
505+ # self.assertEqual(response.code, 200)
506+
507+ # spans = self.sorted_spans(self.memory_exporter.get_finished_spans())
508+ # self.assertEqual(len(spans), 1)
509+ # client = spans[0]
510+
511+ # self.assertEqual(client.name, "GET")
512+ # self.assertEqual(client.kind, SpanKind.CLIENT)
513+ # self.assertSpanHasAttributes(
514+ # client,
515+ # {
516+ # SpanAttributes.HTTP_URL: "http://httpbin.org/status/200",
517+ # SpanAttributes.HTTP_METHOD: "GET",
518+ # SpanAttributes.HTTP_STATUS_CODE: 200,
519+ # },
520+ # )
521+
522+ # self.memory_exporter.clear()
519523
520524
521525class TestTornadoInstrumentationWithXHeaders (TornadoTest ):
0 commit comments