kojiapi: add basic test
This test schedules a compose, pops the jobs off the queue, marks each as done and verifies that the compose is correctly marked as successful.
This commit is contained in:
parent
4a484c8192
commit
a99127aed9
2 changed files with 174 additions and 21 deletions
|
|
@ -333,7 +333,7 @@ func (h *apiHandlers) GetComposeIdLogs(ctx echo.Context, idstr string) error {
|
|||
}
|
||||
|
||||
var result worker.OSBuildJobResult
|
||||
_, err = h.server.workers.JobStatus(id, &result)
|
||||
_, _, err = h.server.workers.JobStatus(id, &result)
|
||||
if err != nil {
|
||||
return echo.NewHTTPError(http.StatusNotFound, fmt.Sprintf("Job %s not found: %s", idstr, err))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue