Describes the tests needed to validate the GetFile functionality.

Basic functionality

Test for the general getFile functionality (Upload a file to test on first)

bin/bitmag.sh get-file -c integrationtest1 -i DefaultFile
bin/bitmag.sh get-file -c integrationtest1 -i DefaultFile -p sbtape2
bin/bitmag.sh get-file -c integrationtest1 -i DefaultFile -l ../NewNameFile

Bad case tests

The following bad case scenarios should be tested to validate that the system handles the requests gracefully, i.e. doesn't crash components and sends a informative error message.

bin/bitmag.sh get-file -c integrationtest1 -i UnknownFileName
bin/bitmag.sh get-file -c yourcollectionhere -i DefaultFile
bin/bitmag.sh get-file -c integrationtest1 -i DefaultFile -p pillar-of-eternity
bin/bitmag.sh get-file -c integrationtest1 -i DefaultFile -p checksum2

Open issues