test215 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. </keywords>
  6. </info>
  7. # Server-side
  8. <reply>
  9. # When doing LIST, we get the default list output hard-coded in the test
  10. # FTP server
  11. <datacheck mode="text">
  12. total 20
  13. drwxr-xr-x 8 98 98 512 Oct 22 13:06 .
  14. drwxr-xr-x 8 98 98 512 Oct 22 13:06 ..
  15. drwxr-xr-x 2 98 98 512 May 2 1996 .NeXT
  16. -r--r--r-- 1 0 1 35 Jul 16 1996 README
  17. lrwxrwxrwx 1 0 1 7 Dec 9 1999 bin -> usr/bin
  18. dr-xr-xr-x 2 0 1 512 Oct 1 1997 dev
  19. drwxrwxrwx 2 98 98 512 May 29 16:04 download.html
  20. dr-xr-xr-x 2 0 1 512 Nov 30 1995 etc
  21. drwxrwxrwx 2 98 1 512 Oct 30 14:33 pub
  22. dr-xr-xr-x 5 0 1 512 Oct 1 1997 usr
  23. </datacheck>
  24. </reply>
  25. # Client-side
  26. <client>
  27. <server>
  28. ftp
  29. </server>
  30. <name>
  31. Get two FTP dir listings from the same remote dir: no second CWD
  32. </name>
  33. <command>
  34. ftp://%HOSTIP:%FTPPORT/a/path/215/ ftp://%HOSTIP:%FTPPORT/a/path/215/
  35. </command>
  36. </client>
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. <protocol>
  40. USER anonymous
  41. PASS ftp@example.com
  42. PWD
  43. CWD a
  44. CWD path
  45. CWD 215
  46. EPSV
  47. TYPE A
  48. LIST
  49. EPSV
  50. LIST
  51. QUIT
  52. </protocol>
  53. </verify>
  54. </testcase>