Page MenuHomeSoftware Heritage

api/vault: Fix TypeError caused by unexpected return type of the vault API
ClosedPublic

Authored by vlorentz on Sep 9 2021, 2:30 PM.

Details

Summary

The vault API returns CoreSWHID, but mocks in tests returned strings...

Diff Detail

Repository
rDWAPPS Web applications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D6224 (id=22524)

Rebasing onto edb6bc332a...

Current branch diff-target is up to date.
Changes applied before test
commit 237cff07ff328e4be91693412300c691496bbc03
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Thu Sep 9 14:29:52 2021 +0200

    api/vault: Fix TypeError caused by unexpected return type of the vault API
    
    The vault API returns CoreSWHID, but mocks in tests returned strings...

See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1101/ for more details.

This revision is now accepted and ready to land.Sep 9 2021, 2:49 PM