debian-forge-composer/internal
Tomas Hozza 4a47ad36af Cloud API: fix image_status.status value for running compose
Previously, the Cloud API endpoint `/v1/compose/{id}` return value's
`image_status.status` for a running worker job was "running", which didn't
comply with the Cloud API specification. Equivalents allowed by the API
specification are "building", "uploading" or "registering".

As a result, the Image Builder API also does not comply in this regard
to its specification, because it currently just copies the status value
string returned by osbuild-composer.

Define the `image_status.status` as a reusable type in the Cloud API
specification. This forces openapi to generate an explicit type for it,
which can be then explicitly used in the code, instead of plain strings.

Return "building", instead of "running"  for running compose.

Modify api integration test to check for all valid `image_status.status`
values for a compose.

Add News entry explaining this change.

Signed-off-by: Tomas Hozza <thozza@redhat.com>
2021-03-26 11:59:07 +01:00
..
blueprint rhel84/grub2: set saved_entry 2021-02-20 20:01:15 +01:00
boot internal/boot/azure: set storage account 2021-03-06 15:40:48 +00:00
client test: Add tests for trying to override a system source repo 2021-01-29 08:25:23 -08:00
cloud/gcp cloud-cleaner: clean up GCP Storage objects based on metadata 2021-03-15 16:48:40 +00:00
cloudapi Cloud API: fix image_status.status value for running compose 2021-03-26 11:59:07 +01:00
common weldr: move common.ComposeState to weldr 2020-11-09 14:17:19 +01:00
crypt crypt: add automatic darwin support 2020-07-17 07:48:22 +02:00
disk osbuild: rename package to osbuild1 2021-03-17 18:12:17 +00:00
distro distro/rhel84: use user ref for commits 2021-03-18 20:06:25 +00:00
distroregistry distroregistry/test: add test for GetDistro 2021-03-12 08:29:30 +01:00
jobqueue jobqueue: Replace JobArgs() with Job() 2021-01-19 10:37:51 +01:00
jsondb jsondb: Allow passing nil as document to Read() 2020-05-13 16:45:09 +02:00
kojiapi osbuild: rename package to osbuild1 2021-03-17 18:12:17 +00:00
mocks distro: move Registry to its own distroregistry package 2021-03-12 08:29:30 +01:00
osbuild1 osbuild1: make the conversion from v2 result stable 2021-03-25 11:14:46 +01:00
osbuild2 osbuild1/result: fix conversion of success field from v2 2021-03-19 18:50:31 +01:00
rpmmd distro: introduce PackageSets 2021-03-10 11:52:05 +00:00
store rhel84: new image type: rhel-edge-installer 2021-03-17 18:12:17 +00:00
target target/azure: document what it does 2021-03-06 15:40:48 +00:00
test test: add arch to the generate test artifact names 2020-12-01 08:27:44 +01:00
upload internal: Move GCP library to internal/cloud 2021-03-15 16:48:40 +00:00
weldr distro: add URL to OSTreeImageOptions 2021-03-17 18:12:17 +00:00
worker osbuld-worker: call osbuild with --export flag 2021-03-17 18:12:17 +00:00
tools.go go: vendor the oapi-codegen cmd 2021-02-01 15:32:58 +01:00