applied similar fixes to rhizome direct pull and sync tests as

were recently made to rhizome direct push test. Now to implement
the rhizome direct http pull functionality so that they work... #9
This commit is contained in:
gardners 2012-10-02 22:52:56 +09:30
parent 1c72778c50
commit 7c544b25f2

View File

@ -303,10 +303,14 @@ setup_Pull() {
}
test_Pull() {
executeOk_servald rhizome direct pull
assert bundle_received_by $BID2 $VERSION2 +A
assert ! bundle_received_by $BID1 $VERSION1 +B
assert bundle_received_by $BID1 $VERSION1 +B
assert ! bundle_received_by $BID2 $VERSION2 +A
set_instance +A
assert_received file2
executeOk_servald rhizome list ''
assert_rhizome_list file1
set_instance +B
executeOk_servald rhizome list ''
assert_rhizome_list file1 file2
}
doc_Sync="Two-way sync bundles between unconnected nodes"
@ -319,9 +323,11 @@ test_Sync() {
assert bundle_received_by $BID2 $VERSION2 +A
assert bundle_received_by $BID1 $VERSION1 +B
set_instance +A
assert_received file2
executeOk_servald rhizome list ''
assert_rhizome_list file1 file2
set_instance +B
assert_received file1
executeOk_servald rhizome list ''
assert_rhizome_list file1 file2
}
doc_HttpAddLocal="Add file locally using HTTP, returns manifest"