test574 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. LIST
  6. RETR
  7. wildcardmatch
  8. ftplistparser
  9. </keywords>
  10. </info>
  11. #
  12. # Server-side
  13. <reply>
  14. <data mode="text">
  15. </data>
  16. </reply>
  17. # Client-side
  18. <client>
  19. <server>
  20. ftp
  21. </server>
  22. <tool>
  23. lib574
  24. </tool>
  25. <name>
  26. FTP wildcard download - changed fnmatch, 2x perform (UNIX LIST response)
  27. </name>
  28. <command>
  29. ftp://%HOSTIP:%FTPPORT/fully_simulated/UNIX/*.txt
  30. </command>
  31. </client>
  32. ############################################
  33. # Verify data after the test has been "shot"
  34. <verify>
  35. <errorcode>
  36. 0
  37. </errorcode>
  38. # THERE SHOULD NOT BE "SIZE"! and one "USER/PASS"
  39. <protocol>
  40. USER anonymous
  41. PASS ftp@example.com
  42. PWD
  43. CWD fully_simulated
  44. CWD UNIX
  45. EPSV
  46. TYPE A
  47. LIST
  48. EPSV
  49. TYPE I
  50. RETR chmod1
  51. EPSV
  52. RETR chmod2
  53. EPSV
  54. RETR chmod3
  55. EPSV
  56. RETR empty_file.dat
  57. EPSV
  58. RETR file.txt
  59. EPSV
  60. RETR someothertext.txt
  61. CWD /
  62. CWD fully_simulated
  63. CWD UNIX
  64. EPSV
  65. TYPE A
  66. LIST
  67. EPSV
  68. TYPE I
  69. RETR chmod1
  70. EPSV
  71. RETR chmod2
  72. EPSV
  73. RETR chmod3
  74. EPSV
  75. RETR empty_file.dat
  76. EPSV
  77. RETR file.txt
  78. EPSV
  79. RETR someothertext.txt
  80. QUIT
  81. </protocol>
  82. <stdout mode="text">
  83. This file should have permissions 444
  84. This file should have permissions 666
  85. This file should have permissions 777
  86. This is content of file "file.txt"
  87. Some junk ;-) This file does not really exist.
  88. This file should have permissions 444
  89. This file should have permissions 666
  90. This file should have permissions 777
  91. This is content of file "file.txt"
  92. Some junk ;-) This file does not really exist.
  93. </stdout>
  94. </verify>
  95. </testcase>