HomeSoftware Heritage

api/metadata: Fix issues detected with hypothesis

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

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
Build Status
Buildable 23094
Build 36014: test-and-buildJenkins console · Jenkins

Commit No Longer Exists

This commit no longer exists in the repository.