When the storage provider is down, the gateway answers PurgeRecycle with
a failed status instead of a transport error, so every expired item adds
an error. Keep the first ten and count the rest.
PurgeTrashBin returned on the first item PurgeRecycle could not delete,
so a single broken trash-bin item stopped the purge for every later item
and space of that type. Skip items the storage reports an error for and
return their errors together at the end. A transport error still ends
the run, since every later call would fail the same way.
That transport error also panicked, because the status of the nil
response was read before the error.
https://github.com/opencloud-eu/opencloud/issues/4207
* enhancement: use reva client pool selectors
register mock service to registry and pass tests
* enhancement: bump reva
* Fix a couple of linter issues
---------
Co-authored-by: Ralf Haferkamp <rhaferkamp@owncloud.com>