Add test for missing file

This commit is contained in:
Jeremy Lakeman 2016-03-08 14:59:13 +10:30
parent edc1658cfd
commit 9feffb89c0

View File

@ -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