Compare commits

..

1 commit

Author SHA1 Message Date
0186f35807 add upgrade test for sse-c
Some checks failed
ci/woodpecker/push/debug Pipeline was successful
ci/woodpecker/pr/debug Pipeline was successful
ci/woodpecker/deployment/debug Pipeline was successful
ci/woodpecker/deployment/release/1 Pipeline failed
ci/woodpecker/deployment/release/2 Pipeline was successful
ci/woodpecker/deployment/release/3 Pipeline was successful
ci/woodpecker/deployment/release/4 Pipeline was successful
ci/woodpecker/deployment/publish unknown status
2025-03-18 18:27:01 +01:00

View file

@ -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}-*