Description
The share upload rename
test mimics a typical end user resource sharing scenario.
The admin user shares a parent folder with each of his colleagues, who in turn create a folder in the received share per iteration and user then uploads a fixed number of files. To finish, the folder in which the files are located is renamed by each user.
Procedure
admin
createsN
users.N
can be set with the--vus
option.- by default, it set to 1.
admin
creates a folderoc-share-upload-rename
.admin
shares that folder to each of the users.- each
user
logs into the system individually. - each
user
creates a folder$ITERATION-initial-$USERNAME
inside the received share. - each
user
uploads10
files with a size of1mb
each into this folder. - each
user
renames the folder$ITERATION-initial-$USERNAME
to$ITERATION-final-$USERNAME
. admin
deletes theoc-share-upload-rename
folder.admin
deletes the created users.
the test runs N
times for each user, for example if you define --vus 2
and --iterations 5
the testing steps as a whole will run 10 times (5 times per user).
Available options
- Shared options
TEST_FOLDER
: test root folder name- default value:
oc-share-upload-rename
export TEST_FOLDER=your-share-upload-rename-folder-name
- default value:
ASSET_SIZE
: size of the individual asset in kb- default value:
1000
export ASSET_SIZE=2000
- default value:
ASSET_QUANTITY
: number of assets to be uploaded- default value:
10
export ASSET_QUANTITY=20
- default value:
How to run the test
please read here how the test can be executed, only the script is different