Skip to content
Snippets Groups Projects

Refactor Vault a bit, mainly pytest, config and BaseDb-based VaultBackend

Compare changes
  • Side-by-side
  • Inline
Files
8
  • - 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).
Loading