Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions test/regress/expected/20_multipart_small_chunk.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
1
Object: {Name: "/multipart_file", size: 15728707}
ok
22 changes: 22 additions & 0 deletions test/regress/tests/20_multipart_small_chunk.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
set -ex


# Multipart should be at least 5242880 bytes, so we generate 3 full
# part and one small tail
set +x
value=$(tr -dc 'A-Za-z0-9' < /dev/urandom | head -c $((5242880 * 3 + 67)))
Comment thread
reshke marked this conversation as resolved.
Dismissed

# Force multipart upload with a tiny chunk size so 30 bytes split into multiple parts
printf $value | yp-client --config test/regress/conf/yproxy.yaml -l fatal put --multipart-chunk-size 5242880 'multipart_file'
value_cat=$(yp-client --config test/regress/conf/yproxy.yaml -l fatal cat 'multipart_file')

set -x

yp-client --config test/regress/conf/yproxy.yaml -l fatal list ''

set +x
[[ $value == $value_cat ]] || exit 1
set -x

echo ok