debian-forge-composer/internal/cloudapi/v2
Tomas Hozza 4032dea6d2 Cloud API: support composes/<id>/manifests endpoint for non-koji builds
Support the composes/<id>/manifests API endpoint for non-koji builds.
The endpoint will have to anyway handle `osbuild` job results once Koji
composes will start using `osbuild` job type for builds.

The endpoint previously contained a bug. If the `osbuild-koji` job had
an empty manifest attached as a static job argument (this is the default
type value), then this empty manifest was added to the endpoint
response. Since Cloud API uses the depsolve and manifest jobs, the
actual manifest was never attached to the job as a static argument. As a
result, the endpoint was always returning an empty manifest for any koji
compose. Fixing this required also adjusting unit tests, which was
relying on the buggy behavior.

Extend the unit test testing a successful compose to test the logs
endpoint.
2022-06-10 14:48:18 +01:00
..
errors.go cloudapi: validate input 2022-05-16 13:20:46 +02:00
errors_test.go cloudapi/v2: Listen on /api/image-builder-composer/v2 2021-10-11 09:52:21 +02:00
handler.go Cloud API: support composes/<id>/manifests endpoint for non-koji builds 2022-06-10 14:48:18 +01:00
openapi.v2.gen.go cloudapi: validate input 2022-05-16 13:20:46 +02:00
openapi.v2.yml cloudapi: validate input 2022-05-16 13:20:46 +02:00
server.go worker: allow enqueueing OSBuild job with multiple dependencies 2022-06-10 14:48:18 +01:00
v2_internal_test.go simplify package set chain handling 2022-06-01 11:36:52 +01:00
v2_koji_test.go Cloud API: support composes/<id>/manifests endpoint for non-koji builds 2022-06-10 14:48:18 +01:00
v2_multi_tenancy_test.go worker: define job types as constants 2022-06-10 14:48:18 +01:00
v2_test.go Cloud API: support composes/<id>/manifests endpoint for non-koji builds 2022-06-10 14:48:18 +01:00