git-annex/Remote/Helper
Joey Hess 6adbd50cd9 testremote: Add testing of behavior when remote is not available
Added a mkUnavailable method, which a Remote can use to generate a version
of itself that is not available. Implemented for several, but not yet all
remotes.

This allows testing that checkPresent properly throws an exceptions when
it cannot check if a key is present or not. It also allows testing that the
other methods don't throw exceptions in these circumstances.

This immediately found several bugs, which this commit also fixes!

* git remotes using ssh accidentially had checkPresent return
  an exception, rather than throwing it
* The chunking code accidentially returned False rather than
  propigating an exception when there were no chunks and
  checkPresent threw an exception for the non-chunked key.

This commit was sponsored by Carlo Matteo Capocasa.
2014-08-10 15:02:59 -04:00
..
Chunked better exception display 2014-07-26 23:01:44 -04:00
AWS.hs plumb creds from webapp to initremote 2014-02-11 14:07:56 -04:00
Chunked.hs testremote: Add testing of behavior when remote is not available 2014-08-10 15:02:59 -04:00
Encryptable.hs convert WebDAV to new special remote interface, adding new-style chunking support 2014-08-06 16:57:06 -04:00
Git.hs fix checkPresent error handling for non-present local git repos 2014-08-08 19:18:08 -04:00
Hooks.hs pushed checkPresent exception handling out of Remote implementations 2014-08-06 13:45:19 -04:00
Http.hs check for 200 response 2014-08-08 17:17:36 -04:00
Messages.hs run Preparer to get Remover and CheckPresent actions 2014-08-06 14:28:36 -04:00
ReadOnly.hs Remotes can now be made read-only, by setting remote.<name>.annex-readonly 2014-01-02 13:12:32 -04:00
Special.hs unify exception handling into Utility.Exception 2014-08-07 22:03:29 -04:00
Ssh.hs testremote: Add testing of behavior when remote is not available 2014-08-10 15:02:59 -04:00