A missing payload should be re-fetched

This commit is contained in:
Jeremy Lakeman 2014-02-28 10:00:49 +10:30
parent 487eab49cd
commit 1ade36f8df

View File

@ -465,6 +465,25 @@ test_CorruptPayload() {
wait_until grep -i "Stored file $FILEHASH" $LOGA
}
doc_MissingPayload="A missing payload should be re-fetched"
setup_MissingPayload() {
setup_common
set_instance +A
executeOk_servald config set rhizome.max_blob_size 0
rhizome_add_file file1 1024
create_file file2 1024
start_servald_instances +A +B
wait_until bundle_received_by $BID:$VERSION +B
}
test_MissingPayload() {
set_instance +A
rm $SERVALINSTANCE_PATH/$FILEHASH
execute --exit-status=255 $servald rhizome extract file $BID file1a
stop_servald_server
start_servald_server
wait_until grep -i "Stored file $FILEHASH" $LOGA
}
doc_HttpFetchRange="Fetch a file range using HTTP GET"
setup_HttpFetchRange() {
setup_curl 7