You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EXPIRY_TIMESTAMP="$(swift stat ${CONTAINER_BASE}-test7 ${OBJECT_NAME}| awk '/X-Delete-At:/ { print $2 }')"
403
+
if [ "${EXPIRY_TIMESTAMP}"!= 2000000042 ];then
404
+
echo -e "\e[1;31m>>\e[0;31m Expected file \"${OBJECT_NAME}\" to expire at timestamp 2000000042, but expires at timestamp '${EXPIRY_TIMESTAMP}' instead.\e[0m"
405
+
exit 1
406
+
fi
407
+
done
408
+
409
+
# also check that expiration dates are applied to the segments as well
410
+
swift list ${CONTAINER_BASE}-test7-segments |whileread OBJECT_NAME;do
411
+
EXPIRY_TIMESTAMP="$(swift stat ${CONTAINER_BASE}-test7-segments ${OBJECT_NAME}| awk '/X-Delete-At:/ { print $2 }')"
412
+
if [ "${EXPIRY_TIMESTAMP}"!= 2000000042 ];then
413
+
echo -e "\e[1;31m>>\e[0;31m Expected segment '${OBJECT_NAME}' to expire at timestamp 2000000042, but expires at timestamp '${EXPIRY_TIMESTAMP}' instead.\e[0m"
414
+
exit 1
415
+
fi
416
+
done|| (
417
+
echo -e "\e[1;31m>>\e[0;31m Expected object 'expires-with-segments.txt' to be an SLO, but it's not segmented.\e[0m"
393
418
exit 1
394
-
fi
419
+
)
395
420
396
421
fi# end of: if [ "$1" = http ]
397
422
@@ -415,6 +440,7 @@ mirror <<-EOF
415
440
segment_bytes: 20 # less than job.segmenting.min_bytes, but also more
416
441
# than the smallest files (to exercise all code paths)
0 commit comments