debian-forge-composer/internal/cloudapi/v2
Tomas Hozza 09534091a9 cloudapi: run all Koji compose unit tests
Previously, only a subset from all Koji Compose unit test cases were
run. Remove this limitation and run all defined unit tests, which were
copied from `kojiapi`.

In addition, fix unit tests and relevant cloudapi methods to make unit
tests pass.

Add `TestRouteWithReply()` to `test/helpers.go` to allow getting the
compose ID when submitting a new compose. This is needed to make some
unit tests deterministic.

Do not delete values from `fields` slice in `dropFields()` in
`test/helpers.go`. The behavior was previously not consistent.
If the top-level map contained the value, it was deleted from it, but
the nested maps also contained the value, it was not deleted. On the
other hand, if the top level map didn't contain the value, but nested
maps did contain it, the value was deleted from all nested maps.
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 cloudapi: run all Koji compose unit tests 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 cloudapi: run all Koji compose unit tests 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