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:
Tom Gundersen 2020-11-10 20:44:23 +00:00 committed by Lars Karlitski
parent 4a484c8192
commit a99127aed9
2 changed files with 174 additions and 21 deletions

View file

@ -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))
}