debian-forge-composer/internal/weldr
Brian C. Lane 2860398c2a store, weldr: Add support for fake composes
Yes. This goes against my desire not to change code to accommodate
tests. But there is no other good way to test compose results without
long running, and possibly fragile, composes. And this matches lorax's
behavior.

The change adds support for the ?test=1|2 query parameter to the compose
POST, and a new store function - PushTestCompose that handles creating
the fake compose results.

Passing ?test=1 will create a failed compose. Passing ?test=2 will
create a successful compose, but one without any files.

The purpose of these is to be able to test the compose result API
responses like compose/failed, etc.
2020-04-15 11:35:05 +02:00
..
api.go store, weldr: Add support for fake composes 2020-04-15 11:35:05 +02:00
api_test.go weldr: Adding sources with empty name should return an error 2020-04-06 19:34:37 +02:00
compose.go weldr/upload: no longer reuse the structs from the target package 2020-03-22 22:26:09 +01:00
json.go weldr, store: Add toml fields to SourceConfig 2020-04-06 19:34:37 +02:00
upload.go weldr/upload: uploadRequestToTarget() cannot fail 2020-03-24 14:13:03 +01:00
util.go composer/job-queue: add scaffolding for the job queue API 2019-09-26 19:53:06 +02:00