mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-18 02:39:44 +00:00
A missing payload should be re-fetched
This commit is contained in:
parent
487eab49cd
commit
1ade36f8df
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user