3448: update tests with "untouchable" volumes
authorTim Pierce <twp@curoverse.com>
Mon, 25 Aug 2014 14:40:28 +0000 (10:40 -0400)
committerTim Pierce <twp@curoverse.com>
Mon, 25 Aug 2014 14:40:28 +0000 (10:40 -0400)
commitcca1529c082c2111636f9ae60601f22afdfe73ae
treebefbf58c599675b89f6a7b21e7822ed56bee5846
parentc15f086483884fb21d04ceac0ea8bd96308051bd
3448: update tests with "untouchable" volumes

Added a "Touchable" flag to MockVolume, so that we can test that
PutBlock does the right thing when Touch fails.  Previous code was using
volume.Bad as an attempt to test this, but that short-circuited the Put
request before it ever attempted to call Touch.

Added TODOs with more testing improvements we can make as time permits.
services/keepstore/keepstore_test.go
services/keepstore/volume.go
services/keepstore/volume_unix_test.go