Compare commits
1 commit
7b681b0073
...
0186f35807
Author | SHA1 | Date | |
---|---|---|---|
0186f35807 |
1 changed files with 5 additions and 3 deletions
|
@ -55,8 +55,9 @@ if [ "$DO_SSEC_TEST" = "1" ]; then
|
|||
--s3-sse-customer-key-base64 "$SSEC_KEY" \
|
||||
--stats=1s --stats-log-level=NOTICE --stats-one-line
|
||||
# do a multipart upload
|
||||
rclone copy "/tmp/old_garage" garage:eprouvette/test-ssec \
|
||||
--s3-chunk-size 1M \
|
||||
dd if=/dev/urandom of=/tmp/randfile-for-upgrade bs=5M count=5
|
||||
rclone copy "/tmp/randfile-for-upgrade" garage:eprouvette/test-ssec \
|
||||
--s3-chunk-size 5M \
|
||||
--s3-sse-customer-algorithm AES256 \
|
||||
--s3-sse-customer-key-base64 "$SSEC_KEY" \
|
||||
--stats=1s --stats-log-level=NOTICE --stats-one-line
|
||||
|
@ -101,12 +102,13 @@ if [ "$DO_SSEC_TEST" = "1" ]; then
|
|||
echo "SSEC-FAILURE (small file)"
|
||||
exit 1
|
||||
fi
|
||||
if ! diff "/tmp/test_ssec_out/old_garagae" "/tmp/old_garage"; then
|
||||
if ! diff "/tmp/test_ssec_out/randfile-for-upgrade" "/tmp/randfile-for-upgrade"; then
|
||||
echo "SSEC-FAILURE (big file)"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
rm -r /tmp/test_ssec_out
|
||||
rm /tmp/randfile-for-upgrade
|
||||
|
||||
echo "🏁 Teardown"
|
||||
rm -rf /tmp/garage-{data,meta}-*
|
||||
|
|
Loading…
Add table
Reference in a new issue