test215 1.2 KB

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