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
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 4391
Build 5807: tox-on-jenkinsJenkins
Build 5806: arc lint + arc unit

Event Timeline

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

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

150

This matches what is done in the vault.

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

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
131

tiredness/lazyness, choose ;)

I did it this morning.

This revision was automatically updated to reflect the committed changes.