weldr/compose: return the build-id when starting a compose

The return argument was ommitted. Also move to using the uuid package
wherever that makes sense.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2019-09-27 00:51:15 +02:00
parent cfe89eaed5
commit 0dc30d7f1b
6 changed files with 42 additions and 20 deletions

View file

@ -152,7 +152,7 @@ func TestCompose(t *testing.T) {
http.StatusBadRequest, `{"status":false,"errors":["blueprint does not exist"]}`)
testRoute(t, api, "POST", "/api/v0/compose", `{"blueprint_name": "test","compose_type": "tar","branch": "master"}`,
http.StatusOK, `{"status":true}`)
http.StatusOK, `*`)
job := <-jobChannel
if job.Pipeline.Assembler.Name != "org.osbuild.tar" {