5050 client = paramiko .SSHClient ()
5151 client .load_system_host_keys ()
5252 client .set_missing_host_key_policy (paramiko .AutoAddPolicy ())
53- client .connect ('localhost ' , username = os .getenv ('USER' ), sock = proxy )
53+ client .connect ('127.0.0.1 ' , username = os .getenv ('USER' ), sock = proxy )
5454
5555 no_local_ssh = False
5656
@@ -342,7 +342,7 @@ def test_datasink_to_s3(dummy_input, tmpdir):
342342 aws_access_key_id = 'mykey' ,
343343 aws_secret_access_key = 'mysecret' ,
344344 service_name = 's3' ,
345- endpoint_url = 'http://localhost :4567' ,
345+ endpoint_url = 'http://127.0.0.1 :4567' ,
346346 use_ssl = False )
347347 resource .meta .client .meta .events .unregister ('before-sign.s3' , fix_s3_host )
348348
@@ -659,7 +659,7 @@ def _mock_get_ssh_client(self):
659659 client = paramiko .SSHClient ()
660660 client .load_system_host_keys ()
661661 client .set_missing_host_key_policy (paramiko .AutoAddPolicy ())
662- client .connect ('localhost ' , username = os .getenv ('USER' ), sock = proxy )
662+ client .connect ('127.0.0.1 ' , username = os .getenv ('USER' ), sock = proxy )
663663 return client
664664 MockSSHDataGrabber = copy .copy (nio .SSHDataGrabber )
665665 MockSSHDataGrabber ._get_ssh_client = _mock_get_ssh_client
@@ -668,7 +668,7 @@ def _mock_get_ssh_client(self):
668668 ssh_grabber = MockSSHDataGrabber (infields = ['test' ],
669669 outfields = ['test_file' ])
670670 ssh_grabber .inputs .base_directory = str (source_dir )
671- ssh_grabber .inputs .hostname = 'localhost '
671+ ssh_grabber .inputs .hostname = '127.0.0.1 '
672672 ssh_grabber .inputs .field_template = dict (test_file = '%s.hdr' )
673673 ssh_grabber .inputs .template = ''
674674 ssh_grabber .inputs .template_args = dict (test_file = [['test' ]])
0 commit comments