job: pass manifest instead of pipeline to osbuild
This is not a behavioral change, as all distros currently use empty source objects. But when we move over to rpm-based pipelines, this will change. Make the same change to osbuild-pipeline, so these stay in sync. Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
parent
919c484c79
commit
571932db37
7 changed files with 31 additions and 29 deletions
|
|
@ -1,10 +1,11 @@
|
|||
package jobqueue_test
|
||||
|
||||
import (
|
||||
distro_mock "github.com/osbuild/osbuild-composer/internal/mocks/distro"
|
||||
"net/http"
|
||||
"testing"
|
||||
|
||||
distro_mock "github.com/osbuild/osbuild-composer/internal/mocks/distro"
|
||||
|
||||
"github.com/osbuild/osbuild-composer/internal/blueprint"
|
||||
test_distro "github.com/osbuild/osbuild-composer/internal/distro/fedoratest"
|
||||
"github.com/osbuild/osbuild-composer/internal/jobqueue"
|
||||
|
|
@ -60,7 +61,7 @@ func TestCreate(t *testing.T) {
|
|||
}
|
||||
|
||||
test.TestRoute(t, api, false, "POST", "/job-queue/v1/jobs", `{}`, http.StatusCreated,
|
||||
`{"distro":"fedora-30","id":"ffffffff-ffff-ffff-ffff-ffffffffffff","image_build_id":0,"output_type":"qcow2","pipeline":{},"targets":[]}`, "created", "uuid")
|
||||
`{"id":"ffffffff-ffff-ffff-ffff-ffffffffffff","image_build_id":0,"distro":"fedora-30","manifest":{"sources":{},"pipeline":{}},"targets":[],"output_type":"qcow2"}`, "created", "uuid")
|
||||
}
|
||||
|
||||
func testUpdateTransition(t *testing.T, from, to string, expectedStatus int, expectedResponse string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue