jobqueue: remove Job.OutputType
It is not used. The worker does not need to know the name of the originating output type. It has all information it needs in the manifest.
This commit is contained in:
parent
e43a30e4cf
commit
f386ae43dc
3 changed files with 1 additions and 3 deletions
|
|
@ -107,7 +107,6 @@ func (api *API) addJobHandler(writer http.ResponseWriter, request *http.Request,
|
|||
ImageBuildID: nextJob.ImageBuildID,
|
||||
Manifest: nextJob.Manifest,
|
||||
Targets: nextJob.Targets,
|
||||
OutputType: nextJob.ImageType,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ func TestCreate(t *testing.T) {
|
|||
}
|
||||
|
||||
test.TestRoute(t, api, false, "POST", "/job-queue/v1/jobs", `{}`, http.StatusCreated,
|
||||
`{"id":"ffffffff-ffff-ffff-ffff-ffffffffffff","image_build_id":0,"manifest":{"sources":{},"pipeline":{}},"targets":[],"output_type":"qcow2"}`, "created", "uuid")
|
||||
`{"id":"ffffffff-ffff-ffff-ffff-ffffffffffff","image_build_id":0,"manifest":{"sources":{},"pipeline":{}},"targets":[]}`, "created", "uuid")
|
||||
}
|
||||
|
||||
func testUpdateTransition(t *testing.T, from, to string, expectedStatus int, expectedResponse string) {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ type Job struct {
|
|||
ImageBuildID int `json:"image_build_id"`
|
||||
Manifest *osbuild.Manifest `json:"manifest"`
|
||||
Targets []*target.Target `json:"targets"`
|
||||
OutputType string `json:"output_type"`
|
||||
}
|
||||
|
||||
type JobStatus struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue