@@ -55,10 +55,10 @@ pub trait SshServerContainer {
5555 fn host_ip ( & self ) -> IpAddr ;
5656
5757 /// Get the test username configured in the container
58- fn test_username ( & self ) -> & str ;
58+ fn username ( & self ) -> & str ;
5959
6060 /// Get the test password configured in the container
61- fn test_password ( & self ) -> & str ;
61+ fn password ( & self ) -> & str ;
6262}
6363
6464#[ cfg( test) ]
@@ -79,8 +79,8 @@ mod tests {
7979 let host_ip = ssh_container. host_ip ( ) ;
8080 assert_eq ! ( host_ip, IpAddr :: V4 ( Ipv4Addr :: LOCALHOST ) ) ;
8181
82- assert_eq ! ( ssh_container. test_username ( ) , "testuser" ) ;
83- assert_eq ! ( ssh_container. test_password ( ) , "testpass" ) ;
82+ assert_eq ! ( ssh_container. username ( ) , "testuser" ) ;
83+ assert_eq ! ( ssh_container. password ( ) , "testpass" ) ;
8484 }
8585 Err ( e) => {
8686 panic ! ( "Mock container should always start successfully: {e}" ) ;
@@ -101,8 +101,8 @@ mod tests {
101101 let host_ip = ssh_container. host_ip ( ) ;
102102 assert_eq ! ( host_ip, IpAddr :: V4 ( Ipv4Addr :: LOCALHOST ) ) ;
103103
104- assert_eq ! ( ssh_container. test_username ( ) , "testuser" ) ;
105- assert_eq ! ( ssh_container. test_password ( ) , "testpass" ) ;
104+ assert_eq ! ( ssh_container. username ( ) , "testuser" ) ;
105+ assert_eq ! ( ssh_container. password ( ) , "testpass" ) ;
106106 }
107107 Err ( e) => {
108108 // Real container start might fail in CI environments without Docker
@@ -122,16 +122,16 @@ mod tests {
122122 let container: & dyn SshServerContainer = & mock;
123123 assert ! ( container. ssh_port( ) > 0 ) ;
124124 assert_eq ! ( container. host_ip( ) , IpAddr :: V4 ( Ipv4Addr :: LOCALHOST ) ) ;
125- assert_eq ! ( container. test_username ( ) , "testuser" ) ;
126- assert_eq ! ( container. test_password ( ) , "testpass" ) ;
125+ assert_eq ! ( container. username ( ) , "testuser" ) ;
126+ assert_eq ! ( container. password ( ) , "testpass" ) ;
127127 }
128128
129129 #[ tokio:: test]
130130 async fn it_should_enable_generic_code ( ) {
131131 // Helper function that works with any SshServerContainer
132132 fn verify_container < C : SshServerContainer > ( container : & C ) {
133133 assert ! ( container. ssh_port( ) > 0 ) ;
134- assert_eq ! ( container. test_username ( ) , "testuser" ) ;
134+ assert_eq ! ( container. username ( ) , "testuser" ) ;
135135 }
136136
137137 let mock = MockSshServerContainer :: start ( )
0 commit comments