HomeSoftware Heritage

deposit_update: Fix check error during update with wrong mimetype

Description

deposit_update: Fix check error during update with wrong mimetype

Multiple things went wrong, which explains the issue in production:

  • the internal representation is expected to be a tuple for the post (not an HttpResponse instance)
  • the tests were failing on the expected bad status for the wrong reason (bad deposit status was used, 'ready' instead of 'partial', an update can only take place on 'partial' deposit)
  • the tests were differents but tested the same endpoint either way (only put was called)

Related P279
Related T1010#20869
Related T1010#20870

Details

Provenance
ardumontAuthored on Jul 2 2018, 3:20 PM
ardumontPushed on Jul 2 2018, 4:28 PM
Parents
rDDEPb9a0b5cd0235: deposit_read: Persistent identifier representation has changed
Branches
Unknown
Tags
Unknown