Page MenuHomeSoftware Heritage

swh.objstorage: Make the api use explicit configuration (+ checks)
ClosedPublic

Authored by ardumont on Feb 21 2019, 8:06 PM.

Details

Summary
  • Open wsgi entrypoint for production use
  • Unify behavior with the vault (make_app, ...)
  • Bootstrap swh.objstorage cli
  • Checks the minimal configuration is ok and fail otherwise

Related T1533

Test Plan

tox

Diff Detail

Repository
rDOBJS Object storage
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

ardumont added inline comments.
swh/objstorage/api/server.py
130

for retro-compatibility (tests uses flat configuration file, without the 'objstorage' top-level key)

149

This matches what is done in the vault.

vlorentz added inline comments.
swh/objstorage/api/server.py
130

Why don't you update the tests?

This revision is now accepted and ready to land.Feb 22 2019, 10:46 AM
  • objstorage.api.server: Simplify configuration setup
  • api.server: Force unification on objstorage key setup
ardumont added inline comments.
swh/objstorage/api/server.py
130

tiredness/lazyness, choose ;)

I did it this morning.

This revision was automatically updated to reflect the committed changes.