debian-forge-composer/internal/store
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
..
store.go store, weldr: Add support for fake composes 2020-04-15 11:35:05 +02:00
store_test.go Use semver to enforce blueprint version numbers 2020-02-25 09:00:35 +01:00