Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.vault.tests.test_backend::test_create_fail_duplicate_task
Failed

TEST RESULT

Run At
Oct 16 2020, 7:35 PM
Details
request = <SubRequest 'swh_vault' for <Function test_create_fail_duplicate_task>> swh_vault_config = {'cache': {'args': {'allow_delete': True, 'root': '/tmp/pytest-of-jenkins/pytest-0/test_create_fail_duplicate_tas0', '...oot': '/tmp/pytest-of-jenkins/pytest-0/test_create_fail_duplicate_tas0', 'slicing': '0:1/1:5'}, 'cls': 'pathslicing'}}} postgresql = <connection object at 0x7f03b0dab180; dsn: 'user=postgres password=xxx dbname=tests host=127.0.0.1 port=23627 options=''', closed: 0> postgresql2 = <connection object at 0x7f03b0dab2b8; dsn: 'user=postgres password=xxx dbname=tests2 host=127.0.0.1 port=23627 options=''', closed: 0> tmp_path = PosixPath('/tmp/pytest-of-jenkins/pytest-0/test_create_fail_duplicate_tas0') @pytest.fixture def swh_vault(request, swh_vault_config, postgresql, postgresql2, tmp_path): for sql_dir, pg in ((SQL_DIR, postgresql), (STORAGE_SQL_DIR, postgresql2)): dump_files = os.path.join(sql_dir, "*.sql") all_dump_files = sorted(glob.glob(dump_files), key=sortkey) for fname in all_dump_files: subprocess.check_call( [ "psql", "--quiet", "--no-psqlrc", "-v", "ON_ERROR_STOP=1", "-d", pg.dsn, "-f", fname, ] ) > return get_vault("local", **swh_vault_config) .tox/py3/lib/python3.7/site-packages/swh/vault/tests/conftest.py:83: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/vault/__init__.py:54: in get_vault return Vault(**kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.vault.backend.VaultBackend object at 0x7f03b0d88198> db = "user=postgres password=xxx dbname=tests host=127.0.0.1 port=23627 options=''" config = {'cache': {'args': {'allow_delete': True, 'root': '/tmp/pytest-of-jenkins/pytest-0/test_create_fail_duplicate_tas0', '...oot': '/tmp/pytest-of-jenkins/pytest-0/test_create_fail_duplicate_tas0', 'slicing': '0:1/1:5'}, 'cls': 'pathslicing'}}} def __init__(self, db, **config): self.config = config self.cache = VaultCache(**config["cache"]) > self.scheduler = get_scheduler(**config["scheduler"]) E TypeError: get_scheduler() got an unexpected keyword argument 'url' .tox/py3/lib/python3.7/site-packages/swh/vault/backend.py:76: TypeError