xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | SFTP |
| 5 | known_hosts |
| 6 | </keywords> |
| 7 | </info> |
| 8 | |
| 9 | # |
| 10 | # Client-side |
| 11 | <client> |
| 12 | <server> |
| 13 | sftp |
| 14 | </server> |
| 15 | <precheck> |
| 16 | mkdir -p %PWD/log/test%TESTNUMBER.dir/.ssh |
| 17 | </precheck> |
| 18 | <features> |
| 19 | sftp |
| 20 | !oldlibssh |
| 21 | </features> |
| 22 | <name> |
| 23 | SFTP with corrupted known_hosts |
| 24 | </name> |
| 25 | <command> |
| 26 | -u : sftp://%HOSTIP:%SSHPORT/ -l |
| 27 | </command> |
| 28 | <file name="log/test%TESTNUMBER.dir/.ssh/known_hosts"> |
| 29 | |1|qy29Y1x/+/F39AzdG5515YSSw+c=|iB2WX5jrU3ZTWc+ZfGau7HHEvBc= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAynDN8cDJ3xNzRjTNNGciSHSxpubxhZ6YnkLdp1TkrGW8n\ |
| 30 | R93Ey5VtBeBblYTRlFXBWJgKFcTKBRJ/O4qBZwbUgt10AHj31i6h8NehfT19tR8wG/YCmj3KtYLHmwdzmW1edEL9G2NdX2KiKYv7/zuly3QvmP0QA0NhWkAz0KdWNM= |
| 31 | </file> |
| 32 | <setenv> |
| 33 | CURL_HOME=%PWD/log/test%TESTNUMBER.dir |
| 34 | </setenv> |
| 35 | </client> |
| 36 | |
| 37 | # Verify data after the test has been "shot" |
| 38 | <verify> |
| 39 | # old libssh installs return the wrong thing |
| 40 | <errorcode> |
| 41 | 60 |
| 42 | </errorcode> |
| 43 | <valgrind> |
| 44 | disable |
| 45 | </valgrind> |
| 46 | </verify> |
| 47 | </testcase> |
| 48 | |