debian-forge-composer/internal
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
..
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 crypt_test: don't run on macOS 2020-04-09 13:21:30 +02:00
distro distro: don't include grub2 stage in ext4 images 2020-04-11 13:10:13 +02:00
jobqueue jobqueue/api: return errors as JSON 2020-04-06 19:51:36 +02:00
jsondb jsondb: don't use error wrapping (%w) 2020-04-09 15:18:58 +02:00
mocks internal: pass architecture from the APIs to dnf-json 2020-03-24 20:45:30 +01:00
osbuild osbuild: add partuuid into the partition struct 2020-04-14 07:55:48 +02:00
rcm store: create compose id from PushCompose 2020-04-01 00:29:13 +02:00
rpmmd dnf-json: set metadata_expire 2020-04-11 19:14:02 +02:00
store store, weldr: Add support for fake composes 2020-04-15 11:35:05 +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: double the timeout for snapshot import 2020-04-15 01:16:33 +02:00
weldr store, weldr: Add support for fake composes 2020-04-15 11:35:05 +02:00