123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296 |
- # SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
- # SPDX-License-Identifier: AGPL-3.0-or-later
- Feature: download
- Scenario: downloading 2 small files
- Given using new dav path
- And user "user0" exists
- And User "user0" copies file "/welcome.txt" to "/welcome2.txt"
- When user "user0" downloads zip file for entries '"welcome.txt","welcome2.txt"' in folder "/"
- Then the downloaded file is a zip file
- And the downloaded zip file contains a file named "welcome.txt" with the contents of "/welcome.txt" from "user0" data
- And the downloaded zip file contains a file named "welcome2.txt" with the contents of "/welcome2.txt" from "user0" data
- Scenario: downloading a small file and a directory
- Given using new dav path
- And user "user0" exists
- And user "user0" created a folder "/emptySubFolder"
- When user "user0" downloads zip file for entries '"welcome.txt","emptySubFolder"' in folder "/"
- Then the downloaded file is a zip file
- And the downloaded zip file contains a file named "welcome.txt" with the contents of "/welcome.txt" from "user0" data
- And the downloaded zip file contains a folder named "emptySubFolder/"
- Scenario: downloading a small file and 2 nested directories
- Given using new dav path
- And user "user0" exists
- And user "user0" created a folder "/subFolder"
- And user "user0" created a folder "/subFolder/emptySubSubFolder"
- When user "user0" downloads zip file for entries '"welcome.txt","subFolder"' in folder "/"
- Then the downloaded file is a zip file
- And the downloaded zip file contains a file named "welcome.txt" with the contents of "/welcome.txt" from "user0" data
- And the downloaded zip file contains a folder named "subFolder/"
- And the downloaded zip file contains a folder named "subFolder/emptySubSubFolder/"
- Scenario: downloading dir with 2 small files
- Given using new dav path
- And user "user0" exists
- And user "user0" created a folder "/sparseFolder"
- And User "user0" copies file "/welcome.txt" to "/sparseFolder/welcome.txt"
- And User "user0" copies file "/welcome.txt" to "/sparseFolder/welcome2.txt"
- When user "user0" downloads zip file for entries '"sparseFolder"' in folder "/"
- Then the downloaded file is a zip file
- And the downloaded zip file contains a folder named "sparseFolder/"
- And the downloaded zip file contains a file named "sparseFolder/welcome.txt" with the contents of "/sparseFolder/welcome.txt" from "user0" data
- And the downloaded zip file contains a file named "sparseFolder/welcome2.txt" with the contents of "/sparseFolder/welcome2.txt" from "user0" data
- Scenario: downloading dir with a small file and a directory
- Given using new dav path
- And user "user0" exists
- And user "user0" created a folder "/sparseFolder"
- And User "user0" copies file "/welcome.txt" to "/sparseFolder/welcome.txt"
- And user "user0" created a folder "/sparseFolder/emptySubFolder"
- When user "user0" downloads zip file for entries '"sparseFolder"' in folder "/"
- Then the downloaded file is a zip file
- And the downloaded zip file contains a folder named "sparseFolder/"
- And the downloaded zip file contains a file named "sparseFolder/welcome.txt" with the contents of "/sparseFolder/welcome.txt" from "user0" data
- And the downloaded zip file contains a folder named "sparseFolder/emptySubFolder/"
- Scenario: downloading dir with a small file and 2 nested directories
- Given using new dav path
- And user "user0" exists
- And user "user0" created a folder "/sparseFolder"
- And User "user0" copies file "/welcome.txt" to "/sparseFolder/welcome.txt"
- And user "user0" created a folder "/sparseFolder/subFolder"
- And user "user0" created a folder "/sparseFolder/subFolder/emptySubSubFolder"
- When user "user0" downloads zip file for entries '"sparseFolder"' in folder "/"
- Then the downloaded file is a zip file
- And the downloaded zip file contains a folder named "sparseFolder/"
- And the downloaded zip file contains a file named "sparseFolder/welcome.txt" with the contents of "/sparseFolder/welcome.txt" from "user0" data
- And the downloaded zip file contains a folder named "sparseFolder/subFolder/"
- And the downloaded zip file contains a folder named "sparseFolder/subFolder/emptySubSubFolder/"
- Scenario: downloading (from folder) 2 small files
- Given using new dav path
- And user "user0" exists
- And user "user0" created a folder "/baseFolder"
- And User "user0" copies file "/welcome.txt" to "/baseFolder/welcome.txt"
- And User "user0" copies file "/welcome.txt" to "/baseFolder/welcome2.txt"
- When user "user0" downloads zip file for entries '"welcome.txt","welcome2.txt"' in folder "/baseFolder/"
- Then the downloaded file is a zip file
- And the downloaded zip file contains a file named "welcome.txt" with the contents of "/baseFolder/welcome.txt" from "user0" data
- And the downloaded zip file contains a file named "welcome2.txt" with the contents of "/baseFolder/welcome2.txt" from "user0" data
- Scenario: downloading (from folder) a small file and a directory
- Given using new dav path
- And user "user0" exists
- And user "user0" created a folder "/baseFolder"
- And User "user0" copies file "/welcome.txt" to "/baseFolder/welcome.txt"
- And user "user0" created a folder "/baseFolder/emptySubFolder"
- When user "user0" downloads zip file for entries '"welcome.txt","emptySubFolder"' in folder "/baseFolder/"
- Then the downloaded file is a zip file
- And the downloaded zip file contains a file named "welcome.txt" with the contents of "/baseFolder/welcome.txt" from "user0" data
- And the downloaded zip file contains a folder named "emptySubFolder/"
- Scenario: downloading (from folder) a small file and 2 nested directories
- Given using new dav path
- And user "user0" exists
- And user "user0" created a folder "/baseFolder"
- And User "user0" copies file "/welcome.txt" to "/baseFolder/welcome.txt"
- And user "user0" created a folder "/baseFolder/subFolder"
- And user "user0" created a folder "/baseFolder/subFolder/emptySubSubFolder"
- When user "user0" downloads zip file for entries '"welcome.txt","subFolder"' in folder "/baseFolder/"
- Then the downloaded file is a zip file
- And the downloaded zip file contains a file named "welcome.txt" with the contents of "/baseFolder/welcome.txt" from "user0" data
- And the downloaded zip file contains a folder named "subFolder/"
- And the downloaded zip file contains a folder named "subFolder/emptySubSubFolder/"
- Scenario: downloading (from folder) dir with 2 small files
- Given using new dav path
- And user "user0" exists
- And user "user0" created a folder "/baseFolder"
- And user "user0" created a folder "/baseFolder/sparseFolder"
- And User "user0" copies file "/welcome.txt" to "/baseFolder/sparseFolder/welcome.txt"
- And User "user0" copies file "/welcome.txt" to "/baseFolder/sparseFolder/welcome2.txt"
- When user "user0" downloads zip file for entries '"sparseFolder"' in folder "/baseFolder/"
- Then the downloaded file is a zip file
- And the downloaded zip file contains a folder named "sparseFolder/"
- And the downloaded zip file contains a file named "sparseFolder/welcome.txt" with the contents of "/baseFolder/sparseFolder/welcome.txt" from "user0" data
- And the downloaded zip file contains a file named "sparseFolder/welcome2.txt" with the contents of "/baseFolder/sparseFolder/welcome2.txt" from "user0" data
- Scenario: downloading (from folder) dir with a small file and a directory
- Given using new dav path
- And user "user0" exists
- And user "user0" created a folder "/baseFolder"
- And user "user0" created a folder "/baseFolder/sparseFolder"
- And User "user0" copies file "/welcome.txt" to "/baseFolder/sparseFolder/welcome.txt"
- And user "user0" created a folder "/baseFolder/sparseFolder/emptySubFolder"
- When user "user0" downloads zip file for entries '"sparseFolder"' in folder "/baseFolder/"
- Then the downloaded file is a zip file
- And the downloaded zip file contains a folder named "sparseFolder/"
- And the downloaded zip file contains a file named "sparseFolder/welcome.txt" with the contents of "/baseFolder/sparseFolder/welcome.txt" from "user0" data
- And the downloaded zip file contains a folder named "sparseFolder/emptySubFolder/"
- Scenario: downloading (from folder) dir with a small file and 2 nested directories
- Given using new dav path
- And user "user0" exists
- And user "user0" created a folder "/baseFolder"
- And user "user0" created a folder "/baseFolder/sparseFolder"
- And User "user0" copies file "/welcome.txt" to "/baseFolder/sparseFolder/welcome.txt"
- And user "user0" created a folder "/baseFolder/sparseFolder/subFolder"
- And user "user0" created a folder "/baseFolder/sparseFolder/subFolder/emptySubSubFolder"
- When user "user0" downloads zip file for entries '"sparseFolder"' in folder "/baseFolder/"
- Then the downloaded file is a zip file
- And the downloaded zip file contains a folder named "sparseFolder/"
- And the downloaded zip file contains a file named "sparseFolder/welcome.txt" with the contents of "/baseFolder/sparseFolder/welcome.txt" from "user0" data
- And the downloaded zip file contains a folder named "sparseFolder/subFolder/"
- And the downloaded zip file contains a folder named "sparseFolder/subFolder/emptySubSubFolder/"
- @large
- Scenario: downloading small file and dir with 65524 small files and 9 nested directories
- Given using new dav path
- And user "user0" exists
- And user "user0" created a folder "/crowdedFolder"
- And user "user0" created a folder "/crowdedFolder/subFolder1"
- And file "/crowdedFolder/subFolder1/test.txt" is created "10000" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder1"
- And user "user0" created a folder "/crowdedFolder/subFolder2"
- And file "/crowdedFolder/subFolder2/test.txt" is created "10000" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder2"
- And user "user0" created a folder "/crowdedFolder/subFolder3"
- And file "/crowdedFolder/subFolder3/test.txt" is created "10000" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder3"
- And user "user0" created a folder "/crowdedFolder/subFolder4"
- And file "/crowdedFolder/subFolder4/test.txt" is created "10000" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder4"
- And user "user0" created a folder "/crowdedFolder/subFolder5"
- And file "/crowdedFolder/subFolder5/test.txt" is created "10000" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder5"
- And user "user0" created a folder "/crowdedFolder/subFolder6"
- And file "/crowdedFolder/subFolder6/test.txt" is created "10000" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder6"
- And user "user0" created a folder "/crowdedFolder/subFolder7"
- And file "/crowdedFolder/subFolder7/test.txt" is created "5524" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder7"
- And user "user0" created a folder "/crowdedFolder/subFolder7/subSubFolder"
- And user "user0" created a folder "/crowdedFolder/subFolder7/subSubFolder/emptySubSubSubFolder"
- When user "user0" downloads zip file for entries '"welcome.txt","crowdedFolder"' in folder "/"
- Then the downloaded file is a zip file
- And the downloaded zip file contains a file named "welcome.txt" with the contents of "/welcome.txt" from "user0" data
- And the downloaded zip file contains a folder named "crowdedFolder/"
- And the downloaded zip file contains a folder named "crowdedFolder/subFolder1/"
- 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
- 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
- And the downloaded zip file contains a folder named "crowdedFolder/subFolder7/subSubFolder/emptySubSubSubFolder/"
- @large
- Scenario: downloading dir with 65525 small files and 9 nested directories
- Given using new dav path
- And user "user0" exists
- And user "user0" created a folder "/crowdedFolder"
- And user "user0" created a folder "/crowdedFolder/subFolder1"
- And file "/crowdedFolder/subFolder1/test.txt" is created "10000" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder1"
- And user "user0" created a folder "/crowdedFolder/subFolder2"
- And file "/crowdedFolder/subFolder2/test.txt" is created "10000" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder2"
- And user "user0" created a folder "/crowdedFolder/subFolder3"
- And file "/crowdedFolder/subFolder3/test.txt" is created "10000" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder3"
- And user "user0" created a folder "/crowdedFolder/subFolder4"
- And file "/crowdedFolder/subFolder4/test.txt" is created "10000" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder4"
- And user "user0" created a folder "/crowdedFolder/subFolder5"
- And file "/crowdedFolder/subFolder5/test.txt" is created "10000" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder5"
- And user "user0" created a folder "/crowdedFolder/subFolder6"
- And file "/crowdedFolder/subFolder6/test.txt" is created "10000" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder6"
- And user "user0" created a folder "/crowdedFolder/subFolder7"
- And file "/crowdedFolder/subFolder7/test.txt" is created "5525" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder7"
- And user "user0" created a folder "/crowdedFolder/subFolder7/subSubFolder"
- And user "user0" created a folder "/crowdedFolder/subFolder7/subSubFolder/emptySubSubSubFolder"
- When user "user0" downloads zip file for entries '"crowdedFolder"' in folder "/"
- Then the downloaded file is a zip file
- And the downloaded zip file contains a folder named "crowdedFolder/"
- And the downloaded zip file contains a folder named "crowdedFolder/subFolder1/"
- 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
- 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
- And the downloaded zip file contains a folder named "crowdedFolder/subFolder7/subSubFolder/emptySubSubSubFolder/"
- @large
- Scenario: downloading small file and dir with 65524 small files and 10 nested directories returns a zip64
- Given using new dav path
- And user "user0" exists
- And user "user0" created a folder "/crowdedFolder"
- And user "user0" created a folder "/crowdedFolder/subFolder1"
- And file "/crowdedFolder/subFolder1/test.txt" is created "10000" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder1"
- And user "user0" created a folder "/crowdedFolder/subFolder2"
- And file "/crowdedFolder/subFolder2/test.txt" is created "10000" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder2"
- And user "user0" created a folder "/crowdedFolder/subFolder3"
- And file "/crowdedFolder/subFolder3/test.txt" is created "10000" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder3"
- And user "user0" created a folder "/crowdedFolder/subFolder4"
- And file "/crowdedFolder/subFolder4/test.txt" is created "10000" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder4"
- And user "user0" created a folder "/crowdedFolder/subFolder5"
- And file "/crowdedFolder/subFolder5/test.txt" is created "10000" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder5"
- And user "user0" created a folder "/crowdedFolder/subFolder6"
- And file "/crowdedFolder/subFolder6/test.txt" is created "10000" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder6"
- And user "user0" created a folder "/crowdedFolder/subFolder7"
- And file "/crowdedFolder/subFolder7/test.txt" is created "5524" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder7"
- And user "user0" created a folder "/crowdedFolder/subFolder7/subSubFolder"
- And user "user0" created a folder "/crowdedFolder/subFolder7/subSubFolder/emptySubSubSubFolder"
- And user "user0" created a folder "/crowdedFolder/subFolder7/emptySubSubFolder"
- When user "user0" downloads zip file for entries '"welcome.txt","crowdedFolder"' in folder "/"
- Then the downloaded zip file is a zip64 file
- And the downloaded zip file contains a file named "welcome.txt" with the contents of "/welcome.txt" from "user0" data
- And the downloaded zip file contains a folder named "crowdedFolder/"
- And the downloaded zip file contains a folder named "crowdedFolder/subFolder1/"
- 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
- 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
- And the downloaded zip file contains a folder named "crowdedFolder/subFolder7/subSubFolder/emptySubSubSubFolder/"
- And the downloaded zip file contains a folder named "crowdedFolder/subFolder7/emptySubSubFolder/"
- @large
- Scenario: downloading dir with 65525 small files and 10 nested directories returns a zip64
- Given using new dav path
- And user "user0" exists
- And user "user0" created a folder "/crowdedFolder"
- And user "user0" created a folder "/crowdedFolder/subFolder1"
- And file "/crowdedFolder/subFolder1/test.txt" is created "10000" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder1"
- And user "user0" created a folder "/crowdedFolder/subFolder2"
- And file "/crowdedFolder/subFolder2/test.txt" is created "10000" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder2"
- And user "user0" created a folder "/crowdedFolder/subFolder3"
- And file "/crowdedFolder/subFolder3/test.txt" is created "10000" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder3"
- And user "user0" created a folder "/crowdedFolder/subFolder4"
- And file "/crowdedFolder/subFolder4/test.txt" is created "10000" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder4"
- And user "user0" created a folder "/crowdedFolder/subFolder5"
- And file "/crowdedFolder/subFolder5/test.txt" is created "10000" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder5"
- And user "user0" created a folder "/crowdedFolder/subFolder6"
- And file "/crowdedFolder/subFolder6/test.txt" is created "10000" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder6"
- And user "user0" created a folder "/crowdedFolder/subFolder7"
- And file "/crowdedFolder/subFolder7/test.txt" is created "5525" times in "user0" user data
- And invoking occ with "files:scan --path /user0/files/crowdedFolder/subFolder7"
- And user "user0" created a folder "/crowdedFolder/subFolder7/subSubFolder"
- And user "user0" created a folder "/crowdedFolder/subFolder7/subSubFolder/emptySubSubSubFolder"
- And user "user0" created a folder "/crowdedFolder/subFolder7/emptySubSubFolder"
- When user "user0" downloads zip file for entries '"crowdedFolder"' in folder "/"
- Then the downloaded zip file is a zip64 file
- And the downloaded zip file contains a folder named "crowdedFolder/"
- And the downloaded zip file contains a folder named "crowdedFolder/subFolder1/"
- 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
- 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
- And the downloaded zip file contains a folder named "crowdedFolder/subFolder7/subSubFolder/emptySubSubSubFolder/"
- And the downloaded zip file contains a folder named "crowdedFolder/subFolder7/emptySubSubFolder/"
|