Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.vault.tests.test_server::test_client_index[pyloop]
Failed

TEST RESULT

Run At
Oct 23 2020, 6:57 PM
Details
swh_local_vault_config = {'client_max_size': 1073741824, 'vault': {'cache': {'args': {'allow_delete': True, 'root': '/tmp/pytest-of-jenkins/pyt...stgres host=127.0.0.1 port=13272 options=''", 'scheduler': {'cls': 'remote', 'url': 'http://swh-scheduler:5008'}, ...}} @pytest.fixture def async_app(swh_local_vault_config: Dict[str, Any],) -> VaultServerApp: """Instantiate the vault server application. Note: This requires the db setup to run (fixture swh_vault in charge of this) """ > return make_app(swh_local_vault_config) .tox/py3/lib/python3.7/site-packages/swh/vault/tests/test_server.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/vault/api/server.py:90: in make_app config_ok = check_config(config_to_check) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cfg = {'client_max_size': 1073741824, 'vault': {'cache': {'args': {'allow_delete': True, 'root': '/tmp/pytest-of-jenkins/pyt...stgres host=127.0.0.1 port=13272 options=''", 'scheduler': {'cls': 'remote', 'url': 'http://swh-scheduler:5008'}, ...}} def check_config(cfg: Dict[str, Any]) -> Dict[str, Any]: """Ensure the configuration is ok to run a local vault server Raises: EnvironmentError if the configuration is not for local instance ValueError if one of the following keys is missing: vault, cache, storage, scheduler Returns: Configuration dict to instantiate a local vault server instance """ if "vault" not in cfg: raise ValueError("missing 'vault' configuration") vcfg = cfg["vault"] if vcfg["cls"] != "local": raise EnvironmentError( "The vault backend can only be started with a 'local' configuration", ) > args = {**vcfg, **vcfg.get("args")} E TypeError: 'NoneType' object is not a mapping .tox/py3/lib/python3.7/site-packages/swh/vault/api/server.py:71: TypeError