From 9feffb89c05de20ab4a4537ab61958c70bbf268d Mon Sep 17 00:00:00 2001 From: Jeremy Lakeman Date: Tue, 8 Mar 2016 14:59:13 +1030 Subject: [PATCH] Add test for missing file --- tests/rhizomeops | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/rhizomeops b/tests/rhizomeops index 36d9fe75..6f071ddd 100755 --- a/tests/rhizomeops +++ b/tests/rhizomeops @@ -254,6 +254,17 @@ test_AddEmpty() { assert_rhizome_list --fromhere=1 --author=$SIDA --manifest=empty.manifest '' } +doc_AddMissing="Attempt to add a file and manifest that don't exist" +setup_AddMissing() { + setup_servald + setup_rhizome +} +test_AddMissing() { + execute $servald rhizome add file $SIDA 'file1' 'file1.manifest' + tfw_cat --stdout --stderr + assertExitStatus '==' 255 +} + doc_AddThenList="List contains one file after one add" setup_AddThenList() { setup_servald