1
0

download.feature 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. Feature: download
  2. Scenario: downloading 2 small files returns a zip32
  3. Given using new dav path
  4. And user "user0" exists
  5. And User "user0" copies file "/welcome.txt" to "/welcome2.txt"
  6. When user "user0" downloads zip file for entries '"welcome.txt","welcome2.txt"' in folder "/"
  7. Then the downloaded zip file is a zip32 file
  8. And the downloaded zip file contains a file named "welcome.txt" with the contents of "/welcome.txt" from "user0" data
  9. And the downloaded zip file contains a file named "welcome2.txt" with the contents of "/welcome2.txt" from "user0" data
  10. Scenario: downloading a small file and a directory returns a zip32
  11. Given using new dav path
  12. And user "user0" exists
  13. And user "user0" created a folder "/emptySubFolder"
  14. When user "user0" downloads zip file for entries '"welcome.txt","emptySubFolder"' in folder "/"
  15. Then the downloaded zip file is a zip32 file
  16. And the downloaded zip file contains a file named "welcome.txt" with the contents of "/welcome.txt" from "user0" data
  17. And the downloaded zip file contains a folder named "emptySubFolder/"
  18. Scenario: downloading a small file and 2 nested directories returns a zip32
  19. Given using new dav path
  20. And user "user0" exists
  21. And user "user0" created a folder "/subFolder"
  22. And user "user0" created a folder "/subFolder/emptySubSubFolder"
  23. When user "user0" downloads zip file for entries '"welcome.txt","subFolder"' in folder "/"
  24. Then the downloaded zip file is a zip32 file
  25. And the downloaded zip file contains a file named "welcome.txt" with the contents of "/welcome.txt" from "user0" data
  26. And the downloaded zip file contains a folder named "subFolder/"
  27. And the downloaded zip file contains a folder named "subFolder/emptySubSubFolder/"
  28. Scenario: downloading dir with 2 small files returns a zip32
  29. Given using new dav path
  30. And user "user0" exists
  31. And user "user0" created a folder "/sparseFolder"
  32. And User "user0" copies file "/welcome.txt" to "/sparseFolder/welcome.txt"
  33. And User "user0" copies file "/welcome.txt" to "/sparseFolder/welcome2.txt"
  34. When user "user0" downloads zip file for entries '"sparseFolder"' in folder "/"
  35. Then the downloaded zip file is a zip32 file
  36. And the downloaded zip file contains a folder named "sparseFolder/"
  37. And the downloaded zip file contains a file named "sparseFolder/welcome.txt" with the contents of "/sparseFolder/welcome.txt" from "user0" data
  38. And the downloaded zip file contains a file named "sparseFolder/welcome2.txt" with the contents of "/sparseFolder/welcome2.txt" from "user0" data
  39. Scenario: downloading dir with a small file and a directory returns a zip32
  40. Given using new dav path
  41. And user "user0" exists
  42. And user "user0" created a folder "/sparseFolder"
  43. And User "user0" copies file "/welcome.txt" to "/sparseFolder/welcome.txt"
  44. And user "user0" created a folder "/sparseFolder/emptySubFolder"
  45. When user "user0" downloads zip file for entries '"sparseFolder"' in folder "/"
  46. Then the downloaded zip file is a zip32 file
  47. And the downloaded zip file contains a folder named "sparseFolder/"
  48. And the downloaded zip file contains a file named "sparseFolder/welcome.txt" with the contents of "/sparseFolder/welcome.txt" from "user0" data
  49. And the downloaded zip file contains a folder named "sparseFolder/emptySubFolder/"
  50. Scenario: downloading dir with a small file and 2 nested directories returns a zip32
  51. Given using new dav path
  52. And user "user0" exists
  53. And user "user0" created a folder "/sparseFolder"
  54. And User "user0" copies file "/welcome.txt" to "/sparseFolder/welcome.txt"
  55. And user "user0" created a folder "/sparseFolder/subFolder"
  56. And user "user0" created a folder "/sparseFolder/subFolder/emptySubSubFolder"
  57. When user "user0" downloads zip file for entries '"sparseFolder"' in folder "/"
  58. Then the downloaded zip file is a zip32 file
  59. And the downloaded zip file contains a folder named "sparseFolder/"
  60. And the downloaded zip file contains a file named "sparseFolder/welcome.txt" with the contents of "/sparseFolder/welcome.txt" from "user0" data
  61. And the downloaded zip file contains a folder named "sparseFolder/subFolder/"
  62. And the downloaded zip file contains a folder named "sparseFolder/subFolder/emptySubSubFolder/"
  63. Scenario: downloading (from folder) 2 small files returns a zip32
  64. Given using new dav path
  65. And user "user0" exists
  66. And user "user0" created a folder "/baseFolder"
  67. And User "user0" copies file "/welcome.txt" to "/baseFolder/welcome.txt"
  68. And User "user0" copies file "/welcome.txt" to "/baseFolder/welcome2.txt"
  69. When user "user0" downloads zip file for entries '"welcome.txt","welcome2.txt"' in folder "/baseFolder/"
  70. Then the downloaded zip file is a zip32 file
  71. And the downloaded zip file contains a file named "welcome.txt" with the contents of "/baseFolder/welcome.txt" from "user0" data
  72. And the downloaded zip file contains a file named "welcome2.txt" with the contents of "/baseFolder/welcome2.txt" from "user0" data
  73. Scenario: downloading (from folder) a small file and a directory returns a zip32
  74. Given using new dav path
  75. And user "user0" exists
  76. And user "user0" created a folder "/baseFolder"
  77. And User "user0" copies file "/welcome.txt" to "/baseFolder/welcome.txt"
  78. And user "user0" created a folder "/baseFolder/emptySubFolder"
  79. When user "user0" downloads zip file for entries '"welcome.txt","emptySubFolder"' in folder "/baseFolder/"
  80. Then the downloaded zip file is a zip32 file
  81. And the downloaded zip file contains a file named "welcome.txt" with the contents of "/baseFolder/welcome.txt" from "user0" data
  82. And the downloaded zip file contains a folder named "emptySubFolder/"
  83. Scenario: downloading (from folder) a small file and 2 nested directories returns a zip32
  84. Given using new dav path
  85. And user "user0" exists
  86. And user "user0" created a folder "/baseFolder"
  87. And User "user0" copies file "/welcome.txt" to "/baseFolder/welcome.txt"
  88. And user "user0" created a folder "/baseFolder/subFolder"
  89. And user "user0" created a folder "/baseFolder/subFolder/emptySubSubFolder"
  90. When user "user0" downloads zip file for entries '"welcome.txt","subFolder"' in folder "/baseFolder/"
  91. Then the downloaded zip file is a zip32 file
  92. And the downloaded zip file contains a file named "welcome.txt" with the contents of "/baseFolder/welcome.txt" from "user0" data
  93. And the downloaded zip file contains a folder named "subFolder/"
  94. And the downloaded zip file contains a folder named "subFolder/emptySubSubFolder/"
  95. Scenario: downloading (from folder) dir with 2 small files returns a zip32
  96. Given using new dav path
  97. And user "user0" exists
  98. And user "user0" created a folder "/baseFolder"
  99. And user "user0" created a folder "/baseFolder/sparseFolder"
  100. And User "user0" copies file "/welcome.txt" to "/baseFolder/sparseFolder/welcome.txt"
  101. And User "user0" copies file "/welcome.txt" to "/baseFolder/sparseFolder/welcome2.txt"
  102. When user "user0" downloads zip file for entries '"sparseFolder"' in folder "/baseFolder/"
  103. Then the downloaded zip file is a zip32 file
  104. And the downloaded zip file contains a folder named "sparseFolder/"
  105. And the downloaded zip file contains a file named "sparseFolder/welcome.txt" with the contents of "/baseFolder/sparseFolder/welcome.txt" from "user0" data
  106. And the downloaded zip file contains a file named "sparseFolder/welcome2.txt" with the contents of "/baseFolder/sparseFolder/welcome2.txt" from "user0" data
  107. Scenario: downloading (from folder) dir with a small file and a directory returns a zip32
  108. Given using new dav path
  109. And user "user0" exists
  110. And user "user0" created a folder "/baseFolder"
  111. And user "user0" created a folder "/baseFolder/sparseFolder"
  112. And User "user0" copies file "/welcome.txt" to "/baseFolder/sparseFolder/welcome.txt"
  113. And user "user0" created a folder "/baseFolder/sparseFolder/emptySubFolder"
  114. When user "user0" downloads zip file for entries '"sparseFolder"' in folder "/baseFolder/"
  115. Then the downloaded zip file is a zip32 file
  116. And the downloaded zip file contains a folder named "sparseFolder/"
  117. And the downloaded zip file contains a file named "sparseFolder/welcome.txt" with the contents of "/baseFolder/sparseFolder/welcome.txt" from "user0" data
  118. And the downloaded zip file contains a folder named "sparseFolder/emptySubFolder/"
  119. Scenario: downloading (from folder) dir with a small file and 2 nested directories returns a zip32
  120. Given using new dav path
  121. And user "user0" exists
  122. And user "user0" created a folder "/baseFolder"
  123. And user "user0" created a folder "/baseFolder/sparseFolder"
  124. And User "user0" copies file "/welcome.txt" to "/baseFolder/sparseFolder/welcome.txt"
  125. And user "user0" created a folder "/baseFolder/sparseFolder/subFolder"
  126. And user "user0" created a folder "/baseFolder/sparseFolder/subFolder/emptySubSubFolder"
  127. When user "user0" downloads zip file for entries '"sparseFolder"' in folder "/baseFolder/"
  128. Then the downloaded zip file is a zip32 file
  129. And the downloaded zip file contains a folder named "sparseFolder/"
  130. And the downloaded zip file contains a file named "sparseFolder/welcome.txt" with the contents of "/baseFolder/sparseFolder/welcome.txt" from "user0" data
  131. And the downloaded zip file contains a folder named "sparseFolder/subFolder/"
  132. And the downloaded zip file contains a folder named "sparseFolder/subFolder/emptySubSubFolder/"
  133. @large
  134. Scenario: downloading small file and dir with 65524 small files and 9 nested directories returns a zip32
  135. Given using new dav path
  136. And user "user0" exists
  137. And user "user0" created a folder "/crowdedFolder"
  138. And user "user0" created a folder "/crowdedFolder/subFolder1"
  139. And file "/crowdedFolder/subFolder1/test.txt" is created "10000" times in "user0" user data
  140. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder1"
  141. And user "user0" created a folder "/crowdedFolder/subFolder2"
  142. And file "/crowdedFolder/subFolder2/test.txt" is created "10000" times in "user0" user data
  143. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder2"
  144. And user "user0" created a folder "/crowdedFolder/subFolder3"
  145. And file "/crowdedFolder/subFolder3/test.txt" is created "10000" times in "user0" user data
  146. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder3"
  147. And user "user0" created a folder "/crowdedFolder/subFolder4"
  148. And file "/crowdedFolder/subFolder4/test.txt" is created "10000" times in "user0" user data
  149. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder4"
  150. And user "user0" created a folder "/crowdedFolder/subFolder5"
  151. And file "/crowdedFolder/subFolder5/test.txt" is created "10000" times in "user0" user data
  152. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder5"
  153. And user "user0" created a folder "/crowdedFolder/subFolder6"
  154. And file "/crowdedFolder/subFolder6/test.txt" is created "10000" times in "user0" user data
  155. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder6"
  156. And user "user0" created a folder "/crowdedFolder/subFolder7"
  157. And file "/crowdedFolder/subFolder7/test.txt" is created "5524" times in "user0" user data
  158. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder7"
  159. And user "user0" created a folder "/crowdedFolder/subFolder7/subSubFolder"
  160. And user "user0" created a folder "/crowdedFolder/subFolder7/subSubFolder/emptySubSubSubFolder"
  161. When user "user0" downloads zip file for entries '"welcome.txt","crowdedFolder"' in folder "/"
  162. Then the downloaded zip file is a zip32 file
  163. And the downloaded zip file contains a file named "welcome.txt" with the contents of "/welcome.txt" from "user0" data
  164. And the downloaded zip file contains a folder named "crowdedFolder/"
  165. And the downloaded zip file contains a folder named "crowdedFolder/subFolder1/"
  166. And the downloaded zip file contains a file named "crowdedFolder/subFolder1/test.txt-0" with the contents of "/crowdedFolder/subFolder1/test.txt-0" from "user0" data
  167. And the downloaded zip file contains a file named "crowdedFolder/subFolder7/test.txt-5523" with the contents of "/crowdedFolder/subFolder7/test.txt-5523" from "user0" data
  168. And the downloaded zip file contains a folder named "crowdedFolder/subFolder7/subSubFolder/emptySubSubSubFolder/"
  169. @large
  170. Scenario: downloading dir with 65525 small files and 9 nested directories returns a zip32
  171. Given using new dav path
  172. And user "user0" exists
  173. And user "user0" created a folder "/crowdedFolder"
  174. And user "user0" created a folder "/crowdedFolder/subFolder1"
  175. And file "/crowdedFolder/subFolder1/test.txt" is created "10000" times in "user0" user data
  176. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder1"
  177. And user "user0" created a folder "/crowdedFolder/subFolder2"
  178. And file "/crowdedFolder/subFolder2/test.txt" is created "10000" times in "user0" user data
  179. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder2"
  180. And user "user0" created a folder "/crowdedFolder/subFolder3"
  181. And file "/crowdedFolder/subFolder3/test.txt" is created "10000" times in "user0" user data
  182. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder3"
  183. And user "user0" created a folder "/crowdedFolder/subFolder4"
  184. And file "/crowdedFolder/subFolder4/test.txt" is created "10000" times in "user0" user data
  185. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder4"
  186. And user "user0" created a folder "/crowdedFolder/subFolder5"
  187. And file "/crowdedFolder/subFolder5/test.txt" is created "10000" times in "user0" user data
  188. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder5"
  189. And user "user0" created a folder "/crowdedFolder/subFolder6"
  190. And file "/crowdedFolder/subFolder6/test.txt" is created "10000" times in "user0" user data
  191. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder6"
  192. And user "user0" created a folder "/crowdedFolder/subFolder7"
  193. And file "/crowdedFolder/subFolder7/test.txt" is created "5525" times in "user0" user data
  194. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder7"
  195. And user "user0" created a folder "/crowdedFolder/subFolder7/subSubFolder"
  196. And user "user0" created a folder "/crowdedFolder/subFolder7/subSubFolder/emptySubSubSubFolder"
  197. When user "user0" downloads zip file for entries '"crowdedFolder"' in folder "/"
  198. Then the downloaded zip file is a zip32 file
  199. And the downloaded zip file contains a folder named "crowdedFolder/"
  200. And the downloaded zip file contains a folder named "crowdedFolder/subFolder1/"
  201. And the downloaded zip file contains a file named "crowdedFolder/subFolder1/test.txt-0" with the contents of "/crowdedFolder/subFolder1/test.txt-0" from "user0" data
  202. And the downloaded zip file contains a file named "crowdedFolder/subFolder7/test.txt-5524" with the contents of "/crowdedFolder/subFolder7/test.txt-5524" from "user0" data
  203. And the downloaded zip file contains a folder named "crowdedFolder/subFolder7/subSubFolder/emptySubSubSubFolder/"
  204. @large
  205. Scenario: downloading small file and dir with 65524 small files and 10 nested directories returns a zip64
  206. Given using new dav path
  207. And user "user0" exists
  208. And user "user0" created a folder "/crowdedFolder"
  209. And user "user0" created a folder "/crowdedFolder/subFolder1"
  210. And file "/crowdedFolder/subFolder1/test.txt" is created "10000" times in "user0" user data
  211. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder1"
  212. And user "user0" created a folder "/crowdedFolder/subFolder2"
  213. And file "/crowdedFolder/subFolder2/test.txt" is created "10000" times in "user0" user data
  214. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder2"
  215. And user "user0" created a folder "/crowdedFolder/subFolder3"
  216. And file "/crowdedFolder/subFolder3/test.txt" is created "10000" times in "user0" user data
  217. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder3"
  218. And user "user0" created a folder "/crowdedFolder/subFolder4"
  219. And file "/crowdedFolder/subFolder4/test.txt" is created "10000" times in "user0" user data
  220. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder4"
  221. And user "user0" created a folder "/crowdedFolder/subFolder5"
  222. And file "/crowdedFolder/subFolder5/test.txt" is created "10000" times in "user0" user data
  223. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder5"
  224. And user "user0" created a folder "/crowdedFolder/subFolder6"
  225. And file "/crowdedFolder/subFolder6/test.txt" is created "10000" times in "user0" user data
  226. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder6"
  227. And user "user0" created a folder "/crowdedFolder/subFolder7"
  228. And file "/crowdedFolder/subFolder7/test.txt" is created "5524" times in "user0" user data
  229. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder7"
  230. And user "user0" created a folder "/crowdedFolder/subFolder7/subSubFolder"
  231. And user "user0" created a folder "/crowdedFolder/subFolder7/subSubFolder/emptySubSubSubFolder"
  232. And user "user0" created a folder "/crowdedFolder/subFolder7/emptySubSubFolder"
  233. When user "user0" downloads zip file for entries '"welcome.txt","crowdedFolder"' in folder "/"
  234. Then the downloaded zip file is a zip64 file
  235. And the downloaded zip file contains a file named "welcome.txt" with the contents of "/welcome.txt" from "user0" data
  236. And the downloaded zip file contains a folder named "crowdedFolder/"
  237. And the downloaded zip file contains a folder named "crowdedFolder/subFolder1/"
  238. And the downloaded zip file contains a file named "crowdedFolder/subFolder1/test.txt-0" with the contents of "/crowdedFolder/subFolder1/test.txt-0" from "user0" data
  239. And the downloaded zip file contains a file named "crowdedFolder/subFolder7/test.txt-5523" with the contents of "/crowdedFolder/subFolder7/test.txt-5523" from "user0" data
  240. And the downloaded zip file contains a folder named "crowdedFolder/subFolder7/subSubFolder/emptySubSubSubFolder/"
  241. And the downloaded zip file contains a folder named "crowdedFolder/subFolder7/emptySubSubFolder/"
  242. @large
  243. Scenario: downloading dir with 65525 small files and 10 nested directories returns a zip64
  244. Given using new dav path
  245. And user "user0" exists
  246. And user "user0" created a folder "/crowdedFolder"
  247. And user "user0" created a folder "/crowdedFolder/subFolder1"
  248. And file "/crowdedFolder/subFolder1/test.txt" is created "10000" times in "user0" user data
  249. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder1"
  250. And user "user0" created a folder "/crowdedFolder/subFolder2"
  251. And file "/crowdedFolder/subFolder2/test.txt" is created "10000" times in "user0" user data
  252. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder2"
  253. And user "user0" created a folder "/crowdedFolder/subFolder3"
  254. And file "/crowdedFolder/subFolder3/test.txt" is created "10000" times in "user0" user data
  255. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder3"
  256. And user "user0" created a folder "/crowdedFolder/subFolder4"
  257. And file "/crowdedFolder/subFolder4/test.txt" is created "10000" times in "user0" user data
  258. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder4"
  259. And user "user0" created a folder "/crowdedFolder/subFolder5"
  260. And file "/crowdedFolder/subFolder5/test.txt" is created "10000" times in "user0" user data
  261. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder5"
  262. And user "user0" created a folder "/crowdedFolder/subFolder6"
  263. And file "/crowdedFolder/subFolder6/test.txt" is created "10000" times in "user0" user data
  264. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder6"
  265. And user "user0" created a folder "/crowdedFolder/subFolder7"
  266. And file "/crowdedFolder/subFolder7/test.txt" is created "5525" times in "user0" user data
  267. And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder7"
  268. And user "user0" created a folder "/crowdedFolder/subFolder7/subSubFolder"
  269. And user "user0" created a folder "/crowdedFolder/subFolder7/subSubFolder/emptySubSubSubFolder"
  270. And user "user0" created a folder "/crowdedFolder/subFolder7/emptySubSubFolder"
  271. When user "user0" downloads zip file for entries '"crowdedFolder"' in folder "/"
  272. Then the downloaded zip file is a zip64 file
  273. And the downloaded zip file contains a folder named "crowdedFolder/"
  274. And the downloaded zip file contains a folder named "crowdedFolder/subFolder1/"
  275. And the downloaded zip file contains a file named "crowdedFolder/subFolder1/test.txt-0" with the contents of "/crowdedFolder/subFolder1/test.txt-0" from "user0" data
  276. And the downloaded zip file contains a file named "crowdedFolder/subFolder7/test.txt-5524" with the contents of "/crowdedFolder/subFolder7/test.txt-5524" from "user0" data
  277. And the downloaded zip file contains a folder named "crowdedFolder/subFolder7/subSubFolder/emptySubSubSubFolder/"
  278. And the downloaded zip file contains a folder named "crowdedFolder/subFolder7/emptySubSubFolder/"