File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -338,13 +338,16 @@ mod test {
338338 #[ cfg( feature = "with-containers" ) ]
339339 use crate :: mock:: ssh as ssh_mock;
340340
341+ #[ cfg( feature = "with-containers" ) ]
342+ use ssh2_config:: ParseRule ;
343+
341344 #[ test]
342345 #[ cfg( feature = "with-containers" ) ]
343346 fn should_connect_to_ssh_server_auth_user_password ( ) {
344347 crate :: mock:: logger ( ) ;
345348 let config_file = ssh_mock:: create_ssh_config ( ) ;
346349 let opts = SshOpts :: new ( "sftp" )
347- . config_file ( config_file. path ( ) )
350+ . config_file ( config_file. path ( ) , ParseRule :: ALLOW_UNKNOWN_FIELDS )
348351 . password ( "password" ) ;
349352 let session = connect ( & opts) . ok ( ) . unwrap ( ) ;
350353 assert ! ( session. authenticated( ) ) ;
@@ -356,7 +359,7 @@ mod test {
356359 crate :: mock:: logger ( ) ;
357360 let config_file = ssh_mock:: create_ssh_config ( ) ;
358361 let opts = SshOpts :: new ( "sftp" )
359- . config_file ( config_file. path ( ) )
362+ . config_file ( config_file. path ( ) , ParseRule :: ALLOW_UNKNOWN_FIELDS )
360363 . key_storage ( Box :: new ( ssh_mock:: MockSshKeyStorage :: default ( ) ) ) ;
361364 let session = connect ( & opts) . ok ( ) . unwrap ( ) ;
362365 assert ! ( session. authenticated( ) ) ;
Original file line number Diff line number Diff line change @@ -677,6 +677,9 @@ mod test {
677677 #[ cfg( feature = "with-containers" ) ]
678678 use crate :: mock:: ssh as ssh_mock;
679679
680+ #[ cfg( feature = "with-containers" ) ]
681+ use ssh2_config:: ParseRule ;
682+
680683 #[ test]
681684 fn should_init_scp_fs ( ) {
682685 let mut client = ScpFs :: new ( SshOpts :: new ( "localhost" ) ) ;
@@ -1446,7 +1449,7 @@ mod test {
14461449 let mut client = ScpFs :: new (
14471450 SshOpts :: new ( "scp" )
14481451 . key_storage ( Box :: new ( ssh_mock:: MockSshKeyStorage :: default ( ) ) )
1449- . config_file ( config_file. path ( ) ) ,
1452+ . config_file ( config_file. path ( ) , ParseRule :: ALLOW_UNKNOWN_FIELDS ) ,
14501453 ) ;
14511454 assert ! ( client. connect( ) . is_ok( ) ) ;
14521455 // Create wrkdir
Original file line number Diff line number Diff line change @@ -602,6 +602,9 @@ mod test {
602602 #[ cfg( feature = "with-containers" ) ]
603603 use crate :: mock:: ssh as ssh_mock;
604604
605+ #[ cfg( feature = "with-containers" ) ]
606+ use ssh2_config:: ParseRule ;
607+
605608 #[ test]
606609 fn should_initialize_sftp_filesystem ( ) {
607610 let mut client = SftpFs :: new ( SshOpts :: new ( "127.0.0.1" ) ) ;
@@ -1263,7 +1266,7 @@ mod test {
12631266 let mut client = SftpFs :: new (
12641267 SshOpts :: new ( "sftp" )
12651268 . key_storage ( Box :: new ( ssh_mock:: MockSshKeyStorage :: default ( ) ) )
1266- . config_file ( config_file. path ( ) ) ,
1269+ . config_file ( config_file. path ( ) , ParseRule :: ALLOW_UNKNOWN_FIELDS ) ,
12671270 ) ;
12681271 assert ! ( client. connect( ) . is_ok( ) ) ;
12691272 // Create wrkdir
You can’t perform that action at this time.
0 commit comments