debian-forge-composer/internal/worker
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 worker: introduce dynamicArgs 2020-11-11 18:16:42 +01:00
client.go worker: implement koji job types 2020-11-11 18:16:42 +01:00
json.go workerapi: serialize koji errors as strings 2020-11-13 09:39:55 +01:00
server.go jobqueue: expose dependencies when querying status 2020-11-11 18:16:42 +01:00
server_test.go worker/server: extend the route tests a bit 2020-11-11 18:16:42 +01:00