check_config is not supported by the azure backend
>>> from swh.storage import get_storage
>>> s = get_storage('remote', url='http://moma.internal.softwareheritage.org:5002/').check_config(check_write=False)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/dev/swh-environment/swh-core/swh/core/api/__init__.py", line 181, in meth_
return self.post(meth._endpoint_path, post_data)
File "/home/dev/swh-environment/swh-core/swh/core/api/__init__.py", line 278, in post
return self._decode_response(response)
File "/home/dev/swh-environment/swh-core/swh/core/api/__init__.py", line 354, in _decode_response
self.raise_for_status(response)
File "/home/dev/swh-environment/swh-storage/swh/storage/api/client.py", line 29, in raise_for_status
super().raise_for_status(response)
File "/home/dev/swh-environment/swh-core/swh/core/api/__init__.py", line 344, in raise_for_status
raise exception from None
swh.core.api.RemoteException: <RemoteException 500 HttpResponseError: ['This request is not authorized to perform this operation.\nRequestId:d7166871-101e-005c-1aee-77dfa5000000\nTime:2021-07-13T13:57:11.4014786Z\nErrorCode:AuthorizationFailure\nError:None']>
Migrated from T3430 (view on Phabricator)