debian-forge-composer/internal
Lars Karlitski 8ef4db816d jobqueue/api: return errors as JSON
The API is always advertising a content type of application/json, but
not sending JSON on errors.

Change it to send simple JSON objects like this:

    { "message": "something went wrong" }

This can be extended to include more structured information in the
future.

Also return an (for now) empty JSON object from `addJobHandler()`. It
returned nothing before, which is invalid JSON.

Stop testing for the actual error strings in `api_test.go`. These are
meant for humans and can change. Only check what a client could
meaningfully check for, which is only the HTTP status code right now.
2020-04-06 19:51:36 +02:00
..
blueprint tests: add coverage for internal/blueprint/customizations.go 2020-03-31 16:47:00 +02:00
client tests: verify system-wide sources can't be deleted. Closes #315 2020-04-06 19:49:23 +02:00
common common: drop unused image types 2020-04-03 08:46:50 +02:00
compose compose/ImageBuild: drop the distro field 2020-03-24 14:13:03 +01:00
crypt tests: increase coverage of internal/crypt 2020-04-02 20:12:06 +02:00
distro distro/rhel: remove dracut-config-generic from build packages 2020-04-01 12:29:59 +02:00
jobqueue jobqueue/api: return errors as JSON 2020-04-06 19:51:36 +02:00
mocks internal: pass architecture from the APIs to dnf-json 2020-03-24 20:45:30 +01:00
osbuild Add unit test for systemd stage 2020-04-01 09:52:10 +02:00
rcm store: create compose id from PushCompose 2020-04-01 00:29:13 +02:00
rpmmd rpmmd: Fix the format of BuildTime to match the weldr API 2020-03-25 10:01:14 +01:00
store weldr, store: Add toml fields to SourceConfig 2020-04-06 19:34:37 +02:00
target target: pass the image filename in each target 2020-03-22 22:26:09 +01:00
test test: Move temporary repo setup into test/helpers.go 2020-03-23 21:08:01 +01:00
upload upload/aws: delete the s3 object after the snapshot is imported 2020-04-04 02:49:00 +02:00
weldr weldr: Adding sources with empty name should return an error 2020-04-06 19:34:37 +02:00