HomeSoftware Heritage

api/metadata: Fix issues detected with hypothesis

Description

api/metadata: Fix issues detected with hypothesis

Running metadata tests with multiple hyothesis examples uncovered those
issues in api-1-raw-extrinsic-metadata-swhid Web API view:

  • RawExtrinsincMetaData only targetting core SWHIds must be provided as test inputs.
  • link-next URL for pagination was invalid.
  • next_page_token must be encoded before providing it to urlsafe_b64encode.

Details

Provenance
anlambertAuthored on Aug 19 2021, 12:04 PM
anlambertPushed on Aug 20 2021, 1:29 PM
Differential Revision
D6116: api/metadata: Fix issues detected with hypothesis
Parents
rDWAPPSe18d30e5bc0a: webpack: Upgrade webpack-dev-server to 4.0.0
Branches
Unknown
Tags
Unknown
References
tag: v0.0.318
Build Status
Buildable 23094
Build 36014: test-and-buildJenkins console · Jenkins