Refactor Vault a bit, mainly pytest, config and BaseDb-based VaultBackend
Closed
requested to merge generated-differential-D1108-source into generated-differential-D1108-target
Compare changes
Files
8- David Douard authored
- Ensure every service for which an (remote or local) access is needed uses the same config structure (dict with 'cls' and 'args' keys). - Extract instanciation (thus confguration) of remote/external services (storage, cache, scheduler) from the VaultBackend constructor; these are now passed as __init__ arguments; their instanciation/configuration is thus now handled by swh.vault.api.server and swh.vault.cooker.get_cooker (with some support in swh.vault.get_vault).