@@ -295,8 +295,8 @@ async def test_ssl_assert_fingerprint(httpbin_cert_fingerprint):
295295 node = AiohttpHttpNode (
296296 NodeConfig (
297297 scheme = "https" ,
298- host = "httpbin.org " ,
299- port = 443 ,
298+ host = "localhost " ,
299+ port = 9200 ,
300300 ssl_assert_fingerprint = httpbin_cert_fingerprint ,
301301 )
302302 )
@@ -308,22 +308,22 @@ async def test_ssl_assert_fingerprint(httpbin_cert_fingerprint):
308308
309309@pytest .mark .asyncio
310310async def test_default_headers ():
311- node = AiohttpHttpNode (NodeConfig (scheme = "https " , host = "httpbin.org " , port = 443 ))
311+ node = AiohttpHttpNode (NodeConfig (scheme = "http " , host = "localhost " , port = 8080 ))
312312 resp , data = await node .perform_request ("GET" , "/anything" )
313313
314314 assert resp .status == 200
315315 headers = json .loads (data )["headers" ]
316316 headers .pop ("X-Amzn-Trace-Id" , None )
317- assert headers == {"Host" : "httpbin.org " , "User-Agent" : DEFAULT_USER_AGENT }
317+ assert headers == {"Host" : "localhost:8080 " , "User-Agent" : DEFAULT_USER_AGENT }
318318
319319
320320@pytest .mark .asyncio
321321async def test_custom_headers ():
322322 node = AiohttpHttpNode (
323323 NodeConfig (
324- scheme = "https " ,
325- host = "httpbin.org " ,
326- port = 443 ,
324+ scheme = "http " ,
325+ host = "localhost " ,
326+ port = 8080 ,
327327 headers = {"accept-encoding" : "gzip" , "Content-Type" : "application/json" },
328328 )
329329 )
@@ -342,7 +342,7 @@ async def test_custom_headers():
342342 assert headers == {
343343 "Accept-Encoding" : "gzip" ,
344344 "Content-Type" : "application/x-ndjson" ,
345- "Host" : "httpbin.org " ,
345+ "Host" : "localhost:8080 " ,
346346 "User-Agent" : "custom-agent/1.2.3" ,
347347 }
348348
@@ -351,9 +351,9 @@ async def test_custom_headers():
351351async def test_custom_user_agent ():
352352 node = AiohttpHttpNode (
353353 NodeConfig (
354- scheme = "https " ,
355- host = "httpbin.org " ,
356- port = 443 ,
354+ scheme = "http " ,
355+ host = "localhost " ,
356+ port = 8080 ,
357357 headers = {
358358 "accept-encoding" : "gzip" ,
359359 "Content-Type" : "application/json" ,
@@ -372,7 +372,7 @@ async def test_custom_user_agent():
372372 assert headers == {
373373 "Accept-Encoding" : "gzip" ,
374374 "Content-Type" : "application/json" ,
375- "Host" : "httpbin.org " ,
375+ "Host" : "localhost:8080 " ,
376376 "User-Agent" : "custom-agent/1.2.3" ,
377377 }
378378
@@ -385,7 +385,7 @@ def test_repr():
385385@pytest .mark .asyncio
386386async def test_head ():
387387 node = AiohttpHttpNode (
388- NodeConfig (scheme = "https " , host = "httpbin.org " , port = 443 , http_compress = True )
388+ NodeConfig (scheme = "http " , host = "localhost " , port = 8080 , http_compress = True )
389389 )
390390 resp , data = await node .perform_request ("HEAD" , "/anything" )
391391
0 commit comments