debian-forge-composer/internal/kojiapi
Tom Gundersen bf86e8ad79 workerapi: serialize koji errors as strings
Serializing an interface does not work, let us simply use the string
representation and treat the empty string as no error. This is
compatible with the current API in the success case, and fixes the
error case, which is currently broken.

Also extend the test matrix for the kojiapi to ensure that all the
different kinds of errors can be serialized correctly and leads to
the correct status being returned.

Fixes #1079 and #1080.
2020-11-13 09:39:55 +01:00
..
api kojiapi/logs: adjust for multi-build composes 2020-11-11 18:16:42 +01:00
server.go workerapi: serialize koji errors as strings 2020-11-13 09:39:55 +01:00
server_internal_test.go koji: use nvra as the filename for images 2020-10-27 19:01:30 +00:00
server_test.go workerapi: serialize koji errors as strings 2020-11-13 09:39:55 +01:00