test251 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. <servercmd>
  20. SLOWDOWN
  21. </servercmd>
  22. </reply>
  23. # Client-side
  24. <client>
  25. <server>
  26. ftp
  27. </server>
  28. <name>
  29. FTP dir list, PORT with specified IP and slow response
  30. </name>
  31. <command>
  32. ftp://%HOSTIP:%FTPPORT/ -P %CLIENTIP
  33. </command>
  34. </client>
  35. # Verify data after the test has been "shot"
  36. <verify>
  37. # Strip all valid kinds of PORT and EPRT that curl can send
  38. <strip>
  39. ^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}
  40. ^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|
  41. </strip>
  42. <protocol>
  43. USER anonymous
  44. PASS ftp@example.com
  45. PWD
  46. PORT 127,0,0,1,243,212
  47. TYPE A
  48. LIST
  49. QUIT
  50. </protocol>
  51. </verify>
  52. </testcase>